Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent 1c93639 commit 1ddf636
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
4 changes: 1 addition & 3 deletions mne_pipeline_hd/functions/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,7 @@ def find_6ch_binary_events(meeg, min_duration, shortest_event, adjust_timeline_b
and q not in events[:, 0] + 1
and q not in events[:, 0] - 1
):
events = np.append(
events, [[q, 0, int(2**a + 2**b + 2**c)]], axis=0
)
events = np.append(events, [[q, 0, int(2**a + 2**b + 2**c)]], axis=0)

for a, b in combinations(range(6), 2):
equals = np.intersect1d(evs_tol[a], evs_tol[b])
Expand Down
18 changes: 9 additions & 9 deletions mne_pipeline_hd/gui/function_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,9 +915,9 @@ def populate_guitype_cmbx(self):

def target_cmbx_changed(self, idx):
if self.current_function:
self.add_pd_funcs.loc[
self.current_function, "target"
] = self.target_cmbx.itemText(idx)
self.add_pd_funcs.loc[self.current_function, "target"] = (
self.target_cmbx.itemText(idx)
)
self.target_chkl.setPixmap(self.yes_icon.pixmap(QSize(16, 16)))
self.check_func_setup()

Expand All @@ -926,9 +926,9 @@ def tab_cmbx_changed(self, idx):
self.populate_tab_cmbx()
self.tab_cmbx.setCurrentIndex(idx)
if self.current_function:
self.add_pd_funcs.loc[
self.current_function, "tab"
] = self.tab_cmbx.itemText(idx)
self.add_pd_funcs.loc[self.current_function, "tab"] = (
self.tab_cmbx.itemText(idx)
)
self.tab_chkl.setPixmap(self.yes_icon.pixmap(QSize(16, 16)))
self.check_func_setup()

Expand Down Expand Up @@ -1339,9 +1339,9 @@ def load_selected_functions(self):
param_key, "functions"
] += func_key
else:
self.cf.add_pd_params.loc[
param_key, "functions"
] = func_key
self.cf.add_pd_params.loc[param_key, "functions"] = (
func_key
)
else:
self.cf.add_pd_params.loc[param_key, "functions"] = func_key
else:
Expand Down
12 changes: 6 additions & 6 deletions mne_pipeline_hd/gui/loading_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1834,13 +1834,13 @@ def get_file_tables(self, kind):
for parameter in result_dict:
if isinstance(result_dict[parameter], tuple):
if result_dict[parameter][2]:
obj_pd.loc[
obj_name, path_type
] = "critical_conflict"
obj_pd.loc[obj_name, path_type] = (
"critical_conflict"
)
else:
obj_pd.loc[
obj_name, path_type
] = "possible_conflict"
obj_pd.loc[obj_name, path_type] = (
"possible_conflict"
)

def open_prog_dlg(self):
# Create Progress-Dialog
Expand Down

0 comments on commit 1ddf636

Please sign in to comment.