AdaptiveMotorControlLab / CEBRA

Learnable latent embeddings for joint behavioral and neural analysis - Official implementation of CEBRA
https://cebra.ai
Other
875 stars 66 forks source link

Enhance `ModuleNotFoundError` messages #85

Closed stes closed 10 months ago

stes commented 10 months ago

As discussed in #57 , the error messages when using cebra.load and other parts of the code can be improved. This PR fixes #77 and adds more context to all error messages for cebra.load, and also removes the confusing error message about the nlb_tools package in the demo notebooks.

It turns out that this module is only needed when accessing the raw NWB files, but not for loading the preprocessed files we host on figshare. The error is hence moved into that particular loading function.

Fix #77