cortex-lab / phylib

Lightweight electrophysiological data analysis library
BSD 3-Clause "New" or "Revised" License
11 stars 23 forks source link

Catch error on get spike waveform and try to get raw data #45

Closed ponytojas closed 4 months ago

ponytojas commented 5 months ago

This pull request improves the error handling mechanism when loading spike waveforms from precomputed data. Previously, the code would directly load the spike waveforms if available, or fallback to extracting waveforms from raw data if precomputed waveforms were not present.

The enhancement includes a try-except block to handle potential errors during the loading of precomputed waveforms, ensuring a more robust and fail-safe execution.