Skip to content
Snippets Groups Projects
Unverified Commit 8fad7ad0 authored by Sacha van Albada's avatar Sacha van Albada Committed by GitHub
Browse files

Merge pull request #17 from INM-6/read_in_spikes_from_np_array

Update reading in spikes from numpy arrays
parents 7572bcf8 8fabc239
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,7 @@ class Analysis: ...@@ -125,7 +125,7 @@ class Analysis:
fn = os.path.join(rec_dir, fn = os.path.join(rec_dir,
'.'.join((fp, 'npy'))) '.'.join((fp, 'npy')))
try: try:
data[area][pop] = np.load(fn) data[area][pop] = np.load(fn, allow_pickle=True)
except FileNotFoundError: except FileNotFoundError:
if not hasattr(self, 'all_spikes'): if not hasattr(self, 'all_spikes'):
fp = '.'.join(('-'.join((self.simulation.label, fp = '.'.join(('-'.join((self.simulation.label,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment