polaris.e3sm.init.inputdata.set_creation_date
- polaris.e3sm.init.inputdata.set_creation_date(config: PolarisConfigParser, section: str) str[source]
Set the creation date to today if it is not already set, and return it.
Called at setup so the date lands in the work directory’s config file. Re-running a step then reuses the date it was set up with, rather than silently renaming every staged file to today’s.
- Parameters:
config (polaris.config.PolarisConfigParser) – The config options, updated in place.
section (str) – The config section with the
creation_dateoption.
- Returns:
str – The creation date, as
YYYYMMDD.