Skip to content

BTD: Values for Unfilled Lab Stations #4775

Open
@ax3l

Description

@ax3l

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions