Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Reorganize artifical data examples to make them easier to follow #117

Merged
merged 13 commits into from
Aug 31, 2023
Merged
9 changes: 5 additions & 4 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
Credits
=======

Development Lead
Development Leads
----------------

* Bart Doekemeijer <Bart.Doekemeijer@nrel.gov>

* Bart Doekemeijer
* Paul Fleming


Contributors
------------

* Paul Fleming <paul.fleming@nrel.gov>
* Eric Simley <eric.simley@nrel.gov>
* Christopher Bay <Christopher.Bay@nrel.gov>
* Christopher Bay <christopher.bay@nrel.gov>
* Misha Sinner <michael.sinner@nrel.gov>
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# -- Project information -----------------------------------------------------

project = 'flasc'
copyright = '2022, Bart Doekemeijer, Paul Fleming, Eric Simley'
author = 'Bart Doekemeijer, Paul Fleming, Eric Simley'
copyright = '2022, Bart Doekemeijer, Paul Fleming, Eric Simley, Michael Sinner'
author = 'Bart Doekemeijer, Paul Fleming, Eric Simley, Michael Sinner'

# The full version, including alpha/beta/rc tags
release = '1.1'
Expand Down
4 changes: 2 additions & 2 deletions docs/source/licensing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Licensing
-----------------
The FLASC repository has been licensed under the Apache License.
For more information, contact the NREL FLASC team at
`bart.doekemeijer@nrel.gov <mailto:bart.doekemeijer@nrel.gov>`_, or
`paul.fleming@nrel.gov <mailto:paul.fleming@nrel.gov>`_.
`paul.fleming@nrel.gov <mailto:paul.fleming@nrel.gov>`_ or
`michael.sinner@nrel.gov <mailto:michael.sinner@nrel.gov>`_.

.. code-block:: bash

Expand Down
4 changes: 2 additions & 2 deletions docs/source/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ Questions
For technical questions regarding FLASC usage, please post your questions to
`GitHub Discussions <https://github.com/NREL/flasc/discussions>`_ on the
FLASC repository. Alternatively, email the NREL FLASC team at
`bart.doekemeijer@nrel.gov <mailto:bart.doekemeijer@nrel.gov>`_, or
`paul.fleming@nrel.gov <mailto:paul.fleming@nrel.gov>`_.
`paul.fleming@nrel.gov <mailto:paul.fleming@nrel.gov>`_ or
`michael.sinner@nrel.gov <mailto:michael.sinner@nrel.gov>`_.


Module overview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
shade_region
)

from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris


# Example demonstrates some methods for visualizing the layout of the farm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from flasc.visualization import plot_floris_layout, plot_layout_only
from floris.tools.visualization import visualize_cut_plane

from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from floris.tools import ParallelComputingInterface
from flasc import floris_tools as ftools

from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from flasc import floris_tools as fsatools
from flasc import visualization as fsaviz

from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris

# Demonstrate the turbine dependency functions in floris_tools
# Note a turbine is "dependent" on another if it is affected
Expand Down

Large diffs are not rendered by default.

2,640 changes: 2,640 additions & 0 deletions examples_artificial_data/01_raw_data_processing/01_northing_calibration.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
plot_uplifts_by_atmospheric_conditions, plot_offsets_wswd_heatmap, plot_offsets_wd
from flasc.visualization import plot_floris_layout, plot_layout_with_waking_directions

from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris
from _local_helper_functions import optimize_yaw_angles, evaluate_optimal_yaw_angles


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from flasc.wake_steering.lookup_table_tools import get_yaw_angles_interpolant

from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris
from _local_helper_functions import optimize_yaw_angles, evaluate_optimal_yaw_angles


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from floris.tools.uncertainty_interface import UncertaintyInterface
from flasc.wake_steering.lookup_table_tools import get_yaw_angles_interpolant
from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris

from _local_helper_functions import optimize_yaw_angles, evaluate_optimal_yaw_angles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import seaborn as sns

