Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata attribute to Model class #288

Open
SeanBryan51 opened this issue Apr 29, 2024 · 0 comments
Open

Add metadata attribute to Model class #288

SeanBryan51 opened this issue Apr 29, 2024 · 0 comments
Labels
priority:medium Medium priority issues to become high priority issues after a release.

Comments

@SeanBryan51
Copy link
Collaborator

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

"cable_branch": self.model.repo.get_branch_name(),
"svn_revision_number": self.model.repo.get_revision(),

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.

@ccarouge ccarouge added the priority:medium Medium priority issues to become high priority issues after a release. label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:medium Medium priority issues to become high priority issues after a release.
Projects
None yet
Development

No branches or pull requests

2 participants