Skip to content

Commit

Permalink
FIX: Fix reset_camera deprecated from Brain.add_label() (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
marsipu authored May 13, 2024
1 parent fa34772 commit f8fdfe1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mne_pipeline_hd/gui/parameter_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,9 +1272,7 @@ def _set_annotations(self, parcellation):
labels = fsmri.get_labels(parcellation=parcellation)
if parcellation == "Other":
for label in labels:
self.add_label(
label, borders=True, color="k", alpha=0.75, reset_camera=False
)
self.add_label(label, borders=True, color="k", alpha=0.75)
else:
self.add_annotation(
parcellation, borders=True, color="k", alpha=0.75, remove_existing=True
Expand Down Expand Up @@ -1360,7 +1358,7 @@ def _add_label_name(self, label_name, hemi, label=None):
label = lb
break
if label is not None:
self.add_label(label, borders=False, reset_camera=False)
self.add_label(label, borders=False)
self._shown_labels.append(label_name)

def _remove_label_name(self, label_name, hemi):
Expand Down

0 comments on commit f8fdfe1

Please sign in to comment.