Skip to content

Commit

Permalink
cover dicts which are not param-dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w-feldmann committed Oct 28, 2024
1 parent 9466892 commit 43b39e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions molpipeline/utils/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def remove_irrelevant_params(params: _T) -> _T:
if isinstance(params, dict):
params_new = {}
for key, value in params.items():
if not isinstance(key, str):
continue
if key.split("__")[-1] in irrelevant_params:
continue
params_new[key] = remove_irrelevant_params(value)
Expand Down

0 comments on commit 43b39e9

Please sign in to comment.