com1DFA.com1DFA.savePartToPickle

savePartToPickle(dictList, outDir, logName, cfg='')[source]

Save each dictionary from a list to a pickle in outDir; works also for one dictionary instead of list Note: particle coordinates are still in com1DFA reference system with origin 0,0

Parameters
  • dictList (list or dict) – list of dictionaries or single dictionary

  • outDir (str) – path to output directory

  • logName (str) – simulation Id

  • cfg (str or configparser object) – [‘EXPORTS’] and [‘TRACKPARTICLES’] settings to provide particle properties to be saved, if empty str all particle properties are saved, t (time info) always appended