resqpy.grid.any_grid
- resqpy.grid.any_grid(parent_model, uuid=None, find_properties=True, load_inactive=True)
Returns a Grid or RegularGrid or UnstructuredGrid object depending on the extra metadata in the xml.
- Parameters:
parent_model (
Model) – the model within which the grid existsuuid (
uuid) – the uuid of the grid object to be instantiatedfind_properties (
bool, defaultTrue) – passed onward to the instantiation methodload_inactive (
bool, defaultTrue) – if True and uuid is provided, the inactive attribubte is populated if a property of kind ‘active’ is found for the grid
Note
full list of resqpy grid class objects which could be returned: Grid, RegularGrid, UnstructuredGrid, TetraGrid, HexaGrid, PyramidGrid, PrismGrid