BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PyFmt.h File Reference

Defines functions in namespace pyfmt. More...

Go to the source code of this file.

Namespaces

 pyfmt
 Utility functions for writing Python code snippets.
 

Functions

std::string pyfmt::scriptPreamble ()
 
std::string pyfmt::getSampleFunctionName ()
 
std::string pyfmt::printInt (int value)
 
std::string pyfmt::printBool (double value)
 
std::string pyfmt::printDouble (double input)
 
std::string pyfmt::printNm (double input)
 
std::string pyfmt::printNm2 (double input)
 
std::string pyfmt::printScientificDouble (double input)
 
std::string pyfmt::printDegrees (double input)
 
std::string pyfmt::printValue (double value, const std::string &units)
 
std::string pyfmt::printString (const std::string &value)
 
bool pyfmt::isSquare (double length1, double length2, double angle)
 
bool pyfmt::isHexagonal (double length1, double length2, double angle)
 
std::string pyfmt::printKvector (const kvector_t value)
 
std::string pyfmt::indent (size_t width=4u)
 Returns a string of blanks with given width. More...
 

Detailed Description

Defines functions in 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 PyFmt.h.