Skip to content

Commit

Permalink
Cleanup syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno committed Jul 7, 2023
1 parent fd2c6b9 commit 8e612be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rec_to_nwb/processing/builder/nwb_file_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,7 @@ def _detect_ptp_from_header(self):
mconf = self.header.tree.find("ModuleConfiguration")
ptp_enabled = False
for smconf in mconf.findall("SingleModuleConfiguration"):
if (
smconf.get("moduleName") == "cameraModule"
or smconf.get("moduleName") == "./cameraModule"
):
if smconf.get("moduleName") in ["cameraModule", "./cameraModule"]:
for arg in smconf.findall("Argument"):
ptp_enabled = "-ptpEnabled" in arg.attrib.values()
if ptp_enabled:
Expand Down

0 comments on commit 8e612be

Please sign in to comment.