Skip to content

Commit

Permalink
Fix ci tests and info action without raw
Browse files Browse the repository at this point in the history
  • Loading branch information
teekuningas committed Apr 2, 2024
1 parent f3d48d5 commit f1143bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions meggie/mainwindow/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,12 @@ def initialize_ui(self):
module = importlib.import_module(".".join([source, "actions", package]))
entry = action_spec["entry"]

if not subject:
continue

if "raw" in action_spec.get("tags", []) and not has_raw:
return

@threaded
def handler(*args):
return getattr(module, entry)(*args).run()
Expand Down
2 changes: 1 addition & 1 deletion meggie/utilities/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create_limo_experiment(name, author, prefs, set_previous_experiment=True):
experiment = initialize_new_experiment(name, author, prefs, set_previous_experiment)

for idx in range(0, 18):
limo_data = mne.datasets.limo.load_data(idx + 1)
limo_data = mne.datasets.limo.load_data(idx + 1, update_path=False)

subject_name = f"subject_{str(idx+1).zfill(2)}-raw"

Expand Down

0 comments on commit f1143bd

Please sign in to comment.