Skip to content

Commit 746385c

Browse files
authored
Merge pull request #187 from desihub/zcat-nspec
Update definition of ZCAT_NSPEC
2 parents 3197b80 + cdeba79 commit 746385c

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

doc/DESI_SPECTRO_REDUX/SPECPROD/zcatalog/zpix-SURVEY-PROGRAM.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ SV_NSPEC [1]_ int32 Number of coadded spectra fo
225225
SV_PRIMARY [1]_ logical Boolean flag (True/False) for the primary coadded spectrum in SV (SV1+2+3)
226226
MAIN_NSPEC [1]_ int32 Number of coadded spectra for this TARGETID in Main survey
227227
MAIN_PRIMARY [1]_ logical Boolean flag (True/False) for the primary coadded spectrum in Main survey
228-
ZCAT_NSPEC int16 Number of coadded spectra for this TARGETID in this zcatalog
228+
ZCAT_NSPEC int16 Number of times this TARGETID appears in this catalog
229229
ZCAT_PRIMARY logical Boolean flag (True/False) for the primary coadded spectrum in this zcatalog
230230
========================== =========== ============ =====================================================================================================================================
231231

doc/DESI_SPECTRO_REDUX/SPECPROD/zcatalog/ztile-SURVEY-PROGRAM-GROUPTYPE.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ SV_NSPEC [1]_ int32 Number of coadded spectra fo
235235
SV_PRIMARY [1]_ logical Boolean flag (True/False) for the primary coadded spectrum in SV (SV1+2+3)
236236
MAIN_NSPEC [1]_ int32 Number of coadded spectra for this TARGETID in Main survey
237237
MAIN_PRIMARY [1]_ logical Boolean flag (True/False) for the primary coadded spectrum in Main survey
238-
ZCAT_NSPEC int16 Number of coadded spectra for this TARGETID in this zcatalog
238+
ZCAT_NSPEC int16 Number of times this TARGETID appears in this catalog
239239
ZCAT_PRIMARY logical Boolean flag (True/False) for the primary coadded spectrum in this zcatalog
240240
========================== =========== ============ =====================================================================================================================================
241241

doc/changes.rst

+2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ desidatamodel Change Log
55
23.6 (unreleased)
66
-----------------
77

8+
* Update definition of ``ZCAT_NSPEC`` (PR `#187`_).
89
* Add note about equivalent width values in ``fuji`` and ``guadalupe`` (PR `#181`_).
910
* Add note about units in FITS files (PR `#178`_).
1011

1112
.. _`#178`: https://github.com/desihub/desidatamodel/pull/178
1213
.. _`#181`: https://github.com/desihub/desidatamodel/pull/181
14+
.. _`#187`: https://github.com/desihub/desidatamodel/pull/187
1315

1416
23.1 (2023-06-12)
1517
-----------------

py/desidatamodel/data/column_descriptions.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ WEIGHT_ZFAIL,float64,,Should be all 1 at this point for main survey
432432
WISEMASK_W1,byte,,Bitwise mask for WISE W1 data
433433
WISEMASK_W2,byte,,Bitwise mask for WISE W2 data
434434
Z,float64,,Redshift measured by Redrock
435-
ZCAT_NSPEC,int32,,Number of coadded spectra for this TARGETID in this zcatalog
435+
ZCAT_NSPEC,int32,,Number of times this TARGETID appears in this catalog
436436
ZCAT_PRIMARY,bool,,Boolean flag (True/False) for the primary coadded spectrum in this zcatalog
437437
ZERR,float64,,Redshift error from redrock
438438
ZPOSSLOC,bool,,True/False whether the location could have been assigned to the given target class

py/desidatamodel/test/test_check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_files_to_regexp_with_bad_filetype(self):
123123
root = os.path.join(os.environ[DM], 'doc', 'DESI_SPECTRO_DATA')
124124
files = scan_model(root)
125125
foo = files[0].get_regexp(root)
126-
self.assertLog(log, -1, "Unusual file type, fits, detected for {0}!".format(files[0].filename))
126+
self.assertLog(log, -1, "Unusual file type, json, detected for {0}!".format(files[0].filename))
127127

128128
def test_get_regexp_filesize(self):
129129
"""Test extraction of file size from data model documents.

0 commit comments

Comments
 (0)