From 6d553da093c03ea76a787f1d6fc543f6d5cb9ce0 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 15 Mar 2022 11:46:33 +0100 Subject: [PATCH] Switched to ThreadPool --- swash/processing/sws_npz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swash/processing/sws_npz.py b/swash/processing/sws_npz.py index d17c493..4e9c4ae 100644 --- a/swash/processing/sws_npz.py +++ b/swash/processing/sws_npz.py @@ -1,7 +1,7 @@ import argparse import configparser import logging -from multiprocessing.pool import Pool +from multiprocessing.pool import ThreadPool import pathlib import numpy as np @@ -39,7 +39,7 @@ var = { } inp.mkdir(exist_ok=True) -with Pool() as pool: +with ThreadPool() as pool: log.info("Converting all data") pool.map( lambda x: np.save(