Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
4aa67bbc
Commit
4aa67bbc
authored
7 years ago
by
Yurov, Dmitry
Browse files
Options
Downloads
Patches
Plain Diff
Enable specular data fitting in functional tests
Redmine-Fix: #1859
parent
71a3617e
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
Examples/python/fitting/ex09_FitSpecular/FitSpecularBasics.py
+4
-1
4 additions, 1 deletion
...ples/python/fitting/ex09_FitSpecular/FitSpecularBasics.py
Tests/Functional/Python/PyExamples/CMakeLists.txt
+3
-1
3 additions, 1 deletion
Tests/Functional/Python/PyExamples/CMakeLists.txt
with
7 additions
and
2 deletions
Examples/python/fitting/ex09_FitSpecular/FitSpecularBasics.py
+
4
−
1
View file @
4aa67bbc
...
@@ -9,6 +9,7 @@ Reference data was generated with GENX for ti layers' thicknesses equal to 3 nm
...
@@ -9,6 +9,7 @@ Reference data was generated with GENX for ti layers' thicknesses equal to 3 nm
import
numpy
as
np
import
numpy
as
np
import
bornagain
as
ba
import
bornagain
as
ba
from
matplotlib
import
pyplot
as
plt
from
matplotlib
import
pyplot
as
plt
from
os
import
path
# beam wavelength
# beam wavelength
wavelength
=
1.54
*
ba
.
angstrom
wavelength
=
1.54
*
ba
.
angstrom
...
@@ -63,7 +64,9 @@ def create_real_data():
...
@@ -63,7 +64,9 @@ def create_real_data():
"""
"""
Loading data from genx_interchanging_layers.dat
Loading data from genx_interchanging_layers.dat
"""
"""
ax_values
,
real_data
=
np
.
loadtxt
(
"
genx_interchanging_layers.dat
"
,
filepath
=
path
.
join
(
path
.
dirname
(
path
.
realpath
(
__file__
)),
"
genx_interchanging_layers.dat
"
)
ax_values
,
real_data
=
np
.
loadtxt
(
filepath
,
usecols
=
(
0
,
1
),
skiprows
=
3
,
unpack
=
True
)
usecols
=
(
0
,
1
),
skiprows
=
3
,
unpack
=
True
)
# translating axis values from double incident angle (degrees)
# translating axis values from double incident angle (degrees)
...
...
This diff is collapsed.
Click to expand it.
Tests/Functional/Python/PyExamples/CMakeLists.txt
+
3
−
1
View file @
4aa67bbc
...
@@ -8,7 +8,9 @@
...
@@ -8,7 +8,9 @@
# add_custom_target(TempQtCreatorTarget SOURCES check_functionality.py)
# add_custom_target(TempQtCreatorTarget SOURCES check_functionality.py)
file
(
GLOB examples
"
${
PY_EXAMPLES_DIR
}
/simulation/ex*/*.py"
)
file
(
GLOB sim_examples
"
${
PY_EXAMPLES_DIR
}
/simulation/ex*/*.py"
)
file
(
GLOB fit_examples
"
${
PY_EXAMPLES_DIR
}
/fitting/ex09*/*.py"
)
set
(
examples
${
sim_examples
}
${
fit_examples
}
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/check_functionality.py
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/check_functionality.py @ONLY
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/check_functionality.py
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/check_functionality.py @ONLY
)
...
...
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