Skip to content

Commit 95aa2c6

Browse files
authored
Merge pull request #376 from SpikeInterface/allow-for-base-folder-np-lib
Allow for user defined base folder in npx library generator
2 parents 52eceb2 + 067130b commit 95aa2c6

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)