remove typos, whitespaces
@@ -306,11 +306,11 @@ class RegionGeom(Geom):
"""
factor = 10
wcs_geom = self.to_wcs_geom()
- wcs_geom_upsampled = wcs_geom.to_image().upsample(factor=factor)
- data = self.contains(wcs_geom_upsampled.get_coord()).astype(float)
# if the region has non-spatial axis, this way is faster
# create the spatial weights only
+ wcs_geom_upsampled = wcs_geom.to_image().upsample(factor=factor)
+ data = self.contains(wcs_geom_upsampled.get_coord()).astype(float)
weights_no_axis = Map.from_geom(wcs_geom_upsampled, data=data)
weights_no_axis = weights_no_axis.downsample(factor=factor)
weights_no_axis.data /= weights_no_axis.data.max()
