From 44d72b91a99314acd9ce1025d7064dde1fd32c82 Mon Sep 17 00:00:00 2001 From: lorenzo Date: Tue, 1 Oct 2024 10:09:55 +0200 Subject: [PATCH] rm lock from reading pipe --- src/ngio/core/image_like_handler.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/ngio/core/image_like_handler.py b/src/ngio/core/image_like_handler.py index 0b00293..81488bc 100644 --- a/src/ngio/core/image_like_handler.py +++ b/src/ngio/core/image_like_handler.py @@ -214,12 +214,6 @@ def _get_pipe( return data_pipe.get(data=self.array) elif mode == "dask": return data_pipe.get(data=self.dask_array) - if self._dask_lock is None: - return data_pipe.get(data=self.dask_array) - - with self._dask_lock: - patch = data_pipe.get(data=self.dask_array) - return patch else: raise ValueError(f"Invalid mode {mode}")