Commit 980b7c46 authored by Thomas Dowrick's avatar Thomas Dowrick

Fix tests/linting

parent 7e07473e
Pipeline #4536 canceled with stages
"""
Module to show slice views of volumetric data.
"""
import vtk
import os
import vtk
import numpy as np
from PySide2 import QtWidgets
from PySide2.QtCore import QTimer
......@@ -114,7 +114,7 @@ class VTKResliceWidget(QVTKRenderWindowInteractor):
# Fill widget with slice by moving camera
self.renderer.ResetCamera(self.actor.GetBounds())
self.GetRenderWindow().Render()
def set_slice_position_mm(self, pos):
""" Set the slice position in the volume in mm """
if self.axis == 'x':
......
......@@ -8,7 +8,7 @@ def test_slice_viewer(qtbot):
qtbot.addWidget(reslice)
reslice.update_slice_positions(1,1,1)
reslice.update_slice_positions_pixels(1,1,1)
def test_mouse_scroll_slice_viewer(qtbot):
......@@ -17,5 +17,5 @@ def test_mouse_scroll_slice_viewer(qtbot):
qtbot.addWidget(reslice)
reslice.update_slice_positions(1,1,1)
reslice.update_slice_positions_pixels(1,1,1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment