- resqpy.grid.any_grid(parent_model, uuid=None, grid_root=None, find_properties=True)¶
Returns a Grid or RegularGrid or UnstructuredGrid object depending on the extra metadata in the xml.
parent_model (Model) – the model within which the grid exists
uuid (UUID) – the uuid of the grid object to be instantiated
grid_root (lxml.Element, DEPRECATED) – an alternative to passing the uuid
find_properties (bool, default True) – passed onward to the instantiation method
full list of resqpy grid class objects which could be returned: Grid, RegularGrid, UnstructuredGrid, TetraGrid, HexaGrid, PyramidGrid, PrismGrid