pyNSID.io.hdf_utilsΒΆ
Lower-level and simpler NSID-specific HDF5 utilities that facilitate higher-level data operations
Created on Tue Aug 3 21:14:25 2020
@author: Gerd Duscher, and Suhas Somnath
Functions
converts structure dictionary to ase.Atoms object |
|
Checks the input dataset to see if it has all the necessary features to be considered a Main dataset. |
|
Uses visit() to find all datasets with the desired name :param h5_group: Group to search within for the Dataset :type h5_group: |
|
Simple function to recursively print the contents of an hdf5 group :param parent: HDF5 Group to search within :type parent: |
|
Attaches datasets as h5 Dimensional Scales to h5_main |
|
Makes a pyNSID file compatible with the NeXus file format by adding the approbriate attributes and by writing one group. |
|
Validates a dimension already present in an HDF5 file. |
|
Validates the shape of the main dataset against the dictionary of dimensions and the parent HDF5 group into which the data would be written. |
|
Writes book-keeping information to the HDF5 object |