mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-21 21:16:29 +02:00
[tests] Add a specific name for each graph
This commit is contained in:
parent
400246a529
commit
a243ac3de2
1 changed files with 5 additions and 0 deletions
|
@ -11,11 +11,13 @@ from meshroom.core.node import Node
|
||||||
def test_multiviewPipeline():
|
def test_multiviewPipeline():
|
||||||
graph1InputImages = ['/non/existing/fileA']
|
graph1InputImages = ['/non/existing/fileA']
|
||||||
graph1 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
graph1 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
||||||
|
graph1.name = "graph1"
|
||||||
graph1CameraInit = graph1.node("CameraInit_1")
|
graph1CameraInit = graph1.node("CameraInit_1")
|
||||||
graph1CameraInit.viewpoints.extend([{'path': image} for image in graph1InputImages])
|
graph1CameraInit.viewpoints.extend([{'path': image} for image in graph1InputImages])
|
||||||
|
|
||||||
graph2InputImages = [] # common to graph2 and graph2b
|
graph2InputImages = [] # common to graph2 and graph2b
|
||||||
graph2 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
graph2 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
||||||
|
graph2.name = "graph2"
|
||||||
graph2CameraInit = graph2.node("CameraInit_1")
|
graph2CameraInit = graph2.node("CameraInit_1")
|
||||||
graph2CameraInit.viewpoints.extend([{'path': image} for image in graph2InputImages])
|
graph2CameraInit.viewpoints.extend([{'path': image} for image in graph2InputImages])
|
||||||
graph2b = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
graph2b = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
||||||
|
@ -24,6 +26,7 @@ def test_multiviewPipeline():
|
||||||
|
|
||||||
graph3InputImages = ['/non/existing/file1', '/non/existing/file2']
|
graph3InputImages = ['/non/existing/file1', '/non/existing/file2']
|
||||||
graph3 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
graph3 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
||||||
|
graph3.name = "graph3"
|
||||||
graph3CameraInit = graph3.node("CameraInit_1")
|
graph3CameraInit = graph3.node("CameraInit_1")
|
||||||
graph3CameraInit.viewpoints.extend([{'path': image} for image in graph3InputImages])
|
graph3CameraInit.viewpoints.extend([{'path': image} for image in graph3InputImages])
|
||||||
|
|
||||||
|
@ -32,9 +35,11 @@ def test_multiviewPipeline():
|
||||||
{'path': '/non/existing/file2', 'intrinsicId': 55}
|
{'path': '/non/existing/file2', 'intrinsicId': 55}
|
||||||
] # common to graph4 and graph4b
|
] # common to graph4 and graph4b
|
||||||
graph4 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
graph4 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
||||||
|
graph4.name = "graph4"
|
||||||
graph4CameraInit = graph4.node("CameraInit_1")
|
graph4CameraInit = graph4.node("CameraInit_1")
|
||||||
graph4CameraInit.viewpoints.extend(graph4InputViewpoints)
|
graph4CameraInit.viewpoints.extend(graph4InputViewpoints)
|
||||||
graph4b = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
graph4b = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
|
||||||
|
graph4b.name = "graph4b"
|
||||||
graph4bCameraInit = graph4b.node("CameraInit_1")
|
graph4bCameraInit = graph4b.node("CameraInit_1")
|
||||||
graph4bCameraInit.viewpoints.extend(graph4InputViewpoints)
|
graph4bCameraInit.viewpoints.extend(graph4InputViewpoints)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue