Skip to content

Commit

Permalink
rm lock from reading pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocerrone committed Oct 1, 2024
1 parent d5fd774 commit 44d72b9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ngio/core/image_like_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 44d72b9

Please sign in to comment.