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

142 model download change #150

Merged
merged 20 commits into from
Jul 19, 2024

Conversation

federicazanca
Copy link
Collaborator

@federicazanca federicazanca commented Jul 10, 2024

Close #142
Changed things:

  • When downloaded the model file is not saved as a file, just in the database unless the keyword keep_file is used
  • The existence of the file is checked via "model_hash"
  • Changed names of the functions to follow convention
  • Removed filepath attribute, which made it more difficult to share data since it referred to a file path in a local computer. And made some changes in the code related to this removal

@federicazanca
Copy link
Collaborator Author

Note: there is the same issue with the filepath in the config file, but actually I ended up never using filepath in the calcjobs or anywhere else, so it's a problem mostly cause it's useless lines of code, but it's usable without issues I think. There are in general some things to change in the config file cause I ended up not using some features, but it's not too urgent.

Copy link
Member

@ElliottKasoar ElliottKasoar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far.

A few suggestions for tidying up, and a few more general questions where comments here and/or in the code itself my be useful

tests/data/test_model.py Outdated Show resolved Hide resolved
tests/data/test_model.py Outdated Show resolved Hide resolved
docs/source/user_guide/data.rst Show resolved Hide resolved
aiida_mlip/data/model.py Outdated Show resolved Hide resolved
aiida_mlip/data/model.py Outdated Show resolved Hide resolved
aiida_mlip/data/model.py Outdated Show resolved Hide resolved
aiida_mlip/data/model.py Outdated Show resolved Hide resolved
aiida_mlip/calculations/base.py Outdated Show resolved Hide resolved
aiida_mlip/calculations/base.py Outdated Show resolved Hide resolved
aiida_mlip/calculations/base.py Outdated Show resolved Hide resolved
@alinelena alinelena requested a review from ElliottKasoar July 11, 2024 09:55
aiida_mlip/data/model.py Outdated Show resolved Hide resolved
Co-authored-by: Alin Marin Elena <[email protected]>
Co-authored-by: ElliottKasoar <[email protected]>
Copy link
Collaborator

@oerc0122 oerc0122 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think fundamentally the change from URL to URI is not what we actually want.

aiida_mlip/calculations/base.py Outdated Show resolved Hide resolved
aiida_mlip/data/model.py Outdated Show resolved Hide resolved
@alinelena alinelena requested a review from oerc0122 July 18, 2024 11:24
aiida_mlip/data/model.py Outdated Show resolved Hide resolved
tests/data/test_model.py Outdated Show resolved Hide resolved
oerc0122
oerc0122 previously approved these changes Jul 18, 2024
Copy link
Member

@ElliottKasoar ElliottKasoar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ElliottKasoar ElliottKasoar merged commit 9336017 into stfc:main Jul 19, 2024
8 checks passed
@federicazanca federicazanca deleted the 142-model-download-change branch July 19, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model download change
4 participants