BasicTools.IO.PickleTools module

BasicTools.IO.PickleTools.CheckIntegrity()[source]

AutoTest routine

class BasicTools.IO.PickleTools.IOHelper(data)[source]

Bases: object

helper Class that represent the data from a file

BasicTools.IO.PickleTools.LoadData(filename)[source]

Load data from disk using pickle format

Load data saved with the ‘saveData’ from file return an instance of IOHelper if ok return None if not ok

class BasicTools.IO.PickleTools.PickleReader(fileName=None)[source]

Bases: ReaderBase

Class handling the reading of data using pickle

Read()[source]

Reads data using pickle

Returns:

read data

Return type:

any

class BasicTools.IO.PickleTools.PickleWriter[source]

Bases: object

Class handling the writing of data using pickle

Close()[source]
Open(fileName=None)[source]
SetBinary(val=True)[source]
SetFileName(filename)[source]

Sets filename

Parameters:

filename (str) – name of the file to write

Write(mesh, PointFields=None, CellFields=None, GridFields=None, PointFieldsNames=None, CellFieldsNames=None, GridFieldsNames=None)[source]

Writes data using pickle

BasicTools.IO.PickleTools.SaveData(filename, *argv, **kwargs)[source]

Save the variables into the disk and return 0 if all ok

Save variables into the disk, you can use unamed or named variables (keyword)