Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
AmpScan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Joshua Steer
AmpScan
Commits
f764c5af
Commit
f764c5af
authored
5 years ago
by
jack-parsons
Browse files
Options
Downloads
Patches
Plain Diff
Adding smoothing test
parent
407084d5
No related branches found
No related tags found
1 merge request
!23
Merge in Jack's changes
Pipeline
#877
passed
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AmpScan/smooth.py
+1
-1
1 addition, 1 deletion
AmpScan/smooth.py
tests/test_smoothing.py
+6
-2
6 additions, 2 deletions
tests/test_smoothing.py
with
7 additions
and
3 deletions
AmpScan/smooth.py
+
1
−
1
View file @
f764c5af
...
...
@@ -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 ex
pec
t it applies the smoothing
Identical to the vertex smoothing ex
cep
t it applies the smoothing
to the values
Parameters
...
...
This diff is collapsed.
Click to expand it.
tests/test_
registration
.py
→
tests/test_
smoothing
.py
+
6
−
2
View file @
f764c5af
"""
Testing suite for the
co
re module
Testing suite for the re
gistration
module
"""
import
unittest
from
util
import
get_path
class
Test
Registration
(
unittest
.
TestCase
):
class
Test
Smoothing
(
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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment