def load_data(self, uid: str, prefix: str):
"""
Load data from a specified group (prefix) - gps or gravity, from the projects HDF5 store.
:param str uid: Datafile Unique Identifier
:param str prefix: Data type prefix [gps or gravity]
:return:
"""
with HDFStore(str(self.hdf_path)) as store:
try:
data = store.get('{}/{}'.format(prefix, uid))
except KeyError:
return None
else:
return data
评论列表
文章目录