Skip to content

Commit

Permalink
remove astropy import and yapf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSullivan7 committed Aug 8, 2024
1 parent aeace47 commit 209facd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion mantidimaging/gui/windows/live_viewer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, image_list: list[Image_Data] | None):
with fits.open(image_list[0].image_path.__str__()) as fit:
sample = fit[0].data
arrays = [image_data.delayed_array for image_data in image_list]
lazy_arrays =[dask.array.from_delayed(x, shape=sample.shape, dtype=sample.dtype) for x in arrays]
lazy_arrays = [dask.array.from_delayed(x, shape=sample.shape, dtype=sample.dtype) for x in arrays]
self.delayed_stack = dask.array.stack(lazy_arrays)

@property
Expand Down
1 change: 0 additions & 1 deletion mantidimaging/gui/windows/live_viewer/presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import numpy as np

from imagecodecs._deflate import DeflateError
from astropy.io import fits

from mantidimaging.gui.mvp_base import BasePresenter
from mantidimaging.gui.windows.live_viewer.model import LiveViewerWindowModel, Image_Data
Expand Down

0 comments on commit 209facd

Please sign in to comment.