CABLE-LSM / benchcab

Tool for evaluation of CABLE land surface model
https://benchcab.readthedocs.io/en/latest/
Apache License 2.0
2 stars 3 forks source link

Add `metadata` attribute to `Model` class #288

Open SeanBryan51 opened 5 months ago

SeanBryan51 commented 5 months ago

The following code can be encapsulated within a metadata attribute associated with each model instance:

https://github.com/CABLE-LSM/benchcab/blob/9034b12e93a3e11493e793a341c06167cb8834c9/src/benchcab/fluxsite.py#L266-L267

This is useful for reusing the Model class within the context of spack. Spack installed models will have different metadata attributes, e.g the name, version and hash of the package, which should be recorded in the model outputs.