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

can init mech with nexus id #113

Merged
merged 3 commits into from
Mar 5, 2024
Merged

can init mech with nexus id #113

merged 3 commits into from
Mar 5, 2024

Conversation

AurelienJaquier
Copy link
Collaborator

No description provided.

Change-Id: I802aa7cf0c16bda21e5bc4c0f08e44b6e93a0e52
@AurelienJaquier AurelienJaquier self-assigned this Mar 5, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.13%. Comparing base (8eb60d5) to head (dcf3b01).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #113   +/-   ##
=======================================
  Coverage   59.13%   59.13%           
=======================================
  Files         106      106           
  Lines        7652     7652           
=======================================
  Hits         4525     4525           
  Misses       3127     3127           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AurelienJaquier AurelienJaquier requested a review from ilkilic March 5, 2024 10:21
@@ -211,6 +211,7 @@ def init_from_dict(self, configuration_dict, morphology, auto_mechanism=False):
mechanism.get("version", None),
mechanism.get("temperature", None),
mechanism.get("ljp_corrected", None),
mechanism.get("id", None),
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't we update the definition of add_mechanism?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch. solved in latest commit

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, then we should either call the function using keyword arguments or consider rearranging the function definition of add_mechanism to move auto_parameter to the last position in its parameter list

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed. I added keyword arguments to the function call

Change-Id: I9440211e61ae69a399b897a68b904346621a4b99
@darshanmandge
Copy link
Collaborator

So, you do not plan to add modelid for the mechanisms here?

@AurelienJaquier
Copy link
Collaborator Author

No, we said just nexus_id.

Change-Id: I03ccff72af19c1c41ffc10dd7e83e640ddb036dd
@darshanmandge
Copy link
Collaborator

The modelid could also be another entry as a fallback if nexus id is deprecated or not present. This can ensure that bpem downloads correct mechanisms. But for now, it is fine to use the nexus id.

@AurelienJaquier AurelienJaquier merged commit 36cb1f0 into main Mar 5, 2024
7 checks passed
@AurelienJaquier AurelienJaquier deleted the mech-update branch March 5, 2024 14:12
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.

4 participants