Open
Description
just a minor issue discovered by @NeilZaim: "particle patches" are an optional feature in openPMD:
particle_reduction/reduction_main.py
Lines 649 to 651 in 8283f3f
Although PIConGPU always writes them, these patches might not exist in other data sets such as the examples here:
https://github.com/openPMD/openPMD-example-datasets/
This currently leads to a segfault when using the scripts with those examples.
Can we please add the following simple fallback logic? If particle species does not declare particle patches, just chunk the particle read by a fixed number of particles, e.g. 1e7 particles at a time.