Skip to content

Commit 5203360

Browse files
authored
Remove nwb from analyze videos tab (#2875)
1 parent c483526 commit 5203360

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

deeplabcut/gui/tabs/analyze_videos.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ def _generate_layout_other_options(self, layout):
114114

115115
tmp_layout.addWidget(self.save_as_csv)
116116

117-
self.save_as_nwb = QtWidgets.QCheckBox("Save result(s) as nwb")
118-
self.save_as_nwb.setCheckState(Qt.Unchecked)
119-
self.save_as_nwb.stateChanged.connect(self.update_nwb_choice)
120-
121-
tmp_layout.addWidget(self.save_as_csv)
122-
123117
# Filter predictions
124118
self.filter_predictions = QtWidgets.QCheckBox("Filter predictions")
125119
self.filter_predictions.setCheckState(Qt.Unchecked)
@@ -222,10 +216,6 @@ def update_csv_choice(self, state):
222216
s = "ENABLED" if state == Qt.Checked else "DISABLED"
223217
self.root.logger.info(f"Save results as CSV {s}")
224218

225-
def update_nwb_choice(self, state):
226-
s = "ENABLED" if state == Qt.Checked else "DISABLED"
227-
self.root.logger.info(f"Save results as NWB {s}")
228-
229219
def update_filter_choice(self, state):
230220
s = "ENABLED" if state == Qt.Checked else "DISABLED"
231221
self.root.logger.info(f"Filtering predictions {s}")
@@ -333,7 +323,6 @@ def run_enabled(self):
333323

334324
videos = list(self.files)
335325
save_as_csv = self.save_as_csv.isChecked()
336-
save_as_nwb = self.save_as_nwb.isChecked()
337326
filter_data = self.filter_predictions.isChecked()
338327
videotype = self.video_selection_widget.videotype_widget.currentText()
339328
try:
@@ -382,10 +371,3 @@ def run_enabled(self):
382371
videos,
383372
listofvideos=True,
384373
)
385-
386-
if save_as_nwb:
387-
deeplabcut.analyze_videos_converth5_to_nwb(
388-
config,
389-
videos,
390-
listofvideos=True,
391-
)

0 commit comments

Comments
 (0)