openPMD-api backend
This new release introduces the option to read openPMD
files with different backends. In addition to the legacy h5py
backend (which can read only HDF5 openPMD file), openPMD-viewer
now has the option to use the openpmd-api
backend (which can read both HDF5 and ADIOS openPMD files). Because the openpmd-api
backend is thus more general, it is selected by default if available (i.e. if installed locally).
The user can override the default choice, by passing the backend
argument when creating an OpenPMDTimeSeries
object, and check which backend has been chosen by inspecting the .backend
attribute of this object.
In addition, several smaller changes were introduced in this PR:
- The method
get_laser_envelope
can now take the argumentlaser_propagation
in order to support lasers that do not propagates along thez
axis. openPMD-viewer
can now properly readgroupBased
openPMD files (i.e. files that contain several iterations) #301.- Users can now pass arrays of ID to the
ParticleTracker
#283