We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
probe
1 parent 9ec904f commit c2d9f47Copy full SHA for c2d9f47
element_array_ephys/probe.py
@@ -37,7 +37,11 @@ def activate(
37
"neuropixels 2.0 - SS",
38
"neuropixels 2.0 - MS",
39
):
40
- ProbeType.create_neuropixels_probe(probe_type)
+ if not (ProbeType & {'probe_type': probe_type}):
41
+ try:
42
+ ProbeType.create_neuropixels_probe(probe_type)
43
+ except dj.errors.DataJointError as e:
44
+ print(f'Unable to create probe-type: {probe_type}\n{str(e)}')
45
46
47
@schema
0 commit comments