meta.filename is used as a default file name in many places in the pipeline. Currently it is possible for meta.filename to fail to match the actual file name on disk when a file is copied and renamed, changing the actual filename but not the value of the meta.filename metadata.
We decided to follow Webb's example and limit how often this causes problems by:
setting meta.filename to the actual filename when we read a file in roman_datamodels
setting meta.filename to the actual filename when we write a file using roman_datamodels.
I believe we already do (2) but do not actually do (1). We should do both of these.
meta.filename is used as a default file name in many places in the pipeline. Currently it is possible for meta.filename to fail to match the actual file name on disk when a file is copied and renamed, changing the actual filename but not the value of the meta.filename metadata.
We decided to follow Webb's example and limit how often this causes problems by:
I believe we already do (2) but do not actually do (1). We should do both of these.