Source code for stixpy.science

from astropy.utils import deprecated

from stixpy.product import Product

__all__ = ["ScienceData", "StixpyDepreciationWarning"]


[docs] class StixpyDepreciationWarning(Warning): """ A warning class to indicate a deprecated feature. """
[docs] @deprecated(since="0.1.0", alternative="stixpy.product.Product", warning_type=StixpyDepreciationWarning) class ScienceData:
[docs] @deprecated(since="0.1.0", alternative="stixpy.product.Product", warning_type=StixpyDepreciationWarning) @classmethod def from_fits(cls, file): return Product(file)