quarchpy.iometer package¶
Submodules¶
quarchpy.iometer.iometerFuncs module¶
This contains useful functions for Iometer automation with Quarch tools
########### VERSION HISTORY ###########
13/08/2018 - Andy Norrie - First version, based on initial work from Pedro Leao 20/02/2023 - Matt Holsey - Updating for App note overhaul, improving documentation
- quarchpy.iometer.iometerFuncs.followResultsFile(theFile)¶
- quarchpy.iometer.iometerFuncs.generateIcfFromConf(confPath, driveInfo, managerName='QAS0521')¶
Scans the given path for .conf files (ioMeter template files) and creates .icf files with the correct host and drive target information in place
- Parameters:
confPath – String - Path to /conf
driveInfo – Dictionary - Dict with 3 keys: NAME, DRIVE, FW_REV
managerName – String - String of the current system name
- Returns:
N/A
- quarchpy.iometer.iometerFuncs.generateIcfFromCsvLineData(csvData, icfFilePath, driveInfo, managerName='QAS0521')¶
Takes a CSV data dictionary and creates an .icf file at the given path. DriveInfo and optional manager name are used to specify the target and host within the file
- Parameters:
csvData – Dictionary - Row read from CSV
icfFilePath – String - File path for the new file
driveInfo – Dictionary - Dict with 3 keys: NAME, DRIVE, FW_REV
managerName – String - Name of System
- quarchpy.iometer.iometerFuncs.processIometerInstResults(testName, myStream, userCallbacks)¶
This function follows the data accumulating from Iometer, in the instant results file, and processes it into QPS, adding annotationsa and custom channel data points as needed.
This currently assumes that custom channels have been created for IOPS, Data and Response
- Parameters:
testName –
myStream –
userCallbacks –
- Returns:
- quarchpy.iometer.iometerFuncs.readIcfCsvLineData(csvFileName, csvFileLine)¶
Reads the given CSV file which must be formatter for Iometer .icf data (One header, no blank rows). Reads the data into a dictionary
- quarchpy.iometer.iometerFuncs.runIOMeter(*fileName)¶
Module contents¶
- quarchpy.iometer.generateIcfFromConf(confPath, driveInfo, managerName='QAS0521')¶
Scans the given path for .conf files (ioMeter template files) and creates .icf files with the correct host and drive target information in place
- Parameters:
confPath – String - Path to /conf
driveInfo – Dictionary - Dict with 3 keys: NAME, DRIVE, FW_REV
managerName – String - String of the current system name
- Returns:
N/A
- quarchpy.iometer.generateIcfFromCsvLineData(csvData, icfFilePath, driveInfo, managerName='QAS0521')¶
Takes a CSV data dictionary and creates an .icf file at the given path. DriveInfo and optional manager name are used to specify the target and host within the file
- Parameters:
csvData – Dictionary - Row read from CSV
icfFilePath – String - File path for the new file
driveInfo – Dictionary - Dict with 3 keys: NAME, DRIVE, FW_REV
managerName – String - Name of System
- quarchpy.iometer.processIometerInstResults(testName, myStream, userCallbacks)¶
This function follows the data accumulating from Iometer, in the instant results file, and processes it into QPS, adding annotationsa and custom channel data points as needed.
This currently assumes that custom channels have been created for IOPS, Data and Response
- Parameters:
testName –
myStream –
userCallbacks –
- Returns:
- quarchpy.iometer.readIcfCsvLineData(csvFileName, csvFileLine)¶
Reads the given CSV file which must be formatter for Iometer .icf data (One header, no blank rows). Reads the data into a dictionary
- quarchpy.iometer.runIOMeter(*fileName)¶