diff --git a/AmpScan/smooth.py b/AmpScan/smooth.py index ff6bb3755371f39872ab9164d80ba5635f189d4d..2131723c88e302f96e7235169d1b0a66e85acb02 100644 --- a/AmpScan/smooth.py +++ b/AmpScan/smooth.py @@ -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 diff --git a/tests/test_registration.py b/tests/test_smoothing.py similarity index 70% rename from tests/test_registration.py rename to tests/test_smoothing.py index 25f1f819488431218ce6a306fe0197787aeec48e..2db678643caf67f9e01eb22e57f87289f9fce4b8 100644 --- a/tests/test_registration.py +++ b/tests/test_smoothing.py @@ -1,12 +1,12 @@ """ -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() +