mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-26 16:26:48 -06:00
Fix Python plot export
This commit is contained in:
parent
a5e2e25b1b
commit
ba528c9c0a
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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='', ):
|
||||
|
Loading…
Reference in New Issue
Block a user