From 9b176332534245e2107e9c8f854250c0a7a87e12 Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Tue, 17 Sep 2024 10:45:52 -0700 Subject: [PATCH] exclude years for exposures and preproc --- bin/desi_tucson_transfer_catchup.sh | 4 ++-- py/desitransfer/tucson.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/desi_tucson_transfer_catchup.sh b/bin/desi_tucson_transfer_catchup.sh index 20831d6..d474c3f 100755 --- a/bin/desi_tucson_transfer_catchup.sh +++ b/bin/desi_tucson_transfer_catchup.sh @@ -34,8 +34,8 @@ for d in engineering/focalplane engineering/focalplane/hwtables \ 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' ;; + spectro/redux/daily/exposures) priority=''; exclude='--exclude 2019* --exclude 2020* --exclude 2021* --exclude 2022* --exclude 2023* --exclude *.tmp' ;; + spectro/redux/daily/preproc) priority=''; exclude='--exclude 2019* --exclude 2020* --exclude 2021* --exclude 2022* --exclude 2023* --exclude *.tmp --exclude preproc-*.fits --exclude preproc-*.fits.gz' ;; spectro/redux/daily/tiles) priority=''; exclude='--exclude *.tmp --exclude temp' ;; *) priority='nice'; exclude='' ;; esac diff --git a/py/desitransfer/tucson.py b/py/desitransfer/tucson.py index a734cc4..8547fac 100644 --- a/py/desitransfer/tucson.py +++ b/py/desitransfer/tucson.py @@ -69,9 +69,9 @@ '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"], + 'spectro/redux/daily/exposures': exclude_years(2019) + ["--exclude", "*.tmp"], + 'spectro/redux/daily/preproc': exclude_years(2019) + ["--exclude", "*.tmp", "--exclude", "preproc-*.fits", + "--exclude", "preproc-*.fits.gz"], 'spectro/redux/daily/tiles': ["--exclude", "*.tmp", "--exclude", "temp"], 'spectro/templates/basis_templates': ["--exclude", ".svn", "--exclude", "basis_templates_svn-old"], 'survey/ops/surveyops/trunk': ["--exclude", ".svn", "--exclude", "cronupdate.log"],