Compare commits

..

No commits in common. "d256d4ec2c73b035cb060d30f957fc255c3a444c" and "9bfc4d6fc1013ba1f14410914b9c7ae6c29c4321" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ class Field3d:
self.data = numpy.array(data)
self.origin = tuple([float(x) for x in origin])
self.spacing = tuple([float(x) for x in spacing])
self.eps_collapse = 1e-7
self.eps_collapse = 1e-12
self._dim = None
return
@ -371,7 +371,7 @@ class Field3d:
assert isinstance(rel_shift,(tuple,list,numpy.ndarray)) and len(rel_shift)==3,\
"'shift' must be tuple/list with length 3."
assert all([rel_shift[ii]>=-1.0 and rel_shift[ii]<=1.0 for ii in range(3)]),\
"'shift' must be in (-1.0,1.0). {}".format(rel_shift)
"'shift' must be in (-1.0,1.0)."
data = self.data.copy()
origin = list(self.origin)
sl = 3*[slice(None)]