Skip to content

Commit 45abbf2

Browse files
committed
Skip inhomogeneous datasets instead of outright failing
1 parent 38aeb28 commit 45abbf2

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/source/usage/workflow.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ The openPMD-api distinguishes between a number of different access modes:
8282
1. Modifiable attributes (except ``/data/snapshot``) can currently not be read. Attributes such as ``/data/time`` that naturally change their value across Iterations will hence not be really well-usable; the last Iteration's value will currently leak into all other Iterations.
8383
2. There is no support for datasets that do not exist in all Iterations. The internal Iteration layouts should be homogeneous.
8484
If you need this feature, please contact the openPMD-api developers; implementing this is currently not a priority.
85+
Datasets that do not exist in all steps will be skipped at read time (with an error).
8586
3. Datasets with changing extents are supported.
8687

8788
* **Read/Write mode**: Creates a new Series if not existing, otherwise opens an existing Series for reading and writing.

src/IO/ADIOS/ADIOS2IOHandler.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,9 @@ namespace detail
22932293
auto var_steps = var.Steps();
22942294
if (file_steps != var_steps)
22952295
{
2296-
throw error::OperationUnsupportedInBackend(
2296+
throw error::ReadError(
2297+
error::AffectedObject::Dataset,
2298+
error::Reason::UnexpectedContent,
22972299
"ADIOS2",
22982300
&R"(
22992301
The opened file contains different data per step.

0 commit comments

Comments
 (0)