Skip to content
Snippets Groups Projects
Commit 63cc5700 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ctd

parent cb025b43
No related branches found
No related tags found
1 merge request!1214Further reorganize tests; revise some Py functional tests
......@@ -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.212e-6, 3.244e-8)
matSubstrate = ba.RefractiveMaterial("Substrate", 3e-6, 3e-8)
matVacuum = ba.RefractiveMaterial("Vacuum", 0, 0)
matParticle = ba.RefractiveMaterial("Ag", 1.245e-5, 5.419e-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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment