When using lens.list_neighbours_along_trajectory() with a 2D system (meaning, all z-coordinates are identical) without PBC, the simulation box is computed from scratch and has zero volume, which causes the calculations to crash.
Even if the universe has a well-defined box, that box is ignored and computed from scratch.
We could either add a "two_dim" bool parameter, or change the way the box and PBC are set up.
It is possible that LENS also has the same issue, since the logic for the PBC and box management is similar.
When using
lens.list_neighbours_along_trajectory()with a 2D system (meaning, all z-coordinates are identical) without PBC, the simulation box is computed from scratch and has zero volume, which causes the calculations to crash.Even if the universe has a well-defined box, that box is ignored and computed from scratch.
We could either add a "two_dim" bool parameter, or change the way the box and PBC are set up.
It is possible that LENS also has the same issue, since the logic for the PBC and box management is similar.