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 exists
uuid (UUID) – the uuid of the grid object to be instantiated
find_properties (bool, default True) – passed onward to the instantiation method
load_inactive (bool, default True) – 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