apphys / hpsim

GPU-accelerated Ion Linear Particle Accelerator Simulation
11 stars 6 forks source link

Changing mask == None to mask is None for better type checking. #1

Closed jeinstei closed 6 years ago

jeinstei commented 7 years ago

Using Python 2.7.12 and Numpy 1.13, I was getting errors that a Numpy array can't be compared using a standard "==" operator as an array is not a single element. The "is" operator is supported, and should allow for proper operation.