Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Laura Murgatroyd <60604372+lauramurgatroyd@users.noreply.github.com>
  • Loading branch information
paskino and lauramurgatroyd authored Aug 7, 2023
1 parent ab73037 commit cbe150c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Wrappers/Python/ccpi/viewer/ui/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class RawInputDialog(FormDialog):
--------
One can instantiate this dialog and reduce the supported types by overriding the
default supported_types with SetSupportedTypes:
default supported_types with setSupportedTypes:
>>> dialog = RawInputDialog(parent, fname)
>>> dialog.setSupportedTypes(['float32', 'float64'])
Expand Down Expand Up @@ -130,7 +130,6 @@ def __init__(self, parent, fname):
# preview button
previewButton = QtWidgets.QPushButton("Preview")
fw.addWidget(previewButton, "preview_button", "preview_button")
self.preview_open = False
previewButton.clicked.connect(self.preview)


Expand Down Expand Up @@ -207,9 +206,6 @@ def preview(self):
shape = (dimX, dimY, dimZ)
else:
shape = (dimZ, dimY, dimX)




# Construct a data type
dt = np.dtype(typecode)
Expand Down Expand Up @@ -269,7 +265,6 @@ def preview(self):
if not isFortran:
# need to reverse the shape (again)
vtkshape = shape[::-1]
# vtkshape = shape[:]
slice_idx = 0
if dimensionality == 3:
slice_idx = vtkshape[2]//2
Expand Down

0 comments on commit cbe150c

Please sign in to comment.