Skip to content
Snippets Groups Projects
Commit f764c5af authored by jack-parsons's avatar jack-parsons
Browse files

Adding smoothing test

parent 407084d5
No related branches found
No related tags found
1 merge request!23Merge in Jack's changes
Pipeline #877 passed
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment