Hi, Here’s a simple issue. The result of `get_potential_energy()` should be a `float`, but it is currently returning a `numpy.array`. ```python 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](https://github.com/isayevlab/AIMNet2/blob/dc8e0918a3bd6434eea03a8de5df10688dc73c90/aimnet2calc/aimnet2ase.py#L80) as well: ``` self.results['energy'] = results['energy'].item() ``` Thank you! :)
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! :)