Closed jmangum closed 2 years ago
what's the warning?
/Users/jmangum/Python/mangum_galaxies-master/CubeLineMoment.py:426: RuntimeWarning: divide by zero encountered in divide
gauss_mask_cube = np.exp(-(np.array(centroid_map)[None,:,:] -
eh, if you want to silence them, use np.seterr(divide='ignore')
. I wouldn't worry otherwise
ok. Will just explain better in documentation.
I don't think that this is a bug, but does produce a distressing warning when there are NaN values in the
width_map
cube, which is produced using:The line that produces the warning is:
I believe that the input cubes use NaN as a blanking value. Is there a better way to handle these (probably innocuous) issues/warnings?