resqpy.multi_processing.blocked_well_from_trajectory_wrapper
- resqpy.multi_processing.blocked_well_from_trajectory_wrapper(index: int, parent_tmp_dir: str, grid_epc: str, grid_uuid: UUID | str, trajectory_epc: str, trajectory_uuids: List[UUID | str]) Tuple[int, bool, str, List[UUID | str]]
Multiprocessing wrapper function of the BlockedWell initialisation from a Trajectory.
- Parameters:
index (
int) – the index of the function call from the multiprocessing functionparent_tmp_dir (
str) – 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 grid objecttrajectory_epc (
str) – epc file path where the trajectories are savedtrajectory_uuids (
listofuuidorstr) – a list of the trajectory uuids used to create each Trajectory object
- Returns:
Tuple containing –
index (int): the index passed to the function;
success (bool): True if all the BlockedWell 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
Note
used this wrapper when calling the multiprocessing function to initialise blocked wells from trajectories; 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