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