Skip to content

Commit

Permalink
Ensure index consistency for 'genmax_profile_vre'
Browse files Browse the repository at this point in the history
Updated index alignment for 'genmax_profile_vre' to match 'genmax_profile' in various scripts. This change helps to maintain data consistency across the timestamp for 'genmax_profile_vre'. This optimization is crucial for ensuring correct calculations and evaluations in our grid operations.
  • Loading branch information
boyuan276 committed Jan 31, 2024
1 parent 866e4c1 commit b10ae72
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/05_opf_w_vre.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
vre_prop, genmax_profile_vre = read_vre_data(solar_data_dir, onshore_wind_data_dir, offshore_wind_data_dir)
grid_data['vre_prop'] = vre_prop
grid_data['genmax_profile_vre'] = genmax_profile_vre
# NOTE: Make datetime index consistent
grid_data['genmax_profile_vre'].index = grid_data['genmax_profile'].index
logging.info('With future solar and offshore wind.')
else:
logging.info('No future solar and offshore wind.')
Expand Down
2 changes: 2 additions & 0 deletions examples/06_opf_w_vre_esr.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
vre_prop, genmax_profile_vre = read_vre_data(solar_data_dir, onshore_wind_data_dir, offshore_wind_data_dir)
grid_data['vre_prop'] = vre_prop
grid_data['genmax_profile_vre'] = genmax_profile_vre
# NOTE: Make datetime index consistent
grid_data['genmax_profile_vre'].index = grid_data['genmax_profile'].index
logging.info('With future solar and offshore wind.')
else:
logging.info('No future solar and offshore wind.')
Expand Down
2 changes: 2 additions & 0 deletions examples/07_opf_w_vre_cpny.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
vre_prop, genmax_profile_vre = read_vre_data(solar_data_dir, onshore_wind_data_dir, offshore_wind_data_dir)
grid_data['vre_prop'] = vre_prop
grid_data['genmax_profile_vre'] = genmax_profile_vre
# NOTE: Make datetime index consistent
grid_data['genmax_profile_vre'].index = grid_data['genmax_profile'].index
logging.info('With future solar and offshore wind.')
else:
logging.info('No future solar and offshore wind.')
Expand Down
2 changes: 2 additions & 0 deletions examples/08_opf_w_vre_esr_cpny.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
vre_prop, genmax_profile_vre = read_vre_data(solar_data_dir, onshore_wind_data_dir, offshore_wind_data_dir)
grid_data['vre_prop'] = vre_prop
grid_data['genmax_profile_vre'] = genmax_profile_vre
# NOTE: Make datetime index consistent
grid_data['genmax_profile_vre'].index = grid_data['genmax_profile'].index
logging.info('With future solar and offshore wind.')
else:
logging.info('No future solar and offshore wind.')
Expand Down
2 changes: 2 additions & 0 deletions examples/09_opf_w_elec_vre.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
vre_prop, genmax_profile_vre = read_vre_data(solar_data_dir, onshore_wind_data_dir, offshore_wind_data_dir)
grid_data['vre_prop'] = vre_prop
grid_data['genmax_profile_vre'] = genmax_profile_vre
# NOTE: Make datetime index consistent
grid_data['genmax_profile_vre'].index = grid_data['genmax_profile'].index
logging.info('With future solar and offshore wind.')
else:
logging.info('No future solar and offshore wind.')
Expand Down
2 changes: 2 additions & 0 deletions examples/10_opf_w_elec_vre_esr.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
vre_prop, genmax_profile_vre = read_vre_data(solar_data_dir, onshore_wind_data_dir, offshore_wind_data_dir)
grid_data['vre_prop'] = vre_prop
grid_data['genmax_profile_vre'] = genmax_profile_vre
# NOTE: Make datetime index consistent
grid_data['genmax_profile_vre'].index = grid_data['genmax_profile'].index
logging.info('With future solar and offshore wind.')
else:
logging.info('No future solar and offshore wind.')
Expand Down
2 changes: 2 additions & 0 deletions examples/11_opf_w_elec_vre_cpny.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
vre_prop, genmax_profile_vre = read_vre_data(solar_data_dir, onshore_wind_data_dir, offshore_wind_data_dir)
grid_data['vre_prop'] = vre_prop
grid_data['genmax_profile_vre'] = genmax_profile_vre
# NOTE: Make datetime index consistent
grid_data['genmax_profile_vre'].index = grid_data['genmax_profile'].index
logging.info('With future solar and offshore wind.')
else:
logging.info('No future solar and offshore wind.')
Expand Down
2 changes: 2 additions & 0 deletions examples/12_opf_w_elec_vre_esr_cpny.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
vre_prop, genmax_profile_vre = read_vre_data(solar_data_dir, onshore_wind_data_dir, offshore_wind_data_dir)
grid_data['vre_prop'] = vre_prop
grid_data['genmax_profile_vre'] = genmax_profile_vre
# NOTE: Make datetime index consistent
grid_data['genmax_profile_vre'].index = grid_data['genmax_profile'].index
logging.info('With future solar and offshore wind.')
else:
logging.info('No future solar and offshore wind.')
Expand Down

0 comments on commit b10ae72

Please sign in to comment.