Hello,
I changed velocity(s::Atoms), velocity(s::Atoms, i) to return missing, if the velocities are not defined.
Additionally s.atom_data.velocity[i] should be s.atom_data.velocities[i]
Currently, there is no porper way for AtomsBase users to ckeck if a system has velocities, excpet if the velocities are either 0 or missing and AtomsBases FastSystem uses missing for that. The documentation https://juliamolsim.github.io/AtomsBase.jl/stable/apireference/#AtomsBase.velocity even explictitly allows missing as a return value.
Hello, I changed
velocity(s::Atoms)
,velocity(s::Atoms, i)
to return missing, if the velocities are not defined. Additionallys.atom_data.velocity[i]
should bes.atom_data.velocities[i]
Currently, there is no porper way for AtomsBase users to ckeck if a system has velocities, excpet if the velocities are either 0 or missing and AtomsBasesFastSystem
uses missing for that. The documentation https://juliamolsim.github.io/AtomsBase.jl/stable/apireference/#AtomsBase.velocity even explictitly allows missing as a return value.