Commit 5f62ba46 authored by David E. DeMarle's avatar David E. DeMarle

fix some recent python3 print regressions that snuck in

parent 3f535fda
Pipeline #47416 failed with stage
in 0 seconds
......@@ -206,6 +206,7 @@ def float_limiter(x):
else:
return x
# Keeps a link between a filter and its explorer-track.
# Populated in addFilterValue()
# and queried in explore()
......@@ -936,14 +937,14 @@ def export_scene(baseDirName, viewSelection, trackSelection, arraySelection):
# check if this view was selected to export as spec b
cinemaParams = viewParams[6]
if len(cinemaParams) == 0:
print "Skipping view: Not selected to export to cinema"
print ("Skipping view: Not selected to export to cinema")
continue
camType = "none"
if "camera" in cinemaParams and cinemaParams["camera"] != "none":
camType = cinemaParams["camera"]
if camType == "none":
print "Skipping view: Not selected to export to cinema."
print ("Skipping view: Not selected to export to cinema.")
continue
specLevel = "A"
......@@ -963,7 +964,7 @@ def export_scene(baseDirName, viewSelection, trackSelection, arraySelection):
if view.IsA("vtkSMContextViewProxy") is True:
view.ResetDisplay()
elif view.IsA("vtkSMRenderViewProxy") is False:
print ' do not know what to do with a ', view.GetClassName()
print (' do not know what to do with a ', view.GetClassName())
userDefValues = prepare_selection(trackSelection, arraySelection)
if "theta" in cinemaParams:
......@@ -1019,7 +1020,7 @@ def export_scene(baseDirName, viewSelection, trackSelection, arraySelection):
atLeastOneViewExported = True
if not atLeastOneViewExported:
print "No view was selected to export to cinema."
print ("No view was selected to export to cinema.")
return
make_workspace_file(baseDirName, cinema_dirs)
......@@ -1027,7 +1028,7 @@ def export_scene(baseDirName, viewSelection, trackSelection, arraySelection):
# restore initial state
paraview.simple.SetActiveView(initialView)
restore_visibility(pvstate)
print "Finished exporting Cinema database!"
print ("Finished exporting Cinema database!")
def prepare_selection(trackSelection, arraySelection):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment