Skip to content

Commit d0bcdad

Browse files
committed
cast number to float to avoid multiple namespaces
1 parent fcac48f commit d0bcdad

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ccdproc/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,9 +1249,7 @@ def background_deviation_box(data, bbox, xp=None):
12491249
for i in range(int(0.5 * bbox), xlen, bbox):
12501250
for j in range(int(0.5 * bbox), ylen, bbox):
12511251
x1, x2, y1, y2 = setbox(i, j, bbox, xlen, ylen)
1252-
xpx.at(barr)[y1:y2, x1:x2].set(
1253-
xp.astype(sigma_func(data[y1:y2, x1:x2]), data.dtype)
1254-
)
1252+
xpx.at(barr)[y1:y2, x1:x2].set(float(sigma_func(data[y1:y2, x1:x2])))
12551253

12561254
return barr
12571255

0 commit comments

Comments
 (0)