Skip to content

Commit

Permalink
more freeze_iers
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Apr 21, 2020
1 parent 7a18745 commit 3ae76e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ desisim change log
0.35.2 (unreleased)
-------------------

* No changes yet.
* Add freeze_iers to more functions in simexp (direct to master).

0.35.1 (2020-04-15)
-------------------
Expand Down
5 changes: 3 additions & 2 deletions py/desisim/simexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import desimodel.io
from desimodel.focalplane import fiber_area_arcsec2
import desiutil.depend
from desiutil.iers import freeze_iers
import desispec.interpolation
import desisim.io
import desisim.specsim
Expand Down Expand Up @@ -131,6 +132,7 @@ def simflat(flatfile, nspec=5000, nonuniform=False, exptime=10, testslit=False,
import specsim.simulator
from desiutil.log import get_logger
log = get_logger()
freeze_iers()

log.info('Reading flat lamp spectrum from {}'.format(flatfile))
sbflux, hdr = fits.getdata(flatfile, header=True)
Expand Down Expand Up @@ -243,6 +245,7 @@ def simscience(targets, fiberassign, obsconditions='DARK', expid=None,
'''
from desiutil.log import get_logger
log = get_logger()
freeze_iers()

flux, wave, meta = targets

Expand Down Expand Up @@ -393,8 +396,6 @@ def simulate_spectra(wave, flux, fibermap=None, obsconditions=None, redshift=Non

from desiutil.log import get_logger
log = get_logger('DEBUG')

from desiutil.iers import freeze_iers
freeze_iers()

# Input cosmology to calculate the angular diameter distance of the galaxy's redshift
Expand Down

0 comments on commit 3ae76e4

Please sign in to comment.