Skip to content

Commit

Permalink
impliment toggle to create delayed dask array
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSullivan7 committed Aug 8, 2024
1 parent 5b33dcf commit e7b03b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mantidimaging/gui/windows/live_viewer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class ImageWatcher(QObject):
"""
image_changed = pyqtSignal(list, DaskImageDataStack) # Signal emitted when an image is added or removed
recent_image_changed = pyqtSignal(Path)
create_delayed_array: bool
create_delayed_array: bool = True

def __init__(self, directory: Path):
"""
Expand Down Expand Up @@ -225,7 +225,7 @@ def find_images(self, directory: Path) -> list[Image_Data]:
for file_path in directory.iterdir():
if self._is_image_file(file_path.name):
try:
image_obj = Image_Data(file_path)
image_obj = Image_Data(file_path, create_delayed_array=self.create_delayed_array)
image_files.append(image_obj)
except FileNotFoundError:
continue
Expand Down

0 comments on commit e7b03b9

Please sign in to comment.