Skip to content

Commit

Permalink
Fixed Omission for Function Screen
Browse files Browse the repository at this point in the history
- Screening of features fixed in temoa_sequencer.py for MC mode
  • Loading branch information
jeff-ws committed Nov 12, 2024
1 parent 4931adc commit 1a9d025
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data_files/my_configs/config_sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ scenario = "zulu"
# Scenaio Mode (Mandatory)
# See documentation for explanations. A standard single run is "perfect_foresight"
# mode must be one of (case-insensitive):
# [perfect_foresight, MGA, myopic, method_of_morris, build_only, check]
# [perfect_foresight, MGA, myopic, method_of_morris, build_only, check, monte_carlo]
scenario_mode = "perfect_foresight"

# Input database (Mandatory)
Expand Down
2 changes: 2 additions & 0 deletions temoa/temoa_model/temoa_sequencer.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def start(self) -> TemoaModel | None:
self.config.plot_commodity_network = False
logger.warning('Plot commodity network disabled for MONTE_CARLO')
if self.config.price_check:
self.config.price_check = False
logger.warning('Price check disabled for MONTE_CARLO')
if self.config.save_excel:
self.config.save_excel = False
Expand All @@ -277,6 +278,7 @@ def start(self) -> TemoaModel | None:
self.config.save_lp_file = False
logger.warning('Save lp file disabled for MONTE_CARLO')
if self.config.save_duals:
self.config.save_duals = False
logger.warning('Save duals disabled for MONTE_CARLO')
mc_sequencer = MCSequencer(config=self.config)
mc_sequencer.start()
Expand Down

0 comments on commit 1a9d025

Please sign in to comment.