From 2027b1893d6ff307cd6f5c09956569ee81170449 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 15 Sep 2021 15:44:55 -1000 Subject: [PATCH 1/2] adding DRAGONS version to header of outputs --- recipe_system/reduction/coreReduce.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipe_system/reduction/coreReduce.py b/recipe_system/reduction/coreReduce.py index 4e3714a87..839f100c7 100644 --- a/recipe_system/reduction/coreReduce.py +++ b/recipe_system/reduction/coreReduce.py @@ -24,6 +24,7 @@ class Reduce provides one (1) public method: from gempy.utils import logutils from astrodata import AstroDataError +# from astrodata._version import version from recipe_system import __version__ @@ -410,6 +411,9 @@ def _sname(name): return newname for ad in outputs: + ver = __version__ + if ver: + ad.phu['DRGNSVER'] = ver if self.suffix: username = _sname(ad.filename) ad.write(username, overwrite=True) From 88f0a9d4bf0600c890fe1692655a510ab6eebc99 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 19 Jan 2022 08:28:52 -1000 Subject: [PATCH 2/2] removing bogus import --- recipe_system/reduction/coreReduce.py | 1 - 1 file changed, 1 deletion(-) diff --git a/recipe_system/reduction/coreReduce.py b/recipe_system/reduction/coreReduce.py index 839f100c7..395af8e72 100644 --- a/recipe_system/reduction/coreReduce.py +++ b/recipe_system/reduction/coreReduce.py @@ -24,7 +24,6 @@ class Reduce provides one (1) public method: from gempy.utils import logutils from astrodata import AstroDataError -# from astrodata._version import version from recipe_system import __version__