We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5467a93 commit c3bc00cCopy full SHA for c3bc00c
src/trodes_to_nwb/convert_position.py
@@ -791,10 +791,7 @@ def add_position(
791
name="behavior", description="Contains all behavior-related data"
792
)
793
794
- new_position = (
795
- "position" not in nwb_file.processing["behavior"].data_interfaces.keys()
796
- )
797
- if new_position:
+ if "position" not in nwb_file.processing["behavior"].data_interfaces:
798
position = Position(name="position")
799
nwb_file.processing["behavior"].add(position)
800
else:
0 commit comments