Skip to content

Commit

Permalink
Fixed bug for .prb files with np statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobpennington committed Dec 3, 2024
1 parent f90c617 commit cad48e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kilosort/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ def load_probe(probe_path):
# !DOES NOT WORK FOR PHASE3A PROBES WITH DISCONNECTED CHANNELS!
# Also does not remove reference channel in PHASE3B probes
contents = probe_path.read_text()
metadata = {}
metadata = {'np': np}
exec(contents, {}, metadata)
# TODO: Figure out an alternative for exec, it's a security risk.

probe['chanMap'] = []
probe['xc'] = []
probe['yc'] = []
Expand Down

0 comments on commit cad48e4

Please sign in to comment.