Skip to content

Commit 98a68fd

Browse files
authored
Merge pull request #189 from desihub/add-desiname
DESINAME description
2 parents 746385c + a62f017 commit 98a68fd

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

doc/changes.rst

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

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

1213
.. _`#178`: https://github.com/desihub/desidatamodel/pull/178
1314
.. _`#181`: https://github.com/desihub/desidatamodel/pull/181
1415
.. _`#187`: https://github.com/desihub/desidatamodel/pull/187
16+
.. _`#189`: https://github.com/desihub/desidatamodel/pull/189
1517

1618
23.1 (2023-06-12)
1719
-----------------

py/desidatamodel/data/column_descriptions.csv

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ DELTA_CHI2,float32,,Difference of chi2 between redrock fit and MgII fitter over
4141
DELTA_X,float64,mm,CS5 X requested minus actual position
4242
DELTA_Y,float64,mm,CS5 Y requested minus actual position
4343
DESI_TARGET,int64,,DESI (dark time program) target selection bitmask
44+
DESINAME,char[22],,Human readable identifier of a sky location precise to ~0.36 arcseconds. Note multiple objects can map to a single DESINAME if very close on the sky.
4445
DEVICE_LOC,int32,,Device location on focal plane [0-523]
4546
DEVICE_TYPE,char[3],,Device type
4647
EBV,float32,mag,Galactic extinction E(B-V) reddening from SFD98

py/desidatamodel/test/test_check.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,14 @@ def test_files_to_regexp_with_missing_filetype(self, mock_type):
119119
@patch.object(DataModel, '_expectedtypes', ('foo', 'bar'))
120120
def test_files_to_regexp_with_bad_filetype(self):
121121
"""Test compilation of regular expressions; log unusual file type.
122+
123+
Note that depending on the order in which the directory below is read,
124+
the unexpected file type may be fits or json.
122125
"""
123126
root = os.path.join(os.environ[DM], 'doc', 'DESI_SPECTRO_DATA')
124127
files = scan_model(root)
125128
foo = files[0].get_regexp(root)
126-
self.assertLog(log, -1, "Unusual file type, json, detected for {0}!".format(files[0].filename))
129+
self.assertLog(log, -1, "Unusual file type, %s, detected for %s!" % (files[0].filetype, files[0].filename))
127130

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

0 commit comments

Comments
 (0)