openPMD / openPMD-api

:floppy_disk: C++ & Python API for Scientific I/O
https://openpmd-api.readthedocs.io
GNU Lesser General Public License v3.0
138 stars 51 forks source link

Bug fix: Linear read mode cannot directly access specific file of file-based Series #1533

Closed franzpoeschel closed 12 months ago

franzpoeschel commented 12 months ago

Not a frequent use case, since linear read mode is not really necessary for single-iteration files anyway, but it can happen e.g. when using openpmd-pipe as in openpmd-pipe --infile simData_000100.bp --outfile .... Since linear read mode does no parsing at construction time at all, it cannot initially know that the file is indeed file-based and needs to add a later check.