-
Notifications
You must be signed in to change notification settings - Fork 44
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
Update species->mass field following specification change #631
Conversation
5e75077
to
b13de87
Compare
Codecov Report
@@ Coverage Diff @@
## master #631 +/- ##
=======================================
Coverage 93.18% 93.19%
=======================================
Files 61 62 +1
Lines 3362 3381 +19
=======================================
+ Hits 3133 3151 +18
- Misses 229 230 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
7f2a19f
to
8148ed8
Compare
@ml-evs To sum up:
|
Further updates:
|
Maybe the adapter |
Is there anything still holding this up @CasperWA? I'd completely forgotten about it, but we should have really gotten this into the last openapi schema update ready for spec v1.0.1 |
I need to dig into it again before I can answer that question. But from a quick look it seems it's all about just testing your suggestion and that it catches the correct edge cases? |
I would be strongly in favour of splitting this PR into the model changes and the adapter changes, so that we can get the model changes in before the meeting today... |
Fix masses creation for AiiDA StructureData to take concentration into account.
Subclassing `optimade.server.warnings.OptimadeWarning`. Use new warnings in all adapters for reporting if adapter package is not installed. Use new warning for AiiDA if mass is set to the fallback value of 1.0. Update tests accordingly. Update pytest.ini to avoid printing a lot of the warnings messages.
4ec270b
to
76b70c7
Compare
I would consider this all good to go. |
Closes #630 following changes introduced in Materials-Consortia/OPTIMADE#344.