Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mlz
BornAgain
Commits
526bc1f5
Commit
526bc1f5
authored
Mar 16, 2021
by
Wuttke, Joachim
Browse files
Repair fit galaxi example
parent
08f17992
Changes
2
Hide whitespace changes
Inline
Side-by-side
Examples/fit61_Galaxi/fit_galaxi_data.py
View file @
526bc1f5
...
...
@@ -4,8 +4,9 @@ Fitting experimental data: spherical nanoparticles with size distribution
in 3 layers system (experiment at GALAXI).
"""
import
bornagain
as
ba
from
bornagain
import
nm
as
nm
from
bornagain
import
nm
from
sample_builder
import
SampleBuilder
from
matplotlib
import
pyplot
as
plt
wavelength
=
1.34
*
ba
.
angstrom
alpha_i
=
0.463
*
ba
.
deg
...
...
@@ -77,3 +78,4 @@ def run_fitting():
if
__name__
==
'__main__'
:
run_fitting
()
plt
.
show
()
Examples/fit61_Galaxi/sample_builder.py
View file @
526bc1f5
...
...
@@ -4,6 +4,7 @@
Vacuum layer is populated with spheres with size distribution.
"""
import
bornagain
as
ba
from
bornagain
import
nm
class
SampleBuilder
:
...
...
Write
Preview
Supports
Markdown
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