Skip to content

Commit

Permalink
quick fix to update method that allows for working with lists. (#837)
Browse files Browse the repository at this point in the history
* quickfix -- runners validation now referring to mapping rather than collection to avoid improper references to lists.
  • Loading branch information
jchen6727 authored Sep 26, 2024
1 parent 709eaf1 commit 7567e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netpyne/batchtools/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def update_items(d, u, force_match = False):
for k, v in u.items():
try:
force_match and validate(k, d)
if isinstance(v, collections.abc.Container):
if isinstance(v, collections.abc.Mapping): #TODO this will currently break on lists of dicts
d[k] = update_items(d.get(k), v, force_match)
else:
d[k] = v
Expand Down

0 comments on commit 7567e74

Please sign in to comment.