pyquantus.parse.philipsRf module
- class pyquantus.parse.philipsRf.HeaderInfoStruct
Bases:
object
Philips-specific structure containing information from the headers.
- class pyquantus.parse.philipsRf.PhilipsRfParser
Bases:
object
Class for parsing Philips RF data files.
- SortRF(RFinput, Stride, ML, CRE=1, isVoyager=True)
Sort RF data based on various parameters.
- callGetPartA(numClumps: int, filename: str, offset: int) ndarray
Call getPartA function.
- callGetPartB(numClumps: int, filename: str, offset: int) ndarray
Call getPartB function.
- findSignature(filepath: Path)
Find signature in file.
- getFillerZeros(num)
Get filler zeros string.
- parseDataF(rawrfdata, headerInfo)
Parse data for Fusion data.
- parseDataV(rawrfdata, headerInfo)
Parse data for Voyager data.
- parseFileHeader(file_obj, endianness)
Parse file header.
- parseHeaderF(rawrfdata)
Parse header for Fusion data.
- parseHeaderV(rawrfdata)
Parse header for Voyager data.
- parse_and_save(filepath: str, ML_out: int = 2, ML_in: int = 32, used_os: int = 2256, save_format: str = 'mat') ndarray
Parse Philips RF data file, save as .mat or .npy file, and return shape of data.
- Parameters:
filepath – Path to RF data file
ML_out – Output multiline factor (default: 2)
ML_in – Input multiline factor (default: 32)
used_os – Used offset samples (default: 2256)
save_format – Output file format, either ‘mat’ or ‘npy’ (default: ‘mat’)
- Returns:
Shape of the fundamental RF data array
- Return type:
np.ndarray
- parse_rf(filepath: str, readOffset: int = 0, readSize: int = 2000) Rfdata
Open and parse RF data file.
- Parameters:
filepath – Path to RF data file
readOffset – Offset in MB to start reading from
readSize – Size in MB to read
- Returns:
Parsed RF data structure
- Return type:
- pruneData(lineData, lineHeader, ML_Capture)
Remove false gate data at beginning and end of the line.
- class pyquantus.parse.philipsRf.Rfdata
Bases:
object
Philips-specific structure containing constructed RF data.
- class pyquantus.parse.philipsRf.dbParams
Bases:
object
Philips-specific structure containing signal properties of the scan.
- pyquantus.parse.philipsRf.philipsRfParser(filepath: str, ML_out=2, ML_in=32, used_os=2256, save_format='mat') ndarray
Parse Philips RF data file, extract fundamental and harmonic RF frames, save data to a .mat file, and return shape of fundamental RF data.