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

Add keywords as top level attributes to base repeat experiments #484

Merged
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
6 changes: 6 additions & 0 deletions lib/ramble/ramble/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,12 @@ def is_numeric(value):
if repeat_success or workspace.always_print_foms:
logger.debug(f'Calculating statistics for {self.repeats.n_repeats} repeats of '
f'{base_exp_name}')

# Add defined keywords as top level keys
for key in self.keywords.keys:
if self.keywords.is_key_level(key):
self.results[key] = self.expander.expand_var_name(key)

self.results['RAMBLE_VARIABLES'] = {}
self.results['RAMBLE_RAW_VARIABLES'] = {}
for var, val in self.variables.items():
Expand Down