Accessing density map data directly using NumPy.
4 from __future__
import print_function
12 if not IMP.IMP_KERNEL_HAS_NUMPY:
13 print(
"IMP was not built with NumPy support.")
16 dmap = IMP.em.read_map(
26 print(m.min(), m.mean(), m.max())
29 print(m[m >= 0.1].size)
35 print(m.min(), m.mean(), m.max())