Skip to content

Commit

Permalink
Merge pull request #3217 from alejoe91/fix-element-is-path
Browse files Browse the repository at this point in the history
Fix bug in extractor_dict_iterator if element is not str/Path
  • Loading branch information
alejoe91 authored Jul 17, 2024
2 parents 4947385 + c8efc26 commit c929e51
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 c929e51

Please sign in to comment.