calculate_memory_ratio#
- HDF5Widget.calculate_memory_ratio(path)#
Calculate the memory ratio.
Finds a critical dimension, dim_crit, in bytes for the dataset selected and then calculates and returns memory_ratio: the ratio of dim_crit to the available memory on the sytem.
- Parameters:
- path
STR
Path to a dataset within self.hdf.
- path
- Returns:
Float
The ratio of the critical dimension of the dataset selected, in bytes, to the available memory on the sytem.