Skip to content

Commit c3bc00c

Browse files
committed
suggestion from review
1 parent 5467a93 commit c3bc00c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/trodes_to_nwb/convert_position.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,7 @@ def add_position(
791791
name="behavior", description="Contains all behavior-related data"
792792
)
793793

794-
new_position = (
795-
"position" not in nwb_file.processing["behavior"].data_interfaces.keys()
796-
)
797-
if new_position:
794+
if "position" not in nwb_file.processing["behavior"].data_interfaces:
798795
position = Position(name="position")
799796
nwb_file.processing["behavior"].add(position)
800797
else:

0 commit comments

Comments
 (0)