check_node_size#
- HDF5Widget.check_node_size(memory_ratio, path)#
Check if memory_ratio > self.memory_ratio_limit.
If memory_ratio > self.memory_ratio_limit, a QMessageBox.warning will appear notifying the user what percentage of available memory will be consumed by loading the node. The user can opt to continue loading the node, or cancel and return to the previous selection in the tree.
- Parameters:
- memory_ratio
FLOAT
The ratio of the critical dimension of the dataset selected, in bytes, to the available memory on the sytem.
- path
STR
Path to a dataset within self.hdf.
- memory_ratio
- Returns:
Bool
Returns True if memory_ratio <= self.memory_ratio_limit If memory_ratio > self.memory_ratio_limit, returns True if the user presses “Yes” on the dialog, opting to continue loading the node. Returns False if the user presses “No” on the dialog, opting to cancel loading the node and return to the previous selection in the tree.