Yaw Module
get_yaw_count
get_yaw_count (nacelle_position_diff)
Type | Details | |
---|---|---|
nacelle_position_diff | Pandas series of nacelle position increment | |
Returns | number of yaw actuations |
get_time_yawing
get_time_yawing (nacelle_position_diff)
Type | Details | |
---|---|---|
nacelle_position_diff | Pandas series of nacelle position increment | |
Returns | time spent yawing in percent |
oriented_angle
oriented_angle (angle)
Type | Details | |
---|---|---|
angle | ||
Returns | oriented angle in range [-180,179] |
get_dataset_from_simu
get_dataset_from_simu (path='dataset.csv', cycle_period=10, rolling_average_duration=20)
returns output dataset obtained of CYCA-S
get_properties
get_properties (properties)
get_indexes
get_indexes (model_params, properties)
test_trad_control
test_trad_control (wind_timeseries, wind_timeseries_not_agg, agg, start, end, experiment=None, datatype='baseline_simu', outdir=None)
test CYCA-S and CYCA-L
YawEnv
YawEnv ()
*The main OpenAI Gym class.
It encapsulates an environment with arbitrary behind-the-scenes dynamics. An environment can be partially or fully observed.
The main API methods that users of this class need to know are:
- :meth:
step
- Takes a step in the environment using an action returning the next observation, reward, if the environment terminated and observation information. - :meth:
reset
- Resets the environment to an initial state, returning the initial observation and observation information. - :meth:
render
- Renders the environment observation with modes depending on the output - :meth:
close
- Closes the environment, important for rendering where pygame is imported
And set the following attributes:
- :attr:
action_space
- The Space object corresponding to valid actions - :attr:
observation_space
- The Space object corresponding to valid observations - :attr:
reward_range
- A tuple corresponding to the minimum and maximum possible rewards - :attr:
spec
- An environment spec that contains the information used to initialise the environment fromgym.make
- :attr:
metadata
- The metadata of the environment, i.e. render modes - :attr:
np_random
- The random number generator for the environment
Note: a default reward range set to :math:(-\infty,+\infty)
already exists. Set it if you want a narrower range.*
get_comparaison_metrics
get_comparaison_metrics (wind_direction, power_control, power_simu, res_model, res_baseline_simu, yaw_rate, yaw_power, width_bin)
test_model_wind
test_model_wind (wind_timeseries, start_index, stop_index, ancestors, filter_duration, yaw_parameters, experiment=None, datatype='test')
test RLYCA
test_hpct_wind
test_hpct_wind (file=None, plots=None, history=None, verbose=None, outdir=None, early=None, environment_properties=None, start_index=None, stop_index=None, experiment=None, datatype='test', draw_file=None, model_file=None, log_testing_to_experiment=False, log_experiment_figure=False, min=None)
test RLYCA