E3SM-Project / polaris

Testing and analysis for OMEGA, MPAS-Ocean, MALI and MPAS-Seaice
BSD 3-Clause "New" or "Revised" License
6 stars 13 forks source link

Add model git hash to working dir #35

Closed cbegeman closed 1 year ago

cbegeman commented 1 year ago

Add the git hash for the model to a text file in the base of the working directory for test cases during setup.

cbegeman commented 1 year ago

@xylar What do you think about this? Does it seem useful? Is there a better place in the code to grab/write the git hash?

xylar commented 1 year ago

That's already in the provenance file, isn't it?

xylar commented 1 year ago

https://github.com/E3SM-Project/polaris/blob/main/polaris/provenance.py#L32-L37

cbegeman commented 1 year ago

@xylar Nice! I didn't realize that