Skip to content

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Mar 18, 2025

We default to ADIOS2 output when available for
performance in the I/O of our BeamMonitor element.

For CI and correctness tests, because sometimes it is easier/faster to install from packages (e.g., Debian), we hard-code the HDF5 openPMD backend, to avoid that the test behaves differently if ADIOS2 is present (switches to bp) or not (switches to h5).

Now, we can actually let the code switch automatically because with openPMD 0.16+, we have a generic pattern .%E in analsy scripts to read the written files and match the first openPMD backend that works (by file name extension). That way, we can now simplify our examples by not adding the extra lines to control the openPMD backend anymore.

@ax3l ax3l added component: diagnostics all types of outputs component: tests examples, tests and benchmarks labels Mar 18, 2025
@ax3l ax3l requested review from EZoni and cemitch99 March 18, 2025 18:26
@ax3l ax3l mentioned this pull request Mar 18, 2025
@ax3l ax3l force-pushed the examples-default-backend branch from 72acda1 to 0682da3 Compare March 18, 2025 21:40
We default to ADIOS2 output when available for
performance in the I/O of our `BeamMonitor` element.

For CI and correctness tests, because sometimes it is easier/faster
to install from packages (e.g., Debian), we hard-code the HDF5
openPMD backend, to avoid that the test behaves differently if
ADIOS2 is present (switches to bp) or not (switches to h5).

Now, we can actually let the code switch automatically because
with openPMD 0.16+, we have a generic pattern `.%E` in analsy
scripts to read the written files and match the first openPMD
backend that works (by file name extension). That way, we can now
simplify our examples by not adding the extra lines to control
the openPMD backend anymore.
@ax3l ax3l force-pushed the examples-default-backend branch from 0682da3 to 8fb5601 Compare March 21, 2025 22:35
@ax3l ax3l force-pushed the examples-default-backend branch from 8fb5601 to cf55096 Compare March 21, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: diagnostics all types of outputs component: tests examples, tests and benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant