Skip to content

Conversation

@dschwen
Copy link
Member

@dschwen dschwen commented Nov 26, 2025

Reason

Allow common parameters to be specified at a higher level in the tests spec hierarchy.

Design

Set parent block parameters as defaults for local parameters, cascading down.

Impact

More compact tests specs.

Comment on lines +64 to +67
if isinstance(default_values, dict):
defaults = default_values
else:
defaults = {k: v for k, v in default_values.params()}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when would this be a dict and when would it not be?

Comment on lines +186 to +192
if isinstance(value, str):
value = value.replace('\n', ' ')
params[key] = re.split(r'\s+', value)
elif isinstance(value, (list, tuple)):
params[key] = list(value)
else:
params[key] = [str(value)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this now needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants