Open
Description
Currently, we have undefined values in BTD lab stations that are not fully filled.
E.g., the example in Examples/Physics_applications/laser_acceleration/inputs_2d_boost
will with openPMD-viewer read back NaNs in the unwritten parts of the openPMD BP output if the BTD flush is incomplete (i.e., run with fewer timesteps).
Analysis:
from openpmd_viewer import OpenPMDTimeSeries
ts = OpenPMDTimeSeries('./diags/btd/')
for it in ts.iterations:
Ex = ts.get_field(field='E', coord='z', iteration = it)
print (it,Ex[0])
This is no problem for matplotlib, which we use in openPMD-viewer, since it handles NaN's gracefully.
But with other plotting tools, e.g., one that @jlvay use from WARP, this can cause issues.
reporter: @jlvay
cc: @RevathiJambunathan