Skip to content

Commit

Permalink
avoid explicit casts to np.array
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHancock committed Aug 1, 2018
1 parent fe42dcb commit e5d0638
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions AegeanTools/BANE.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,7 @@ def filter_mc_sharemem(filename, step_size, box_size, cores, shape, nslice=None,
pool.close()
pool.join()

# cast back to regular np arrays
rms = np.array(irms, dtype=np.float32)
bkg = np.array(ibkg, dtype=np.float32)
return bkg, rms
return ibkg, irms


def filter_image(im_name, out_base, step_size=None, box_size=None, cores=None, mask=True, compressed=False, nslice=None):
Expand Down

0 comments on commit e5d0638

Please sign in to comment.