15 #ifndef BORNAGAIN_CORE_PYIO_PYTHONFORMATTING_H
16 #define BORNAGAIN_CORE_PYIO_PYTHONFORMATTING_H
33 std::function<std::string(
double)> printValueFunc);
41 const std::string& distVarName,
42 const std::string& units =
"");
Interface for one-dimensional distributions.
Manages a local parameter pool, and a tree of child pools.
Basic class for all shapes in 2D.
A parametric distribution function, for use with any model parameter.
Wraps a parameter of type double.
Utility functions for writing Python code snippets.
std::string argumentList(const IParameterized *ip)
Returns comma-separated list of parameter values, including unit multiplicator (like "* nm").
std::string printDistribution(const IDistribution1D &par_distr, const std::string &units)
Prints distribution with constructor parameters in given units.
std::string valueTimesUnit(const RealParameter *par)
Returns parameter value, followed by its unit multiplicator (like "* nm").
std::string representShape2D(const std::string &indent, const IShape2D *ishape, bool mask_value, std::function< std::string(double)> printValueFunc)
Returns fixed Python code snippet that defines the function "runSimulation".
std::string indent(size_t width)
Returns a string of blanks with given width.