GridCaseGroup

class rips.GridCaseGroup(pb2_object: PdmObject | None = None, channel: Channel | None = None)

Bases: PdmObjectBase

A statistics case group

group_id

Case Group ID

Type:

int

user_description

Name

Type:

str

Methods Summary

compute_statistics([case_ids])

Compute statistics for the given case ids

create_statistics_case([...])

Create a new statistics case in the grid case group

replace_source_cases([grid_files, project_file])

Replace all source cases of the group with the given grid files and reload the project

statistics_cases()

Get a list of all statistics cases in the Grid Case Group

view(view_id)

Get a particular view belonging to a case group by providing view id

views()

Get a list of views belonging to a grid case group

Methods Documentation

compute_statistics(case_ids=None)

Compute statistics for the given case ids

Deprecated: use RimStatisticalCalculation.compute_statistics(update_views=True) on each statistics case (see statistics_cases()) instead.

Parameters:

case_ids (list of integers) -- List of case ids. If this is None or empty all cases in group are included

create_statistics_case(populate_result_selection: bool = False) → RimStatisticalCalculation

Create a new statistics case in the grid case group

Parameters:

populate_result_selection (bool) -- Select all available source properties for statistics. When false, no properties are selected and set_source_properties() must be called before compute_statistics().

Returns:

RimStatisticalCalculation

replace_source_cases(grid_files: List[str] = [], project_file: str = '') → None

Replace all source cases of the group with the given grid files and reload the project

Parameters:
  • grid_files (List[str]) -- Paths to the new grid files

  • project_file (str) -- Optional project file to reload. Defaults to the current project file.

Returns:

statistics_cases()

Get a list of all statistics cases in the Grid Case Group

Returns:

List of rips.generated.generated_classes.EclipseCase

view(view_id)

Get a particular view belonging to a case group by providing view id

Parameters:

id (int) -- view id

Returns:

List of rips.generated.generated_classes.EclipseView

views()

Get a list of views belonging to a grid case group

Returns:

List of rips.generated.generated_classes.EclipseView