We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Here’s a simple issue.
The result of get_potential_energy() should be a float, but it is currently returning a numpy.array.
get_potential_energy()
float
numpy.array
from ase.build import molecule from aimnet2calc import AIMNet2ASE atoms = molecule('H2O') atoms.calc = AIMNet2ASE(base_calc='aimnet2_wb97m_0.jpt') e = atoms.get_potential_energy() print(e) # array([-2081.04087209])
It seems that .item() was missing here as well:
self.results['energy'] = results['energy'].item()
Thank you! :)
The text was updated successfully, but these errors were encountered:
agreed here! this upsets MyPy and causes downstream issues
Sorry, something went wrong.
No branches or pull requests
Hi,
Here’s a simple issue.
The result of
get_potential_energy()
should be afloat
, but it is currently returning anumpy.array
.It seems that .item() was missing here as well:
Thank you! :)
The text was updated successfully, but these errors were encountered: