Commit 526bc1f5 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Repair fit galaxi example

parent 08f17992
...@@ -4,8 +4,9 @@ Fitting experimental data: spherical nanoparticles with size distribution ...@@ -4,8 +4,9 @@ Fitting experimental data: spherical nanoparticles with size distribution
in 3 layers system (experiment at GALAXI). in 3 layers system (experiment at GALAXI).
""" """
import bornagain as ba import bornagain as ba
from bornagain import nm as nm from bornagain import nm
from sample_builder import SampleBuilder from sample_builder import SampleBuilder
from matplotlib import pyplot as plt
wavelength = 1.34*ba.angstrom wavelength = 1.34*ba.angstrom
alpha_i = 0.463*ba.deg alpha_i = 0.463*ba.deg
...@@ -77,3 +78,4 @@ def run_fitting(): ...@@ -77,3 +78,4 @@ def run_fitting():
if __name__ == '__main__': if __name__ == '__main__':
run_fitting() run_fitting()
plt.show()
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
Vacuum layer is populated with spheres with size distribution. Vacuum layer is populated with spheres with size distribution.
""" """
import bornagain as ba import bornagain as ba
from bornagain import nm
class SampleBuilder: class SampleBuilder:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment