mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix Python plot export
This commit is contained in:
@@ -174,6 +174,7 @@ if (RESINSIGHT_GRPC_PYTHON_EXECUTABLE)
|
|||||||
"rips/PythonExamples/CommandExample.py"
|
"rips/PythonExamples/CommandExample.py"
|
||||||
"rips/PythonExamples/CaseGridGroup.py"
|
"rips/PythonExamples/CaseGridGroup.py"
|
||||||
"rips/PythonExamples/CaseInfoStreamingExample.py"
|
"rips/PythonExamples/CaseInfoStreamingExample.py"
|
||||||
|
"rips/PythonExamples/ExportPlots.py"
|
||||||
"rips/PythonExamples/ExportSnapshots.py"
|
"rips/PythonExamples/ExportSnapshots.py"
|
||||||
"rips/PythonExamples/ErrorHandling.py"
|
"rips/PythonExamples/ErrorHandling.py"
|
||||||
"rips/PythonExamples/SoilPorvAsync.py"
|
"rips/PythonExamples/SoilPorvAsync.py"
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ class PdmObject:
|
|||||||
""" Private method"""
|
""" Private method"""
|
||||||
return self._channel
|
return self._channel
|
||||||
|
|
||||||
|
def project(self):
|
||||||
|
""" Private method"""
|
||||||
|
return self._project
|
||||||
|
|
||||||
def address(self):
|
def address(self):
|
||||||
"""Get the unique address of the PdmObject
|
"""Get the unique address of the PdmObject
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class Plot(PdmObject):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
def __init__(self, pdm_object):
|
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")
|
self.view_id = pdm_object.get_value("ViewId")
|
||||||
|
|
||||||
def export_snapshot(self, export_folder='', file_prefix='', ):
|
def export_snapshot(self, export_folder='', file_prefix='', ):
|
||||||
|
|||||||
Reference in New Issue
Block a user