from flasc.wake_steering.lookup_table_tools import get_yaw_angles_interpolant
from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris

from _local_helper_functions import optimize_yaw_angles, evaluate_optimal_yaw_angles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import seaborn as sns

from flasc.wake_steering.lookup_table_tools import get_yaw_angles_interpolant
from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris

from _local_helper_functions import optimize_yaw_angles, evaluate_optimal_yaw_angles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from floris.tools.uncertainty_interface import UncertaintyInterface
from floris.tools.optimization.yaw_optimization.yaw_optimizer_sr import YawOptimizationSR

from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris


def load_wind_climate_interpolant():
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
from flasc.dataframe_operations import \
dataframe_manipulations as dfm
from flasc import floris_tools as fsatools
from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris


def load_data():
# Load dataframe with artificial SCADA data
root_dir = os.path.dirname(os.path.abspath(__file__))
ftr_path = os.path.join(
root_dir, '..', 'raw_data_processing', 'postprocessed', 'df_scada_data_600s_filtered_and_northing_calibrated.ftr'
root_dir, '..', '01_raw_data_processing', 'postprocessed',
'df_scada_data_600s_filtered_and_northing_calibrated.ftr'
)
if not os.path.exists(ftr_path):
raise FileNotFoundError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
from flasc.dataframe_operations import \
dataframe_manipulations as dfm
from flasc import floris_tools as fsatools
from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris


def load_data():
# Load dataframe with artificial SCADA data
root_dir = os.path.dirname(os.path.abspath(__file__))
ftr_path = os.path.join(
root_dir, '..', 'raw_data_processing', 'postprocessed', 'df_scada_data_600s_filtered_and_northing_calibrated.ftr'
root_dir, '..', '01_raw_data_processing', 'postprocessed',
'df_scada_data_600s_filtered_and_northing_calibrated.ftr'
)
if not os.path.exists(ftr_path):
raise FileNotFoundError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from flasc.energy_ratio import energy_ratio as er
from flasc.energy_ratio.energy_ratio_input import EnergyRatioInput
from flasc.visualization import plot_floris_layout
from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris

from floris.tools.visualization import visualize_cut_plane
from floris.utilities import wrap_360
Expand All @@ -31,7 +31,8 @@ def load_data():
# Load dataframe with artificial SCADA data
root_dir = os.path.dirname(os.path.abspath(__file__))
ftr_path = os.path.join(
root_dir, '..', 'raw_data_processing', 'postprocessed', 'df_scada_data_600s_filtered_and_northing_calibrated.ftr'
root_dir, '..', '01_raw_data_processing', 'postprocessed',
'df_scada_data_600s_filtered_and_northing_calibrated.ftr'
)
if not os.path.exists(ftr_path):
raise FileNotFoundError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
from flasc.energy_ratio import energy_ratio as er
from flasc.energy_ratio.energy_ratio_input import EnergyRatioInput
from flasc.visualization import plot_floris_layout
from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris


def load_data():
# Load dataframe with artificial SCADA data
root_dir = os.path.dirname(os.path.abspath(__file__))
ftr_path = os.path.join(
root_dir, '..', 'raw_data_processing', 'postprocessed', 'df_scada_data_600s_filtered_and_northing_calibrated.ftr'
root_dir, '..', '01_raw_data_processing', 'postprocessed',
'df_scada_data_600s_filtered_and_northing_calibrated.ftr'
)
if not os.path.exists(ftr_path):
raise FileNotFoundError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from flasc.energy_ratio.energy_ratio_input import EnergyRatioInput
# from flasc import floris_tools as fsatools
from flasc.visualization import plot_layout_with_waking_directions, plot_binned_mean_and_ci
from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
dataframe_manipulations as dfm,
)

from flasc.examples.models import load_floris_artificial as load_floris
from flasc.utilities_examples import load_floris_artificial as load_floris
from flasc import floris_tools as fsatools


Expand Down

This file was deleted.

This file was deleted.

Loading