Describe the bug
I get different, incorrect values when reading a BP5 file in Python I created using the C++ API.
I also get different values each time I run the script to read the data(!).
To Reproduce
Compile-able/executable code example to reproduce the problem:
Python:
import openpmd_api as io
series = io.Series("plt00000.bp", io.Access.read_only)
my_iter = series.iterations[0]
mesh = my_iter.meshes
comp = mesh['gasDensity']['\x0bScalar']
my_list = list(comp)
print("first try:")
# this gives one value
print(comp[0])
print("second try (produces different output from the above, and different on each run):")
# this is different from the above
print(comp[0])
Reading from these attached files:
quokka_bp5.tar.gz
Expected behavior
It should produce the same output every time it's run!
Software Environment
- version of openPMD-api: 0.15.2
- installed openPMD-api via: brew
- operating system: macOS 14.2
- machine: MacBook Pro (Apple M1 Pro)
- name and version of Python implementation: CPython 3.12.1
- version of HDF5: 1.14.3
- version of ADIOS2: 2.9.2
- name and version of MPI: OpenMPI 5.0.0
Additional context
Written using Quokka: quokka-astro/quokka@f7f34fc
Describe the bug
I get different, incorrect values when reading a BP5 file in Python I created using the C++ API.
I also get different values each time I run the script to read the data(!).
To Reproduce
Compile-able/executable code example to reproduce the problem:
Python:
Reading from these attached files:
quokka_bp5.tar.gz
Expected behavior
It should produce the same output every time it's run!
Software Environment
Additional context
Written using Quokka: quokka-astro/quokka@f7f34fc