extract_h5_attrs
extract_h5_attrs(
     h5file: File ,
     name_map: dict[str, str] ,
     fill_values = None,
 )
Extract attributes from h5 file based on structure.
Parameters
| Parameter | Description | 
|---|---|
| h5file | A an open h5file as returned by h5py.File. | 
| name_map | A mapping from {old_name: new_name}. Old name must include one dot which separates the path from the attribute name. eg {“DasData.SamplingRate”: “sampling_rate”}. | 
Raises
KeyError if any datasets/attributes are missing.
