Mordicus.Core.IO.StateIO module

Mordicus.Core.IO.StateIO.LoadState(fileName, extension='pkl')[source]

Read the data structure from disk

Parameters
  • fileName (str) – name of the file on disk

  • extension (str, optional) – file extension

Return type

custom_data_format

Mordicus.Core.IO.StateIO.SaveState(fileName, obj, extension='pkl')[source]

Saves the data structure on disk

Parameters
  • fileName (str) – name of the file on disk

  • obj (custom_data_format) – object to save on disk

  • extension (str, optional) – file extension

Mordicus.Core.IO.StateIO.UpdateFileName(fileName)[source]

Appends filename with numbering in case of parallel execution

Parameters

fileName (str) – name of the file on disk

Return type

str