From 098c64d0e91241c87dcaa271a4f2b3e771aad770 Mon Sep 17 00:00:00 2001
From: Gennady Pospelov <g.pospelov@fz-juelich.de>
Date: Thu, 10 Oct 2013 09:43:37 +0200
Subject: [PATCH] New example SampleParametersIntro

---
 Core/Tools/src/ParameterPool.cpp                              | 4 ++--
 .../ex001_SampleParametersIntro/SampleParametersIntro.py      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Core/Tools/src/ParameterPool.cpp b/Core/Tools/src/ParameterPool.cpp
index 487ee7210f4..1611e0f1347 100644
--- a/Core/Tools/src/ParameterPool.cpp
+++ b/Core/Tools/src/ParameterPool.cpp
@@ -104,8 +104,8 @@ bool ParameterPool::setParameterValue(const std::string& name, double value)
 {
     parameter_t x = getParameter(name);
     if( x.isNull() ) {
-        msglog(MSG::FATAL) << "ParameterPool::setParameterValue() -> Warning. No parameter with name '" << name << "'";
-        throw LogicErrorException("ParameterPool::setParameterValue() -> Warning. No such parameter");
+        msglog(MSG::FATAL) << "ParameterPool::setParameterValue() -> Error. No parameter with name '" << name << "'";
+        throw LogicErrorException("ParameterPool::setParameterValue() -> Error. No such parameter");
         return false;
     }
     x.setValue(value);
diff --git a/Examples/python/fitting/ex001_SampleParametersIntro/SampleParametersIntro.py b/Examples/python/fitting/ex001_SampleParametersIntro/SampleParametersIntro.py
index 4bf11c00529..3e8af9887c3 100644
--- a/Examples/python/fitting/ex001_SampleParametersIntro/SampleParametersIntro.py
+++ b/Examples/python/fitting/ex001_SampleParametersIntro/SampleParametersIntro.py
@@ -70,14 +70,14 @@ def run_simulations():
 
     # simulation #2
     # one sample parameter (height of the cylinder) is changed using exact parameter name
-    sample.setParameterValue('/MultiLayer/Layer0/ParticleDecoration/ParticleInfo0/Particle/FormFactorCylinder/height'
+    sample.setParameterValue("/MultiLayer/Layer0/ParticleDecoration/ParticleInfo0/Particle/FormFactorCylinder/height"
         , 1.0*nanometer)
     simulation.runSimulation()
     results.append( GetOutputData(simulation) )
 
     # simulation #3
     # all parameters which are matching criteria will be changed
-    
+
 
     return results
 
-- 
GitLab