TestCenter Reference
TestSupport.DicomTreeCompare Namespace Reference

Classes

class  DicomTreeCompare
 Helper class, please use compareDicomTrees() More...
 

Functions

 compareDicomTrees (tree1, tree2, printDifferences=True, printOnlyFirstDifference=False, outputFunction=MLAB.logError)
 Compare the two given DICOM trees (of type MLABDicomTree) for equality.
 

Function Documentation

◆ compareDicomTrees()

TestSupport.DicomTreeCompare.compareDicomTrees ( tree1,
tree2,
printDifferences = True,
printOnlyFirstDifference = False,
outputFunction = MLAB.logError )

Compare the two given DICOM trees (of type MLABDicomTree) for equality.

Note
This function doesn't compensate for when the same Private Creator is assigned to a different slot, it will show a difference in this case.
Parameters
tree1The first tree.
tree2The second tree.
printDifferencesIf differences should be printed, default is True.
printOnlyFirstDifferenceIf set to true, only the first difference is printed.
outputFunctionThe function to use to output difference messages. The default is MLAB.logError, but you can also use, e.g., MLAB.log if you expect differences
Returns
True if the trees are equal.

Definition at line 120 of file DicomTreeCompare.py.