trustutils.files

trustutils.files.BuildFromPath(pth, ref_path)

Object factory.

class trustutils.files.CSVFile(filePath, nbclos, refPath=None)

Bases: TrustFile

getXLabel()
reset()
class trustutils.files.DTEVFile(filePath, refPath)

Bases: TrustFile

getXLabel()
class trustutils.files.OutFile(filePath, refPath)

Bases: TrustFile

getXLabel()
class trustutils.files.SonFile(filePath, refPath)

Bases: TrustFile

.son file resulting from a probes

classmethod BuildFromHeader(filePath, refPath)

Build either a SonPOINTFile or SonSEGFile depending on the header

getnCompo()
getnPoints()
class trustutils.files.SonPOINTFile(filePath, refPath)

Bases: SonFile

.son files resulting of a Point probes

getXLabel()
class trustutils.files.SonSEGFile(filePath, refPath)

Bases: SonFile

For a segment file, getNewValues() will return None, None everytime the last line has changed. Hence by default the API of a seg file return

getEntriesSeg()

Return only seg entries (i.e. not normal point entries)

getLastTime()
getOrientation()
getPointEntries(segName)
getXAxis()
getXLabel()
getXTremePoints()
setXTremePoints(start, end)
class trustutils.files.TrustFile(filePath, refFilePath)

Bases: object

getEntries()
Return type:

a list of file entries (i.e. what can be ploted from the file)

getNewValues(entryName)

Return values to be appended to the last retrieved ones to get the full set of data.

Parameters:

entryName (str) – Name of the variable

Returns:

  • two (potentially void) np arrays (x and y)

  • Note (after a file reset, it will return None, None on an entryName as long as getValues() hasn’t been called once.)

getValues(entryName)

Get all current valid values from the file.

Parameters:

entryName (str) – Name of the variable

Return type:

two np.arrays (x and y)

getXLabel()