Ignore:
Timestamp:
May 8, 2017, 1:54:51 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_goodresults, ForceAnnealing_tocheck
Children:
cb6357
Parents:
ddceb1
git-author:
Frederik Heber <heber@…> (03/31/17 20:56:50)
git-committer:
Frederik Heber <frederik.heber@…> (05/08/17 13:54:51)
Message:

Moved toPythonString() from Action::outputAsPython() to Parameter::getAsStringUnvalidated().

  • This allows to have a special "getAsStringUnvalidated" for outputAsPython for type Vector in Parameter/Value, while all other types retain the same outout.
  • TESTFIX: Regression tests Options/Session used different Vector spellings in pre and post complextest.py.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parameters/Value_impl.hpp

    rddceb1 r7630e3  
    2222#include "CodePatterns/Log.hpp"
    2323
     24#include "Actions/toPythonString.hpp"
    2425#include "Validators/DummyValidator.hpp"
    2526#include "Validators/DiscreteValidator.hpp"
     
    193194inline const std::string Value<T>::getAsStringUnvalidated() const throw(ParameterValueException)
    194195{
    195   return toString(getUnvalidated());
     196  return toPythonString(getUnvalidated());
    196197}
    197198
Note: See TracChangeset for help on using the changeset viewer.