mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Use descendants()
This commit is contained in:
parent
91c253f8fe
commit
f72fcdd868
@ -9,7 +9,7 @@ from .case import Case
|
|||||||
import Commands_pb2
|
import Commands_pb2
|
||||||
from .resinsight_classes import GridCaseGroup
|
from .resinsight_classes import GridCaseGroup
|
||||||
from .resinsight_classes import EclipseView
|
from .resinsight_classes import EclipseView
|
||||||
|
from .resinsight_classes import RimStatisticalCalculation
|
||||||
|
|
||||||
@add_method(GridCaseGroup)
|
@add_method(GridCaseGroup)
|
||||||
def create_statistics_case(self):
|
def create_statistics_case(self):
|
||||||
@ -34,8 +34,7 @@ def statistics_cases(self):
|
|||||||
List of :class:`rips.generated.generated_classes.EclipseCase`
|
List of :class:`rips.generated.generated_classes.EclipseCase`
|
||||||
|
|
||||||
"""
|
"""
|
||||||
stat_case_collection = self.children("StatisticsCaseCollection")[0]
|
return self.descendants(RimStatisticalCalculation)
|
||||||
return stat_case_collection.children("Reservoirs")
|
|
||||||
|
|
||||||
|
|
||||||
@add_method(GridCaseGroup)
|
@add_method(GridCaseGroup)
|
||||||
|
Loading…
Reference in New Issue
Block a user