AdaptiveMotorControlLab / CEBRA

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

Add Matplotlib ImportError when using compare_models() #53

Closed gonlairo closed 1 year ago

gonlairo commented 1 year ago

This pull request introduces a custom decorator @requires_package_version enabling the specification of the required package version for a specific function. We use it to specify the version of compare_models() function since it requires Matplotlib version 3.6 or higher.

Fix https://github.com/AdaptiveMotorControlLab/CEBRA-dev/pull/639 Fix https://github.com/AdaptiveMotorControlLab/CEBRA-dev/issues/580