Skip to content

Commit

Permalink
Save pre_market_model before temporal disaggregation of results
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Mar 3, 2025
1 parent 453da60 commit e85b578
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etrago/execute/market_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,15 @@ def market_optimization(self):
else:
logger.warning("Method type must be either 'pyomo' or 'linopy'")

temp_disagg_soc(self)
# Export results of pre-market model
if self.args["csv_export"]:
path = self.args["csv_export"]
if not os.path.exists(path):
os.makedirs(path, exist_ok=True)
self.pre_market_model.export_to_csv_folder(path + "/pre_market")

temp_disagg_soc(self)

logger.info("Preparing short-term UC market model")

build_shortterm_market_model(self, unit_commitment)
Expand Down

0 comments on commit e85b578

Please sign in to comment.