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

Description

Implements functions from namespace pyfmt2.

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 PyFmt2.cpp.

Include dependency graph for PyFmt2.cpp:

Go to the source code of this file.

Namespaces

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

Functions

std::string Py::Fmt2::printAxis (const IAxis *axis, const std::string &unit)
 Prints an axis. More...
 
std::string Py::Fmt2::printParameterDistribution (const ParameterDistribution &par_distr, const std::string &distVarName, const std::string &units)
 
std::string Py::Fmt2::printRangedDistribution (const IRangedDistribution &distr)
 
std::string Py::Fmt2::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 "simulate". More...