diff --git a/Examples/python/fitting/ex01_SampleParametersIntro/SampleParametersIntro_v2.py b/Examples/python/fitting/ex01_SampleParametersIntro/SampleParametersIntro_v2.py index 49fb1fbaed94789dc7defea6256a921b5eff7939..c57bbf4bd0ff37e2b2cfd5d52d5d2ce50fa02d3e 100644 --- a/Examples/python/fitting/ex01_SampleParametersIntro/SampleParametersIntro_v2.py +++ b/Examples/python/fitting/ex01_SampleParametersIntro/SampleParametersIntro_v2.py @@ -76,9 +76,8 @@ def run_simulation(): # simulation #2 # one sample parameter (cylinder height) is changed using exact parameter name - simulation.setParameterValue( - "/GISASSimulation/MultiLayer/Layer0/ParticleLayout/Particle0/Cylinder/Height", - 10.0*nm) + simulation.setParameterValue("/GISASSimulation/MultiLayer/Layer0/ParticleLayout" + "/Particle0/Cylinder/Height", 10.0*nm) simulation.runSimulation() results[1] = simulation.getIntensityData() diff --git a/Tests/Functional/Python/PyPersistence/example_template.py b/Tests/Functional/Python/PyPersistence/example_template.py index 4d94ce4df7b9a3d3afa6453d84e83eeef3bb7bcd..7217af2bd395450c754740bf56202ec17ee92dc2 100644 --- a/Tests/Functional/Python/PyPersistence/example_template.py +++ b/Tests/Functional/Python/PyPersistence/example_template.py @@ -96,7 +96,7 @@ def save(data, filename): if "SpecularSimulation" == example_name: 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])}) else: filename += ".ref.int.gz"