Ptot hist too big
Allocation of the ptot
hist can fail, since it is enormously large. I wonder why we want to always create it.
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 1.83 GiB for an array with shape (400, 384, 50, 256) and data type uint8