Skip to content

Commit 8d2b338

Browse files
committed
fix over sampler test
1 parent f4c3269 commit 8d2b338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoarray/operators/over_sampling/over_sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def binned_array_2d_from(self, array: Array2D) -> "Array2D":
226226
# sub_size=np.array(self.sub_size).astype("int"),
227227
# )
228228

229-
binned_array_2d = array.reshape(self.mask.shape_slim, self.sub_size[0]).mean(axis=1)
229+
binned_array_2d = array.reshape(self.mask.shape_slim, self.sub_size[0]**2).mean(axis=1)
230230

231231
return Array2D(
232232
values=binned_array_2d,

0 commit comments

Comments
 (0)