Skip to content

Commit

Permalink
Merge pull request #289 from RHammond2/patch/naming_conventions
Browse files Browse the repository at this point in the history
Patch: Update unchanged reference and add check for Pandas warning
  • Loading branch information
RHammond2 authored May 24, 2024
2 parents 692e86e + 39beadc commit 47ca939
Show file tree
Hide file tree
Showing 24 changed files with 4,420 additions and 4,381 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
python-version: [3.9, 3.11]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -38,4 +38,4 @@ jobs:
pytest --cov=openoa --cov-report=xml
shell: bash
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
4 changes: 2 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
if: github.event.action == 'published'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build package
Expand Down
46 changes: 23 additions & 23 deletions examples/00_intro_to_plant_data.ipynb

Large diffs are not rendered by default.

89 changes: 64 additions & 25 deletions examples/01_utils_examples.ipynb

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions examples/02a_plant_aep_analysis.ipynb

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions examples/02b_plant_aep_analysis_cubico.ipynb

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions examples/02c_augmented_plant_aep_analysis.ipynb

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions examples/03_turbine_ideal_energy.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions examples/04_electrical_losses.ipynb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions examples/05_eya_gap_analysis.ipynb

Large diffs are not rendered by default.

2,131 changes: 1,031 additions & 1,100 deletions examples/06_wake_loss_analysis.ipynb

Large diffs are not rendered by default.

1,993 changes: 1,021 additions & 972 deletions examples/07_static_yaw_misalignment.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openoa/analysis/aep.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ def plot_reanalysis_gross_energy_data(
for name, df in self.plant.reanalysis.items():
x = valid_aggregate[name]
y = valid_aggregate["gross_energy_gwh"]
plant_capac = self.plant.metadata.capacity / 1000.0 * self._hours_in_res
plant_capac = self.plant.metadata.capacity / 1000.0 * self.resample_hours

# Apply bin filter
flag = filters.bin_filter(
Expand Down
7 changes: 4 additions & 3 deletions openoa/utils/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ def gap_fill_data_frame(data: pd.DataFrame, dt_col: str, freq: str) -> pd.DataFr
if data.shape[0] == 0:
return data

gap_df = pd.DataFrame(columns=data.columns)
gap_df[dt_col] = find_time_gaps(data[dt_col], freq)
if gap_df.size > 0:
missing_dt = find_time_gaps(data[dt_col], freq)
if (not missing_dt.empty) and missing_dt.notnull().any():
gap_df = pd.DataFrame(columns=data.columns)
gap_df[dt_col] = missing_dt
data = pd.concat([data, gap_df], axis=0)
try:
return data.sort_values(dt_col)
Expand Down
46 changes: 23 additions & 23 deletions sphinx/examples/00_intro_to_plant_data.ipynb

Large diffs are not rendered by default.

89 changes: 64 additions & 25 deletions sphinx/examples/01_utils_examples.ipynb

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions sphinx/examples/02a_plant_aep_analysis.ipynb

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions sphinx/examples/02b_plant_aep_analysis_cubico.ipynb

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions sphinx/examples/02c_augmented_plant_aep_analysis.ipynb

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions sphinx/examples/03_turbine_ideal_energy.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions sphinx/examples/04_electrical_losses.ipynb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions sphinx/examples/05_eya_gap_analysis.ipynb

Large diffs are not rendered by default.

2,131 changes: 1,031 additions & 1,100 deletions sphinx/examples/06_wake_loss_analysis.ipynb

Large diffs are not rendered by default.

1,993 changes: 1,021 additions & 972 deletions sphinx/examples/07_static_yaw_misalignment.ipynb

Large diffs are not rendered by default.

0 comments on commit 47ca939

Please sign in to comment.