From 3319b568456ebae12f5e6a3e2c03aef11949530e Mon Sep 17 00:00:00 2001 From: Stephen Bailey Date: Fri, 29 Sep 2017 16:14:39 -0700 Subject: [PATCH] update release notes and version for desispec/0.16.0 --- doc/changes.rst | 16 +++++++++++++++- py/desispec/_version.py | 3 +-- py/desispec/test/test_io.py | 13 ++++++++++++- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/doc/changes.rst b/doc/changes.rst index 5705242e6..df8f07dd5 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -2,7 +2,12 @@ desispec Change Log =================== -0.15.3 (unreleased) +0.16.1 (unreleased) +------------------- + +* No changes yet. + +0.16.0 (2017-09-29) ------------------- * Small fixes to desi_qa_prod and qa_prod @@ -27,11 +32,20 @@ desispec Change Log * Fixed exptime in fluxcalib ZP calculation (PR `#429`_) * Added find_exposure_night() method (PR `#429`_) * Add MED_SKY metric to QA and bright/dark flag in desi_qa_prod +* Update pipeline code for specex and redrock (PR `#439`_ and `#440`_) +* Adds code for adjusting trace locations to match sky lines (PR `#433`_) +* Updates to DB loading (PR `#431`_) +* Adds pixelflat code (PR `#426`_) .. _`#422`: https://github.com/desihub/desispec/pull/422 .. _`#424`: https://github.com/desihub/desispec/pull/424 .. _`#425`: https://github.com/desihub/desispec/pull/425 +.. _`#426`: https://github.com/desihub/desispec/pull/426 .. _`#429`: https://github.com/desihub/desispec/pull/429 +.. _`#431`: https://github.com/desihub/desispec/pull/431 +.. _`#433`: https://github.com/desihub/desispec/pull/433 +.. _`#439`: https://github.com/desihub/desispec/pull/439 +.. _`#440`: https://github.com/desihub/desispec/pull/440 0.15.2 (2017-07-12) ------------------- diff --git a/py/desispec/_version.py b/py/desispec/_version.py index 83025bb7f..8911e95ca 100644 --- a/py/desispec/_version.py +++ b/py/desispec/_version.py @@ -1,2 +1 @@ -__version__ = '0.15.2.dev1569' -__offline_qa_version__ = '0.4.2' +__version__ = '0.16.0' diff --git a/py/desispec/test/test_io.py b/py/desispec/test/test_io.py index 62b2d7c5b..070c2ae4c 100644 --- a/py/desispec/test/test_io.py +++ b/py/desispec/test/test_io.py @@ -5,6 +5,7 @@ from __future__ import absolute_import, division # The line above will help with 2to3 support. import unittest, os +import tempfile from datetime import datetime, timedelta from shutil import rmtree from pkg_resources import resource_filename @@ -25,18 +26,28 @@ def setUpClass(cls): cls.testfile = 'test-{uuid}/test-{uuid}.fits'.format(uuid=uuid1()) cls.testyfile = 'test-{uuid}/test-{uuid}.yaml'.format(uuid=uuid1()) cls.testbrfile = 'test-{uuid}/test-br-{uuid}.fits'.format(uuid=uuid1()) - cls.testDir = os.path.join(os.environ['HOME'],'desi_test_io') + # cls.testDir = os.path.join(os.environ['HOME'],'desi_test_io') + cls.testDir = tempfile.mkdtemp() cls.origEnv = {'SPECPROD':None, "DESI_SPECTRO_DATA":None, "DESI_SPECTRO_REDUX":None} cls.testEnv = {'SPECPROD':'dailytest', "DESI_SPECTRO_DATA":os.path.join(cls.testDir,'spectro','data'), "DESI_SPECTRO_REDUX":os.path.join(cls.testDir,'spectro','redux')} + cls.datadir = cls.testEnv['DESI_SPECTRO_DATA'] + cls.reduxdir = os.path.join(cls.testEnv['DESI_SPECTRO_REDUX'], + cls.testEnv['SPECPROD']) for e in cls.origEnv: if e in os.environ: cls.origEnv[e] = os.environ[e] os.environ[e] = cls.testEnv[e] + def setUp(self): + if os.path.isdir(self.datadir): + rmtree(self.datadir) + if os.path.isdir(self.reduxdir): + rmtree(self.reduxdir) + @classmethod def tearDownClass(cls): """Cleanup test files if they exist.