MillionConcepts / pdr

[P]lanetary [D]ata [R]eader - A single function to read all Planetary Data System (PDS) data into Python
Other
60 stars 6 forks source link

check for file name of data objects in detached labels #22

Closed m-stclair closed 1 year ago

m-stclair commented 2 years ago

When a constructor for pdr.Data is passed the name of a data file and automatically matches it with a detached label file during object creation, it should check the label for the file name of the originating data file. If not present, it should print a warning that the label may be mismatched, and inform the user that if something appears wrong, they should consider passing the label_name= kwarg to point to the correct label file (which may be the data file itself if it has an attached label). It should not perform this check for attached labels.

m-stclair commented 1 year ago

long obviated by other file matching changes, closing