harmonized NumPy usage with most common pattern in GalSim
(#382)