Skip to content

TrajectorySet

Ronja Schnur edited this page Jan 16, 2023 · 2 revisions

__init__(
    positions : numpy.ndarray(dtype=float) # The initial points for a simulation
) -> pygranite.TrajectorySet

 

trajectory(
    id : int # Trajectory ID
) -> numpy.ndarray(dtype=float) 

Returns the internally stored trajectory (as an array of points) for the specified id.

 

trajectories() -> numpy.ndarray(dtype=float)

Returns all internally stored trajectories.

 

cloud() -> numpy.ndarray(dtype=float)

Returns all trajectory points in shape of a point cloud.

 

totalCurvatures() -> numpy.ndarray(dtype=float)

Returns array containing the computed curvature values if computed, throws exception if none available.

 

individualLengths() -> numpy.ndarray(dtype=float)

Returns an array containing the lengths of all trajectories in this dataset, if computed (requires AbortMode to be either Lengthor FitLength)

 

curvatures() -> numpy.ndarray(dtype=float)

Returns an array containing the individual curvature values for all points (except first and last timestep), if requested.

 

volumeInfo(
    key : str # volume identifier
) -> numpy.ndarray(dtype=float)

Returns an array containing the interpolated volume values for each trajectory point (except first timestamp), if requested.

 

computeInfo(
    id : int # Compute index.
) -> numpy.ndarray(dtype=float)

Returns an array containing the computed values for each trajectory point (except first timestamp), if requested.

 

abortReasons() -> numpy.ndarray(dtype=float)

A list of AbortReason corresponding to each particle id, giving the reason why the computation stopped.

 

lengthTrajectories() -> int

The number of trajectory points each trajectory contains.

 

numberTrajectories() -> int

The number of trajectories in this dataset.