resqpy.multi_processing.mesh_from_regular_grid_column_property_wrapper
- resqpy.multi_processing.mesh_from_regular_grid_column_property_wrapper(index: int, parent_tmp_dir: str | Path, grid_epc: str, grid_uuid: UUID | str, prop_uuids: List[UUID | str]) Tuple[int, bool, str, List[UUID | str]]
Multiprocessing wrapper function of the Mesh from_regular_grid_column_property method.
- Parameters:
index (
int) – the index of the function call from the multiprocessing functionparent_tmp_dir (
strorPath) – the parent temporary directory path from the multiprocessing functiongrid_epc (
str) – epc file path where the grid is savedgrid_uuid (
uuidorstr) – UUID (universally unique identifier) of the regular grid objectprop_uuids (
listofuuidorstr) – a list of the property uuids used to create each Mesh and their relationship
- Returns:
Tuple containing – - index (int): the index passed to the function - success (bool): True if all the Mesh objects could be created, False otherwise - epc_file (str): the epc file path where the objects are stored - uuid_list (List[UUID/str]): list of UUIDs of relevant objects
Notes
Use this function as argument to multiprocessing function; it will create a new model that is saved in a temporary epc file and returns the required values, which are used in the multiprocessing function to recombine all the objects into a single epc file; applications should generally call mesh_from_regular_grid_column_property_batch() which makes use of this wrapper