File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2247,6 +2247,15 @@ def testScalarHdf5Fields(self):
22472247 except ImportError :
22482248 return
22492249
2250+ # While the openPMD-api (currently) does not create scalar HDF5
2251+ # datasets, we should at least try reading and modifying them in files
2252+ # that were created elsewhere. Scalar here refers to a dataset without
2253+ # dimension. Interacting with them in the openPMD-api is possible by
2254+ # specifying a single element, i.e. offset=[0], extent=[1].
2255+ # For testing this, create a dataset, then use h5py to create a scalar
2256+ # dataset in the file. Then, open first for reading, then for
2257+ # modifying.
2258+
22502259 file = "../samples/scalar_hdf5.h5"
22512260 series_write = io .Series (file , io .Access .create )
22522261 E_x = series_write .write_iterations ()[0 ].meshes ["E" ]["x" ]
You can’t perform that action at this time.
0 commit comments