question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem when running `se.NumpyRecording.dump()`

See original GitHub issue

Hello!

I am running into the follwing AssertionErrorr when running se.NumpyRecording.dump(/path/to.json):

AssertionError                            Traceback (most recent call last)
~/d/n2b/n2b-visification/scripts/io.py in <module>
     25 # save RecordingExtractor
     26 print('Saving recording to {}'.format(OUTPUT_PATH))
---> 27 recording.dump(OUTPUT_PATH)
     28 print('Finished saving recording.')

~/anaconda/envs/visification/lib/python3.7/site-packages/spikeinterface/core/base.py in dump(self, file_path, relative_to, folder_metadata)
    394         """
    395         if str(file_path).endswith('.json'):
--> 396             self.dump_to_json(file_path, relative_to=relative_to, folder_metadata=folder_metadata)
    397         elif str(file_path).endswith('.pkl') or str(file_path).endswith('.pickle'):
    398             self.dump_to_pickle(file_path, relative_to=relative_to, folder_metadata=folder_metadata)

~/anaconda/envs/visification/lib/python3.7/site-packages/spikeinterface/core/base.py in dump_to_json(self, file_path, relative_to, folder_metadata)
    412             If not None, file_paths are serialized relative to this path
    413         '''
--> 414         assert self.check_if_dumpable()
    415         dump_dict = self.to_dict(include_annotations=True,
    416                                  include_properties=False,

AssertionError: 

However, the final AssertionError is not printing anything, so I am not quite sure what the issue is. The OUTPUT_PATH is 161.json, by the way.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
samuelgarciacommented, Oct 14, 2021

Yes.

cached = numpy_recording.save(folder='your-folder')
# and then later
cached2 = load_extractor('your-folder')

cached and cached2 are totaly equivalent and are lazy.

0reactions
marcoistasycommented, Oct 15, 2021

Chunking did the trick!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recording objects — spikeinterface documentation
We will create a RecordingExtractor object from scratch using numpy and the NumpyRecording . Let's define the properties of the dataset: num_channels =...
Read more >
Problems running rethinkdb-dump from cron - Stack Overflow
When you run it from that backup.sh script, it maybe run without correct PATH setup and cannot found the PATH of rethinkdb-dump ....
Read more >
spikeinterface - githubmemory
Probe file not linking with spike sorters · Run `ss.sorter` without `set_probe()` · Conda package support · Problem when running `se.NumpyRecording.dump()`.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found