Skip to content

Commit

Permalink
Fix '--where' experiment index filter on info
Browse files Browse the repository at this point in the history
Fixes a bug where filtering using '--where' on the experiment index does
not work correctly
  • Loading branch information
dapomeroy committed Sep 11, 2024
1 parent 95fd326 commit 6edbd1a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/ramble/ramble/cmd/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,18 @@ def workspace_info(args):
print_experiment_set.set_experiment_context(experiment_context)
print_experiment_set.build_experiment_chains()

# Reindex the experiments in the print set to match the overall set
for exp_name, _, _ in print_experiment_set.all_experiments():
app_inst = experiment_set.get_experiment(exp_name)
experiment_index = app_inst.expander.expand_var_name(
app_inst.keywords.experiment_index
)

print_app_inst = print_experiment_set.get_experiment(exp_name)
print_app_inst.define_variable(
print_app_inst.keywords.experiment_index, experiment_index
)

print_header = True
# Define variable printing groups.
var_indent = " "
Expand Down

0 comments on commit 6edbd1a

Please sign in to comment.