From 22f3309450f065371106ac61360ab1bc18ae204f Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 17 Apr 2024 11:28:41 -0700 Subject: [PATCH] Fix: Read `ParticlePatches` Attr `ParticlePatches` are no openPMD records but a special group. It does not need required record components such as `unitDimension`. --- src/backend/PatchRecord.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/backend/PatchRecord.cpp b/src/backend/PatchRecord.cpp index 9b87835194..967f5d300f 100644 --- a/src/backend/PatchRecord.cpp +++ b/src/backend/PatchRecord.cpp @@ -60,24 +60,6 @@ void PatchRecord::flush_impl( void PatchRecord::read() { - Parameter aRead; - aRead.name = "unitDimension"; - IOHandler()->enqueue(IOTask(this, aRead)); - IOHandler()->flush(internal::defaultFlushParams); - - if (auto val = - Attribute(*aRead.resource).getOptional >(); - val.has_value()) - this->setAttribute("unitDimension", val.value()); - else - throw error::ReadError( - error::AffectedObject::Attribute, - error::Reason::UnexpectedContent, - {}, - "Unexpected Attribute datatype for 'unitDimension' (expected an " - "array of seven floating point numbers, found " + - datatypeToString(Attribute(*aRead.resource).dtype) + ")"); - Parameter dList; IOHandler()->enqueue(IOTask(this, dList)); IOHandler()->flush(internal::defaultFlushParams);