temporary_update_filedate

roman_datamodels.datamodels.temporary_update_filedate(datamodel: DataModel, file_date: Time) Generator[None, None, None][source]

Context manager to temporarily update the filedate of a datamodel so that it can be saved with that new file date without changing the current model’s filedate.

Parameters:
  • datamodel – The datamodel instance to update.

  • file_date – The new file date to use.