Skip to content

Commit 77fce5c

Browse files
committed
remove astropy import and yapf fix
1 parent 50fd5b6 commit 77fce5c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

mantidimaging/gui/windows/live_viewer/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, image_list: list[Image_Data] | None):
3636
with fits.open(image_list[0].image_path.__str__()) as fit:
3737
sample = fit[0].data
3838
arrays = [image_data.delayed_array for image_data in image_list]
39-
lazy_arrays =[dask.array.from_delayed(x, shape=sample.shape, dtype=sample.dtype) for x in arrays]
39+
lazy_arrays = [dask.array.from_delayed(x, shape=sample.shape, dtype=sample.dtype) for x in arrays]
4040
self.delayed_stack = dask.array.stack(lazy_arrays)
4141

4242
@property

mantidimaging/gui/windows/live_viewer/presenter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import numpy as np
1010

1111
from imagecodecs._deflate import DeflateError
12-
from astropy.io import fits
1312

1413
from mantidimaging.gui.mvp_base import BasePresenter
1514
from mantidimaging.gui.windows.live_viewer.model import LiveViewerWindowModel, Image_Data

0 commit comments

Comments
 (0)