dacapo.utils.array_utils
Functions
|
An alternative implementation of __getitem__ that supports |
|
An alternative implementation of __setitem__ that supports |
Module Contents
- dacapo.utils.array_utils.to_ndarray(result_data, roi, fill_value=0)
An alternative implementation of __getitem__ that supports using fill values to request data that may extend outside the roi covered by result_data.
- Parameters:
(`class (roi) –
Roi`, optional):
If given, copy only the data represented by this ROI. This is equivalent to:
array[roi].to_ndarray()
fill_value (scalar, optional) – The value to use to fill in values that are outside the ROI provided by this data. Defaults to 0.
- dacapo.utils.array_utils.save_ndarray(data, roi, array)
An alternative implementation of __setitem__ that supports using fill values to request data that may extend outside the roi covered by result_data.
- Parameters:
(`class (roi) –
Roi`, optional):
If given, copy only the data represented by this ROI. This is equivalent to:
array[roi] = data
fill_value (scalar, optional) – The value to use to fill in values that are outside the ROI provided by this data. Defaults to 0.