materialsvirtuallab / m3gnet

Materials graph network with 3-body interactions featuring a DFT surrogate crystal relaxer and a state-of-the-art property predictor.
BSD 3-Clause "New" or "Revised" License
238 stars 61 forks source link

make energy from M3GNetCalculator a float #36

Closed gpetretto closed 2 years ago

gpetretto commented 2 years ago

As discussed in #32 I converted the energies returned by the M3GNetCalculator to a single float instead of an array with one element. The examples with MD and Relaxer return exactly the same results as before, both for values and trajectories.