Skip to content

Commit

Permalink
Update src/spyglass/utils/nwb_helper_fn.py
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno authored Jan 20, 2024
1 parent 342b87a commit ada237f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spyglass/utils/nwb_helper_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def get_position_obj(nwbfile):
for obj in nwbfile.processing["behavior"].data_interfaces.values():
if isinstance(obj, pynwb.behavior.Position):
ret.append(obj)
if len(ret) > 1:
if len(ret) > 1:
raise ValueError(f"Found more than one position object in {nwbfile}")
return ret[0] if ret and len(ret) else None

Expand Down

0 comments on commit ada237f

Please sign in to comment.