Skip to content

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSullivan7 committed Aug 23, 2024
1 parent dee5ab4 commit 486da42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mantidimaging/gui/windows/live_viewer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def add_images_to_delayed_stack(self, new_image_list: list[Image_Data], param_to
self.add_last_mean()

def add_last_mean(self) -> None:
self.mean.append(dask.array.mean(self.delayed_stack[-1]).compute())
if self.delayed_stack is not None:
self.mean.append(dask.array.mean(self.delayed_stack[-1]).compute())

def delete_all_data(self):
self.image_list = []
Expand Down

0 comments on commit 486da42

Please sign in to comment.