Ejemplo n.º 1
0
# import os
import basicCaraTestClass as BCTC
'''
    Written by Thomas Rice Research QA - Any Questions Please Ask - [email protected] 27/07/2016
'''

#CameraSolver creation and solve
node = BCTC.createNode('C_CameraSolver1_0')
BCTC.loadImages(node)
BCTC.CS_matchCameras(node)
BCTC.CS_solveCameras(node)
#ColourMatcher creation and solve
Snode = BCTC.createNode('C_Stitcher1_0')
BCTC.setExportOption(Snode, 0)
BCTC.exportSelection(Snode)

nodeConnectionSet = BCTC.checkNodeConnections("C_Stitcher1", "STMap2")

#The Format and connections that should be present
originalNodes = set([('Grade8', 'Exposure1'), ('STMap2', ),
                     ('BlackOutside1', 'STMap2')])

result = nodeConnectionSet.difference(originalNodes)

if result != set([]):
    nuke.tprint(
        'Test failed as the there was a difference in the node connections, they were .. ',
        result)
    sys.exit(1)
else:
    nuke.tprint('Test passed as there were no differences in the two sets')
Ejemplo n.º 2
0
import basicCaraTestClass as BCTC

'''
    Written by Thomas Rice Research QA - Any Questions Please Ask - [email protected] 27/07/2016
'''

#CameraSolver creation and solve
node = BCTC.createNode('C_CameraSolver1_0')
BCTC.loadImages(node)
BCTC.CS_matchCameras(node)
BCTC.CS_solveCameras(node)
#ColourMatcher creation and solve
CMnode = BCTC.createNode('C_ColourMatcher1_0')
BCTC.CM_Analyse(CMnode)
BCTC.setExportOption(CMnode, 0)
BCTC.exportSelection(CMnode)

nodeConnectionSet = BCTC.checkNodeConnections("C_ColourMatcher1", "Exposure1")


#The Format and connections that should be present
originalNodes = set([
					('Grade7', 'Exposure1')
					])


result = nodeConnectionSet.difference(originalNodes)

if result != set([]):
    nuke.tprint('Test failed as the there was a difference in the node connections, they were .. ' , result )
    sys.exit(1)