resqpy.grid.any_grid¶
- resqpy.grid.any_grid(parent_model, uuid=None, find_properties=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
Note
full list of resqpy grid class objects which could be returned: Grid, RegularGrid, UnstructuredGrid, TetraGrid, HexaGrid, PyramidGrid, PrismGrid