Skip to content

Commit

Permalink
minor consistency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lat1le committed Feb 10, 2017
1 parent 9cab29a commit 5f97bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datacube/storage/storage.py
Expand Up @@ -70,7 +70,7 @@ def _rasterio_transform(src):


def _calc_offsets_impl(off, scale, src_size, dst_size):
assert scale >= 1-1e-15
assert scale >= 1-1e-5

if off >= 0:
write_off = 0
Expand Down Expand Up @@ -117,7 +117,7 @@ def _read_decimated(array_transform, src, dest_shape):
return None, None, None


def _no_scale(affine, eps=0.01):
def _no_scale(affine, eps=1e-5):
return abs(abs(affine.a) - 1.0) < eps and abs(abs(affine.e) - 1.0) < eps


Expand Down

0 comments on commit 5f97bb1

Please sign in to comment.