Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kmap
xsocs
Commits
db77bdb3
Commit
db77bdb3
authored
Jul 24, 2019
by
Thomas Vincent
Browse files
use almost equal to check fit results
parent
fa5d3baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
xsocs/process/test/test_fitter.py
View file @
db77bdb3
...
...
@@ -72,10 +72,7 @@ class TestPeakFitter(ParametricTestCase):
:param FitResult ref:
:param FitResult result:
"""
if
sys
.
platform
==
'win32'
:
self
.
assertTrue
(
ref
.
almost_equal
(
result
))
else
:
self
.
assertEqual
(
ref
,
result
)
self
.
assertTrue
(
ref
.
almost_equal
(
result
))
def
test_gaussian
(
self
):
"""Test gaussian fit"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment