Commit f764c5af authored by jack-parsons's avatar jack-parsons
Browse files

Adding smoothing test

parent 407084d5
Pipeline #877 passed with stage
in 42 seconds
......@@ -52,7 +52,7 @@ class smoothMixin(object):
def smoothValues(self, n=1):
"""
Function to apply a simple laplacian smooth to the values array.
Identical to the vertex smoothing expect it applies the smoothing
Identical to the vertex smoothing except it applies the smoothing
to the values
Parameters
......
"""
Testing suite for the core module
Testing suite for the registration module
"""
import unittest
from util import get_path
class TestRegistration(unittest.TestCase):
class TestSmoothing(unittest.TestCase):
ACCURACY = 5 # The number of decimal places to value accuracy for - needed due to floating point inaccuracies
def setUp(self):
......@@ -17,3 +17,7 @@ class TestRegistration(unittest.TestCase):
stl_path = get_path("stl_file.stl")
self.amp = AmpObject(stl_path)
def test_smoothing(self):
# Test that smoothing runs
self.amp.smoothValues()
Supports Markdown
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