TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
trustutils.files

CSVFile

getXLabel

getXLabel(self)

No documentation.


reset

reset(self)

No documentation.


DTEVFile

getXLabel

getXLabel(self)

No documentation.


OutFile

getXLabel

getXLabel(self)

No documentation.


SonFile

.son file resulting from a probes

BuildFromHeader

BuildFromHeader(cls, filePath, refPath)

Build either a SonPOINTFile or SonSEGFile depending on the header


getnCompo

getnCompo(self)

No documentation.


getnPoints

getnPoints(self)

No documentation.


SonPOINTFile

.son files resulting of a Point probes

getXLabel

getXLabel(self)

No documentation.


SonSEGFile

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

getEntriesSeg(self)

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


getLastTime

getLastTime(self)

No documentation.


getOrientation

getOrientation(self)

No documentation.


getPointEntries

getPointEntries(self, segName)

No documentation.


getXAxis

getXAxis(self)

No documentation.


getXLabel

getXLabel(self)

No documentation.


getXTremePoints

getXTremePoints(self)

No documentation.


setXTremePoints

setXTremePoints(self, start, end)

No documentation.


TrustFile

Constructor: TrustFile(self, filePath, refFilePath)

Parameters:

Name Type Description
filePath str Trust file to parse
refFilePath str file serving as a reference to know if the main file has been reset. This is typically the stop file. Can be None for test purposes (in this case only size of the main file will be inspected).

getEntries

getEntries(self)

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


getNewValues

getNewValues(self, entryName)

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

Parameters:

Name Type Description
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

getValues(self, entryName)

Get all current valid values from the file.

Parameters:

Name Type Description
entryName str Name of the variable

Returns: two np.arrays (x and y)


getXLabel

getXLabel(self)

No documentation.


Functions

BuildFromPath

BuildFromPath(pth, ref_path)

Object factory.