com1DFA.particleTools.getTrackedParticlesProperties¶
- getTrackedParticlesProperties(particlesList, nPartTracked, properties)[source]¶
Get the desired properties for the tracked particles
- Parameters
particlesList (list) – list of particles dictionaries (with the ‘parentID’ array)
nPartTracked (int) – total number of tracked particles
properties (list) – list of strings
- Returns
trackedPartProp – dictionary with 2D numpy arrays corresponding to the time series of the properties for the tracked particles (for example if properties = [‘x’, ‘y’], the dictionary will have the keys ‘time’, ‘x’ and ‘y’. trackedPartProp[‘x’] will be a 2D numpy array, each line corresponds to the ‘x’ time series of a tracked particle)
- Return type
dict