From 42c16ed577d9116f4bea79b1f1692c65e2a5a770 Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Mon, 3 Jun 2024 10:09:35 -0700 Subject: [PATCH] restrict range of years for nightwatch data --- bin/desi_tucson_transfer_catchup.sh | 1 + py/desitransfer/tucson.py | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/desi_tucson_transfer_catchup.sh b/bin/desi_tucson_transfer_catchup.sh index 28ef2ef..a9092bf 100755 --- a/bin/desi_tucson_transfer_catchup.sh +++ b/bin/desi_tucson_transfer_catchup.sh @@ -32,6 +32,7 @@ for d in engineering/focalplane engineering/focalplane/hwtables \ engineering/focalplane) priority='nice'; exclude='--exclude archive --exclude hwtables --exclude *.ipynb --exclude .ipynb_checkpoints' ;; engineering/focalplane/hwtables) priority='nice'; exclude='--include *.csv --exclude *' ;; spectro/data) priority=''; exclude='--exclude 2018* --exclude 2019* --exclude 2020* --exclude 2021* --exclude 2022* --exclude 2023*' ;; + spectro/nightwatch/kpno) priority='nice'; exclude='--exclude 2021* --exclude 2022* --exclude 2023*' ;; spectro/redux/daily) priority=''; exclude='--exclude *.tmp --exclude attic --exclude exposures --exclude preproc --exclude temp --exclude tiles' ;; spectro/redux/daily/exposures) priority=''; exclude='--exclude *.tmp' ;; spectro/redux/daily/preproc) priority=''; exclude='--exclude *.tmp --exclude preproc-*.fits --exclude preproc-*.fits.gz' ;; diff --git a/py/desitransfer/tucson.py b/py/desitransfer/tucson.py index d2d22a3..396ea10 100644 --- a/py/desitransfer/tucson.py +++ b/py/desitransfer/tucson.py @@ -62,6 +62,7 @@ 'engineering/focalplane/hwtables': ["--include", "*.csv", "--exclude", "*"], 'spectro/desi_spectro_calib': ["--exclude", ".svn"], 'spectro/data': (' '.join([f'--exclude {y:d}*' for y in range(2018, time.localtime().tm_year)])).split(), + 'spectro/nightwatch/kpno': (' '.join([f'--exclude {y:d}*' for y in range(2021, time.localtime().tm_year)])).split(), 'spectro/redux/daily': ["--exclude", "*.tmp", "--exclude", "attic", "--exclude", "exposures", "--exclude", "preproc", "--exclude", "temp", "--exclude", "tiles"], 'spectro/redux/daily/exposures': ["--exclude", "*.tmp"], 'spectro/redux/daily/preproc': ["--exclude", "*.tmp", "--exclude", "preproc-*.fits", "--exclude", "preproc-*.fits.gz"],