ResetSession() breaks GetLayout()
running the following through pvbatch
from paraview.simple import *
renderView1 = GetActiveViewOrCreate('RenderView')
layout1 = GetLayout()
print(layout1)
ResetSession()
renderView1 = GetActiveViewOrCreate('RenderView')
layout1 = GetLayout()
print(layout1)
prints
<paraview.servermanager.ViewLayout object at 0x7f841067ffd0>
None
I am expecting another Viewlayout reference instead of that None in the second line.
This renders ResetSession()
useless for me right now, and I have needed ResetSession()
in the past to mitigate memory leakage issues when iterating over time steps. So I think it is a feature worth having just in case.
Edited by baloe