Skip to content

Commit 0ea2a9d

Browse files
sumiya-kurodaalessandrofelder
authored andcommitted
Update suite2p.smk to use cuda/12.4
1 parent a2bd6d2 commit 0ea2a9d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

photon_mosaic/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def build_snakemake_command(args, config_path):
310310

311311
cmd = [
312312
"snakemake",
313+
"--use-envmodules", # Enables envmodules
313314
"--snakefile",
314315
str(snakefile_path),
315316
"--jobs",

photon_mosaic/workflow/suite2p.smk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ rule suite2p:
6363
for session_idx in discoverer.tiff_files[discoverer.original_datasets[i]].keys()]),
6464
resources:
6565
**(slurm_config if config.get("use_slurm") else {}),
66+
envmodules:
67+
"cuda/12.4"
6668
run:
6769
from photon_mosaic.rules.suite2p_run import run_suite2p
6870
from pathlib import Path

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"snakemake-executor-plugin-slurm",
1313
"PyYAML",
1414
"derotation",
15-
"suite2p-NIU"
15+
"suite2p-NIU>=0.1.1"
1616
]
1717

1818
license = {text = "BSD-3-Clause"}

0 commit comments

Comments
 (0)