BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
PyFmtLimits.cpp File Reference

Description

Implements functions from namespace pyfmt.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file PyFmtLimits.cpp.

Include dependency graph for PyFmtLimits.cpp:

Go to the source code of this file.

Namespaces

 Py
 
 Py::Fmt
 Utility functions for writing Python code snippets.
 

Functions

std::string Py::Fmt::printRealLimits (const RealLimits &limits, const std::string &units)
 
std::string Py::Fmt::printRealLimitsArg (const RealLimits &limits, const std::string &units)
 Prints RealLimits in the form of argument (in the context of ParameterDistribution and similar). Default RealLimits will not be printed, any other will be printed as ", ba.RealLimits.limited(1*deg, 2*deg)". More...