com1DFA.particleTools.reshapeParticlesDicts

reshapeParticlesDicts(particlesList, propertyList)[source]

reshape particlesList from one dict per time step with all particle properties for each particle, to one dict with an array of property values for all time steps for each particle shape: nx x ny; nx time steps, ny number of particles

Parameters
  • particlesList (list) – list of particle dicts, one dict per time step

  • propertyList (list) – list of property names that shall be reshaped and saved to particlesTimeArrays

Returns

particlesTimeArrays – dict with time series of properties of particles key: property, item: timeSteps x particlesID array of property values

Return type

dict