Fix Python plot export

This commit is contained in:
Gaute Lindkvist 2019-10-09 10:51:24 +02:00
parent a5e2e25b1b
commit ba528c9c0a
3 changed files with 6 additions and 1 deletions

View File

@ -174,6 +174,7 @@ if (RESINSIGHT_GRPC_PYTHON_EXECUTABLE)
"rips/PythonExamples/CommandExample.py"
"rips/PythonExamples/CaseGridGroup.py"
"rips/PythonExamples/CaseInfoStreamingExample.py"
"rips/PythonExamples/ExportPlots.py"
"rips/PythonExamples/ExportSnapshots.py"
"rips/PythonExamples/ErrorHandling.py"
"rips/PythonExamples/SoilPorvAsync.py"

View File

@ -45,6 +45,10 @@ class PdmObject:
""" Private method"""
return self._channel
def project(self):
""" Private method"""
return self._project
def address(self):
"""Get the unique address of the PdmObject

View File

@ -13,7 +13,7 @@ class Plot(PdmObject):
"""
def __init__(self, pdm_object):
PdmObject.__init__(self, pdm_object.pb2_object(), pdm_object.channel())
PdmObject.__init__(self, pdm_object.pb2_object(), pdm_object.channel(), pdm_object.project())
self.view_id = pdm_object.get_value("ViewId")
def export_snapshot(self, export_folder='', file_prefix='', ):