LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
81 stars 16 forks source link

Add errors for handling the deprecated names of version 1.5 #60

Closed WeisLeDocto closed 12 months ago

WeisLeDocto commented 1 year ago

With the upcoming change of major version to 2.0.0, a number of public classes in the project will be renamed. In order to provide support for users migrating from version 1.5 to 2.0, the deprecated names of the renamed objects should be nicely handled instead of raising bare Exceptions.

To do so, simple classes of the correct types and with the deprecated names will be created. They will raise an Exception at init, indicating the new name to use as a replacement. These classes will be gathered in a dedicated file, that will be removed when updating to the next minor version.