Remove unused GUI button in analyze videos tab by maximpavliv · Pull Request #2875 · DeepLabCut/DeepLabCut

Expand Up @@ -114,12 +114,6 @@ def _generate_layout_other_options(self, layout):
tmp_layout.addWidget(self.save_as_csv)
self.save_as_nwb = QtWidgets.QCheckBox("Save result(s) as nwb") self.save_as_nwb.setCheckState(Qt.Unchecked) self.save_as_nwb.stateChanged.connect(self.update_nwb_choice)
tmp_layout.addWidget(self.save_as_csv)
# Filter predictions self.filter_predictions = QtWidgets.QCheckBox("Filter predictions") self.filter_predictions.setCheckState(Qt.Unchecked) Expand Down Expand Up @@ -222,10 +216,6 @@ def update_csv_choice(self, state): s = "ENABLED" if state == Qt.Checked else "DISABLED" self.root.logger.info(f"Save results as CSV {s}")
def update_nwb_choice(self, state): s = "ENABLED" if state == Qt.Checked else "DISABLED" self.root.logger.info(f"Save results as NWB {s}")
def update_filter_choice(self, state): s = "ENABLED" if state == Qt.Checked else "DISABLED" self.root.logger.info(f"Filtering predictions {s}") Expand Down Expand Up @@ -333,7 +323,6 @@ def run_enabled(self):
videos = list(self.files) save_as_csv = self.save_as_csv.isChecked() save_as_nwb = self.save_as_nwb.isChecked() filter_data = self.filter_predictions.isChecked() videotype = self.video_selection_widget.videotype_widget.currentText() try: Expand Down Expand Up @@ -382,10 +371,3 @@ def run_enabled(self): videos, listofvideos=True, )
if save_as_nwb: deeplabcut.analyze_videos_converth5_to_nwb( config, videos, listofvideos=True, )