Skip to content

Commit 067130b

Browse files
committed
allow for user defined base folder
1 parent 52eceb2 commit 067130b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

resources/generate_neuropixels_library.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
from probeinterface import write_probeinterface
1212

1313

14-
base_folder = Path("./neuropixels_library_generated")
14+
default_base_folder = Path("./neuropixels_library_generated")
1515

1616

1717

18-
def generate_all_npx():
18+
def generate_all_npx(base_folder=None):
19+
20+
if base_folder is None:
21+
base_folder = default_base_folder
1922

2023
# if not base_folder.exists():
2124
base_folder.mkdir(exist_ok=True)

0 commit comments

Comments
 (0)