Skip to content
Snippets Groups Projects
Commit ea9b94c2 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Fix in python examples to make 'fullcheck' passing

parent ef61a860
No related branches found
No related tags found
No related merge requests found
...@@ -76,9 +76,8 @@ def run_simulation(): ...@@ -76,9 +76,8 @@ def run_simulation():
# simulation #2 # simulation #2
# one sample parameter (cylinder height) is changed using exact parameter name # one sample parameter (cylinder height) is changed using exact parameter name
simulation.setParameterValue( simulation.setParameterValue("/GISASSimulation/MultiLayer/Layer0/ParticleLayout"
"/GISASSimulation/MultiLayer/Layer0/ParticleLayout/Particle0/Cylinder/Height", "/Particle0/Cylinder/Height", 10.0*nm)
10.0*nm)
simulation.runSimulation() simulation.runSimulation()
results[1] = simulation.getIntensityData() results[1] = simulation.getIntensityData()
......
...@@ -96,7 +96,7 @@ def save(data, filename): ...@@ -96,7 +96,7 @@ def save(data, filename):
if "SpecularSimulation" == example_name: if "SpecularSimulation" == example_name:
filename += ".ref" filename += ".ref"
R, T = example.coefficientsRT(data) R, T = example.rt_coefficients(data)
ba.yamlDump(filename, { "coeff_R": ba.FlowSeq(R[0]), "coeff_T": ba.FlowSeq(T[0])}) ba.yamlDump(filename, { "coeff_R": ba.FlowSeq(R[0]), "coeff_T": ba.FlowSeq(T[0])})
else: else:
filename += ".ref.int.gz" filename += ".ref.int.gz"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment