Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
81857af8
Commit
81857af8
authored
5 years ago
by
Wu
Browse files
Options
Downloads
Patches
Plain Diff
Fixed style
parent
a54844b6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/PythonInterface/plugins/functions/Bessel.py
+2
-5
2 additions, 5 deletions
Framework/PythonInterface/plugins/functions/Bessel.py
Framework/PythonInterface/test/python/plugins/functions/BesselTest.py
+1
-1
1 addition, 1 deletion
...thonInterface/test/python/plugins/functions/BesselTest.py
with
3 additions
and
6 deletions
Framework/PythonInterface/plugins/functions/Bessel.py
+
2
−
5
View file @
81857af8
...
@@ -3,11 +3,8 @@
...
@@ -3,11 +3,8 @@
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
"""
# pylint: disable=invalid-name, anomalous-backslash-in-string, attribute-defined-outside-init
@author Hank Wu, RAL STFC
@date September 11, 2019
"""
from
mantid.api
import
IFunction1D
,
FunctionFactory
from
mantid.api
import
IFunction1D
,
FunctionFactory
import
numpy
as
np
import
numpy
as
np
...
...
This diff is collapsed.
Click to expand it.
Framework/PythonInterface/test/python/plugins/functions/BesselTest.py
+
1
−
1
View file @
81857af8
...
@@ -29,7 +29,7 @@ class BesselTest(unittest.TestCase):
...
@@ -29,7 +29,7 @@ class BesselTest(unittest.TestCase):
self
.
fail
(
msg
.
format
(
*
[
str
(
i
)
for
i
in
(
output
,
input
,
expected
)]))
self
.
fail
(
msg
.
format
(
*
[
str
(
i
)
for
i
in
(
output
,
input
,
expected
)]))
def
test_do_fit
(
self
):
def
test_do_fit
(
self
):
do_a_fit
(
np
.
arange
(
0.1
,
16
,
0.2
),
'
Bessel
'
,
guess
=
dict
(
A0
=
0.15
,
Phi
=
0.25
,
Nu
=
0.25
),
target
=
dict
(
A0
=
0.1
,
Phi
=
0.2
,
Nu
=
0.2
),
atol
=
0.01
)
do_a_fit
(
np
.
arange
(
0.1
,
16
,
0.2
),
'
Bessel
'
,
guess
=
dict
(
A0
=
0.15
,
Phi
=
0.25
,
Nu
=
0.25
),
target
=
dict
(
A0
=
0.1
,
Phi
=
0.2
,
Nu
=
0.2
),
atol
=
0.01
)
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
unittest
.
main
()
unittest
.
main
()
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