Skip to content

Commit

Permalink
add a delay to make sure TIMESTAMP in done/override file is later tha…
Browse files Browse the repository at this point in the history
…n in ledgers; update changes docs
  • Loading branch information
geordie666 committed Apr 21, 2022
1 parent 6cd8ede commit 1d7d663
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions doc/changes.rst
Expand Up @@ -5,10 +5,20 @@ desitarget Change Log
2.4.1 (unreleased)
------------------

* Better functionality for fiber-based ToOs and overrides [`PR #795`_]:
* Append new ToOs to the ledger rather than fully overwriting it.
* Create a separate ToO-fiber file for ``TOO_TYPE==FIBER`` targets.
* Don't allow high-priority fiber-override ToOs in the Main Survey.
* Addresses `issue #794`_.
* Create new mtl-done files to log when MTL overrides were forced.
* When forcing MTL overrides, always process all ledgers:
* This makes reproducibility easier to track for alt MTL ledgers.
* Added a notebook about running Main Survey targeting [`PR #791`_].
* To accompany the DESI target selection pipeline paper.

.. _`PR #791`: https://github.com/desihub/desitarget/pull/791
.. _`issue #794`: https://github.com/desihub/desitarget/issues/794
.. _`PR #795`: https://github.com/desihub/desitarget/pull/795

2.4.0 (2022-01-20)
------------------
Expand Down
4 changes: 3 additions & 1 deletion py/desitarget/mtl.py
Expand Up @@ -1517,7 +1517,9 @@ def force_overrides(obscon, survey='main', secondary=False, mtldir=None,

# ADM initialize the output array and add the tiles.
mocktiles = np.zeros(1, dtype=mtltilefiledm.dtype)
# ADM look up the time.
# ADM look up the time. Remember to delay so done-time is later than
# ADM any ledger-time.
sleep(1)
mocktiles["TIMESTAMP"] = get_utc_date(survey=survey)
# ADM add the version of desitarget.
mocktiles["VERSION"] = dt_version
Expand Down

0 comments on commit 1d7d663

Please sign in to comment.