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
63cc5700
Commit
63cc5700
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ctd
parent
cb025b43
No related branches found
No related tags found
1 merge request
!1214
Further reorganize tests; revise some Py functional tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/Py/Functional/sliced_compounds.py
+4
-5
4 additions, 5 deletions
Tests/Py/Functional/sliced_compounds.py
with
4 additions
and
5 deletions
Tests/Py/Functional/sliced_compounds.py
+
4
−
5
View file @
63cc5700
...
...
@@ -5,11 +5,11 @@ Check slicing mechanism for compound particles crossing an interface.
import
unittest
import
utils
import
bornagain
as
ba
from
bornagain
import
deg
,
R3
,
nm
from
bornagain
import
deg
,
R3
matSubstrate
=
ba
.
RefractiveMaterial
(
"
Substrate
"
,
3
.212
e-6
,
3
.244
e-8
)
matSubstrate
=
ba
.
RefractiveMaterial
(
"
Substrate
"
,
3e-6
,
3e-8
)
matVacuum
=
ba
.
RefractiveMaterial
(
"
Vacuum
"
,
0
,
0
)
matParticle
=
ba
.
RefractiveMaterial
(
"
Ag
"
,
1
.245
e-5
,
5
.419
e-7
)
matParticle
=
ba
.
RefractiveMaterial
(
"
Ag
"
,
1e-5
,
5e-7
)
R
=
10.0
dz
=
4.0
...
...
@@ -18,8 +18,7 @@ class SlicedSpheresTest(unittest.TestCase):
def
get_sample
(
self
,
particle_to_air
=
None
,
particle_to_substrate
=
None
):
"""
Helper function returning a sample (air, substrate) using particles provided
by the user.
Returns a sample, with given particles attached to substrate or vacuum layer.
"""
vacuum_layer
=
ba
.
Layer
(
matVacuum
)
...
...
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