Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

because order matters #321

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions stimela/kitchen/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ def run(self, backend: Optional[Dict] = None, subst: Optional[Dict[str, Any]] =

# Since prevalidation will have populated default values for potentially missing parameters, use those values
# For parameters that aren't missing, use whatever value that was suplied
params = self.validated_params.copy()
params.update(**self.params)
# preserve order of specified params, to allow ordered substitutions to occur
params = self.params.copy()
params.update([(key, value) for key, value in self.validated_params.items() if key not in params])

skip_warned = False # becomes True when warnings are given

Expand Down
Loading