eolearn.core.exceptions

Implementation of custom eo-learn exceptions and warnings

exception eolearn.core.exceptions.EODeprecationWarning[source]

Bases: DeprecationWarning

A custom deprecation warning for eo-learn package.

exception eolearn.core.exceptions.EOUserWarning[source]

Bases: UserWarning

A custom user warning for eo-learn package.

exception eolearn.core.exceptions.EORuntimeWarning[source]

Bases: RuntimeWarning

A custom runtime warning for eo-learn package.

eolearn.core.exceptions.renamed_and_deprecated(deprecated_class)[source]

A class decorator that signals that the class has been renamed when initialized.

Example of use:

@renamed_and_deprecated
class OldNameForClass(NewNameForClass):
    ''' Deprecated version of `NewNameForClass`
    '''