Closed ax3l closed 6 years ago
I checked with the thetaMode
dataset in openPMD examples, and it seems to give the correct result:
openPMD_check_h5 -i data00000400.h5
Warning: Attribute author (recommended) does NOT exist in `/`!
Found 1 iteration(s)
Iteration 400 : found 4 meshes
Error: `basePath`+`particlesPath` are set but path 'b'/data/400/particles/'' does not exist in file!
Result: 1 Errors and 1 Warnings.
Cool! And if you remove the particlesPath
attribute from /
- does this silence the validator and report "found 0 particles"? :)
Nope. It raises an error (see inline comments...)
Thanks, pushed the fix!
Thanks! This now works fine with the missing particlePath
openPMD_check_h5 -i example-thetaMode/hdf5/data00000400.h5
Warning: Attribute author (recommended) does NOT exist in `/`!
Found 1 iteration(s)
Iteration 400 : found 4 meshes
Iteration 400 : found 0 particle species
Result: 0 Errors and 1 Warnings.
@RemiLehe thx for the review, I applied your suggested changes and explained the open question
Implements that
meshesPath
andparticlesPath
are optional in openPMD1.1.0
+.But if they are set, the directories those attributes point to must exist.
See: https://github.com/openPMD/openPMD-standard/pull/171