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.
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.