Skip to content

Commit

Permalink
Fix bug in extractor_dict_iterator if element is not str/Path
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jul 17, 2024
1 parent 4947385 commit c8efc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/core_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def recursive_path_modifier(d, func, target="path", copy=True) -> dict:

# This is the current definition that an element in a extractor_dict is a path
# This is shared across a couple of definition so it is here for DNRY
element_is_path = lambda element: "path" in element.name and isinstance(element.value, (str, Path))
element_is_path = lambda element: isinstance(element.value, (str, Path)) and "path" in element.name


def _get_paths_list(d: dict) -> list[str | Path]:
Expand Down

0 comments on commit c8efc26

Please sign in to comment.