mantidimaging.core.parallel.utility module¶
- mantidimaging.core.parallel.utility.create_array(shape: ~typing.Tuple[int, ...], dtype: npt.DTypeLike = <class 'numpy.float32'>) ndarray [source]¶
Create an array, either in a memory file (if name provided), or purely in memory (if name is None)
- Parameters:
shape – Shape of the array
dtype – Dtype of the array
name – Name of the shared memory array. If None, a non-shared array will be created
random_name – Whether to randomise the name. Will discard anything in the name parameter
- Returns:
The created Numpy array