4.6. thuner.parallel
Parallel processing utilities.
Functions
|
Perform tracking in parallel using multiprocessing by splitting the time domain into intervals, tracking each interval in parallel, and then stitching the results back together. |
- thuner.parallel.track(times, data_options, grid_options, track_options, visualize_options=None, output_directory=None, num_processes=4, cleanup=True, dataset_name='gridrad', debug_mode=False)[source]
Perform tracking in parallel using multiprocessing by splitting the time domain into intervals, tracking each interval in parallel, and then stitching the results back together.
- Parameters:
times (Iterable[np.datetime64]) – The times to track the objects.
data_options (
thuner.option.data.DataOptions) – The data options.grid_options (GridOptions) – The grid options.
track_options (TrackOptions) – The track options.
visualize_options (VisualizeOptions, optional) – The runtime visualization options for visualizing the tracking process. Defaults to None.
output_directory (str | Path, optional) – The directory in which to save the output. If None, use the output directory specified in the THUNER config file. See thuner.config.get_outputs_directory. Defaults to None.