Skip to content

Commit

Permalink
Update src/con_duct/suite/ls.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yaroslav Halchenko <[email protected]>
  • Loading branch information
asmacdo and yarikoptic authored Feb 19, 2025
1 parent fa29df4 commit 3632768
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/con_duct/suite/ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ def load_duct_runs(
f"is below minimum schema version {MINIMUM_SCHEMA_VERSION}."
)
continue
if eval_filter is not None and not eval(
if eval_filter is not None and not (eval_results := eval(
eval_filter, _flatten_dict(this), dict(re=re)
):
)):
lgr.debug("Filtering out %s due to filter results matching: %s", this, eval_results)
continue

loaded.append(this)
Expand Down

0 comments on commit 3632768

Please sign in to comment.