DataExport#
Class which provides access to all data needed by an export filter.
Example#
Prints out the amount of tests used for the data export:
def ExportData(data_export):
print(len(data_export.Tests))
property LastMeasurementIndex
#
Gets the index of the last measurement run performed.
Available since Measmatic 2.3.27
Returns#
Type | Description |
---|---|
int | The index of the last measurement run performed. |
property MeasurementDescription
#
Gets an object with meta data of the measurement.
Refer to MeasurementDescription for all properties of this class.
Returns#
Type | Description |
---|---|
MeasurementDescription | An object with measurement meta data |
property ProjectSettings
#
Gets an object containing the project settings.
Refer to ProjectSettings for all properties of this class.
Returns#
Type | Description |
---|---|
ProjectSettings | An object with the project settings |
property SortingStatistic
#
Gets an object containing information about sorting statistics.
Refer to ProjectSettings for all properties of this class.
Returns#
Type | Description |
---|---|
ProjectSettings | An object with the project settings |
property Tests
#
Gets the list of all tests selected for this data export.
Refer to Test for all properties of a test.
Returns#
Type | Description |
---|---|
Test | An object with the project settings |
method GetFilePath()
#
Determines the path to the output file and returns it.
This method only applies if the export filter has setting for directory and file name.
Returns#
Type | Description |
---|---|
string | The path to the output file. |
Example#
Determines the output path for the first test within the test list and prints it out:
test = data_export.Tests[0]
output_path = data_export.GetFilePath(test)
print(output_path)