Maintenance scheduled for Thursday, September 24th at 15:00 MDT. Expected downtime <1 hour.

Updated to use improved position method

parent 6a9c2c84
......@@ -320,7 +320,7 @@ class FullResults(Results):
return res
def positions(self, normalize=()):
def positions(self, normalize=(), time=None):
"""Returns particle position array
Parameters
......@@ -349,6 +349,17 @@ class FullResults(Results):
for a in absolute:
positions[:, :, a] = self._positions[:, :, a]
if time is not None:
positions = np.apply_along_axis(
lambda p: np.interp(
time,
self._time,
p,
left=np.nan,
right=np.nan),
0,
positions)
return positions
def position_cfrac(self, time, position_axis=0):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment