Skip to content

Commit

Permalink
Add a version attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Feb 14, 2019
1 parent 6b4125c commit 0bf3901
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proseco/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from .fid import get_fid_catalog, FidTable
from . import characteristics_acq as ACQ
from . import characteristics as ACA
from . import test as test_from_init

VERSION = test_from_init(get_version=True)


def get_aca_catalog(obsid=0, **kwargs):
Expand Down Expand Up @@ -176,6 +179,7 @@ class ACATable(ACACatalogTable):
"""
optimize = MetaAttribute(default=True)
call_args = MetaAttribute(default={})
version = MetaAttribute()

# For validation with get_aca_catalog(obsid), store the starcheck
# catalog in the ACATable meta.
Expand Down Expand Up @@ -233,6 +237,7 @@ def set_attrs_from_kwargs(self, **kwargs):

self.t_ccd_eff_acq = get_effective_t_ccd(self.t_ccd_acq)
self.t_ccd_eff_guide = get_effective_t_ccd(self.t_ccd_guide)
self.version = VERSION


def get_review_table(self):
Expand Down

0 comments on commit 0bf3901

Please sign in to comment.