In converters.py, the tracksfromOPMD function has an argument z_is_xi. If set to true, the function tries to add z+c*t, in line 105.
However, sometimes the z array is split according to whether its entries are valid, in split_tracks_by_nan. If any entries are invalid, then z has a different dimension to t. This commit adds a line to split t according to the size of z.
In
converters.py
, thetracksfromOPMD
function has an argumentz_is_xi
. If set to true, the function tries to addz+c*t
, in line 105.However, sometimes the z array is split according to whether its entries are valid, in
split_tracks_by_nan
. If any entries are invalid, thenz
has a different dimension tot
. This commit adds a line to splitt
according to the size ofz
.