Skip to content

Commit

Permalink
create_experiment now uses tier2 overrides if file is present
Browse files Browse the repository at this point in the history
  • Loading branch information
mranst committed Dec 20, 2024
1 parent 6829f9b commit 8f0c414
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from swell.deployment.prepare_config_and_suite.question_and_answer_defaults import GetAnswerDefaults
from swell.utilities.logger import Logger
from swell.utilities.jinja2 import template_string_jinja2
from swell.utilities.dictionary import update_dict


# --------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -298,6 +299,14 @@ def override_with_external(self) -> None:
with open(test_file, 'r') as ymlfile:
override_dict = yaml.safe_load(ymlfile)

# Update overrides with tier2 suite test file if available
tier2_test_file = os.path.join(get_swell_path(), 'test', 'suite_tests',
self.suite + '-tier2.yaml')
if os.path.exists(tier2_test_file):
with open(tier2_test_file, 'r') as ymlfile:
tier2_override_dict = yaml.safe_load(ymlfile)
override_dict = update_dict(override_dict, tier2_override_dict)

# Now append with any user provided override
if self.override is not None:

Expand Down

0 comments on commit 8f0c414

Please sign in to comment.