15 #ifndef BORNAGAIN_CORE_PARAMETRIZATION_PYFMT_H
16 #define BORNAGAIN_CORE_PARAMETRIZATION_PYFMT_H
28 std::string scriptPreamble();
29 std::string getSampleFunctionName();
31 std::string printInt(
int value);
32 std::string printBool(
double value);
33 std::string printDouble(
double input);
34 std::string printNm(
double input);
35 std::string printNm2(
double input);
36 std::string printScientificDouble(
double input);
37 std::string printDegrees(
double input);
38 std::string printValue(
double value,
const std::string& units =
"");
39 std::string printString(
const std::string& value);
41 bool isSquare(
double length1,
double length2,
double angle);
42 bool isHexagonal(
double length1,
double length2,
double angle);
43 std::string printKvector(
const kvector_t value);
47 std::string
indent(
size_t width = 4u);
Defines basic vectors in R^3 and C^3.
Limits for a real fit parameter.
Utility functions for writing Python code snippets.
std::string indent(size_t width)
Returns a string of blanks with given width.