Skip to content

Commit

Permalink
fixing identation from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
squoilin committed Apr 3, 2020
1 parent 9a81c21 commit 1f17555
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dispaset/preprocessing/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,15 @@ def build_single_run(config, profiles=None):
logging.critical("SimulationType: 'Standard' and HydroScheduling: 'Zonal' not supported! Please"
" choose different input options")
sys.exit(1)
if all(profiles.columns.isin(finalTS['ReservoirLevels'].columns)):
finalTS['ReservoirLevels'].update(profiles)
logging.info('New reservoir levels from Mid-term scheduling are now imposed instead of historic values')
else:
for key in profiles.columns:
if key not in finalTS['ReservoirLevels'].columns:
logging.critical('The reservoir profile "' + key + '" provided by the MTS is not found in the ReservoirLevels table')
print(ReservoirLevels.columns)
sys.exit(1)
if all(profiles.columns.isin(finalTS['ReservoirLevels'].columns)):
finalTS['ReservoirLevels'].update(profiles)
logging.info('New reservoir levels from Mid-term scheduling are now imposed instead of historic values')
else:
for key in profiles.columns:
if key not in finalTS['ReservoirLevels'].columns:
logging.critical('The reservoir profile "' + key + '" provided by the MTS is not found in the ReservoirLevels table')
print(ReservoirLevels.columns)
sys.exit(1)

# Check that all times series data is available with the specified data time step:
for key in FuelPrices:
Expand Down

0 comments on commit 1f17555

Please sign in to comment.