From b988921444ff46fa458f0f3aed58385fd0672826 Mon Sep 17 00:00:00 2001 From: Drew Leonard Date: Tue, 23 Aug 2022 10:54:52 +0100 Subject: [PATCH] Import desired attrs into new attrs.py Closes #188 --- dkist/net/attrs.py | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 dkist/net/attrs.py diff --git a/dkist/net/attrs.py b/dkist/net/attrs.py new file mode 100644 index 000000000..abf0cf6b9 --- /dev/null +++ b/dkist/net/attrs.py @@ -0,0 +1,61 @@ +from ._attrs import ( + Dataset, + WavelengthBand, + Embargoed, + Observable, + Experiment, + Proposal, + TargetType, + Recipe, + FriedParameter, + PolarimetricAccuracy, + ExposureTime, + EmbargoEndTime, + BrowseMovie, + BoundingBox, + SpectralSampling, + SpatialSampling, + TemporalSampling, +) + +# Trick the docs into thinking these attrs are defined in here. +for _a in ( + Dataset, + WavelengthBand, + Embargoed, + Observable, + Experiment, + Proposal, + TargetType, + Recipe, + FriedParameter, + PolarimetricAccuracy, + ExposureTime, + EmbargoEndTime, + BrowseMovie, + BoundingBox, + SpectralSampling, + SpatialSampling, + TemporalSampling, +): + _a.__module__ = __name__ + +__all__ = [ + "Dataset", + "WavelengthBand", + "Embargoed", + "Observable", + "Experiment", + "Proposal", + "TargetType", + "Recipe", + "FriedParameter", + "PolarimetricAccuracy", + "ExposureTime", + "EmbargoEndTime", + "BrowseMovie", + "BoundingBox", + "SpectralSampling", + "SpatialSampling", + "TemporalSampling", +]