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

Explicitly specify water potential #353

Merged
merged 11 commits into from
Sep 21, 2021
Merged

Conversation

sudarsan-surendralal
Copy link
Member

Could possible fix the failing integration notebooks!

@sudarsan-surendralal sudarsan-surendralal added the integration Start the notebook integration tests for this PR label Sep 8, 2021
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1213865548

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 68.281%

Files with Coverage Reduction New Missed Lines %
pyiron_atomistics/atomistics/master/murnaghan.py 2 71.77%
Totals Coverage Status
Change from base Build 1212254905: -0.01%
Covered Lines: 11082
Relevant Lines: 16230

💛 - Coveralls

@sudarsan-surendralal
Copy link
Member Author

It turns out that the integration tests fail because the TIP3P water potential, which is now explicitly specified in the notebook, is not available:

~/work/pyiron_atomistics/pyiron_atomistics/pyiron_atomistics/atomistics/job/potentials.py in find_by_name(self, potential_name)
     74         mask = (self._potential_df["Name"] == potential_name)
     75         if not mask.any():
---> 76             raise ValueError("Potential '{}' not found in database.".format(
     77                              potential_name))
     78         return self._potential_df[mask]
ValueError: Potential 'H2O_tip3p' not found in database.

I think the reason is that these potentials are not included in pyiron-resources. @jan-janssen, this also explains #349. When the water potentials are not found, pyiron tries to search for alternate potentials with H and O which are some of the REAXFF potentials which are developed for oxides and adsorbates that happend to have hydrogen and oxygen but not for water molecules. But to even use these potentials, explicit charge has to be specified for each of the atoms. Which means we need to reevaluate how we automatically assign potentials in pyiron!

@jan-janssen
Copy link
Member

@sudarsan-surendralal Can not you define the water potential, just like you did in https://github.com/pyiron/pyiron_atomistics/blob/master/notebooks/water_MD.ipynb ?

@sudarsan-surendralal sudarsan-surendralal removed the integration Start the notebook integration tests for this PR label Sep 21, 2021
@sudarsan-surendralal
Copy link
Member Author

Thanks this should work now!

@sudarsan-surendralal sudarsan-surendralal merged commit ff0fcf7 into master Sep 21, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix_integration branch September 21, 2021 07:41
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