Skip to content

Commit

Permalink
Correct day iteration in timestamp loops
Browse files Browse the repository at this point in the history
Adjusted the range of the for loop iterating through the timestamp_list in multiple scripts. Previously, it stopped just before the last element in timestamp_list; now it includes all elements. This will ensure that all days are processed in the OPF calculations.
  • Loading branch information
boyuan276 committed Jan 31, 2024
1 parent 60290c2 commit 866e4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nygrid/run_nygrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def run_nygrid_one_day(s_time, e_time, grid_data, grid_data_dir, opts, init_gen)
nygrid_sim.set_gen_ramp_sch(grid_data['genramp30_profile'])
nygrid_sim.set_gen_cost_sch(grid_data['gencost0_profile'], grid_data['gencost1_profile'])

if grid_data['genmax_profile_vre'] is not None:
if grid_data.get('genmax_profile_vre', None) is not None:
nygrid_sim.set_vre_max_sch(grid_data['genmax_profile_vre'])

# Relax branch flow limits
Expand Down

0 comments on commit 866e4c1

Please sign in to comment.