Density.to_numpy#
- Density.to_numpy()[source]#
Converts
Density.data
to an in-memorynumpy.ndarray
.See also
Examples
>>> from tme import Density >>> density = Density.from_file("/path/to/large_file.mrc") >>> density.to_memmap() # Convert to memory-mapped array first >>> density.to_numpy() # Now, convert back to an in-memory array