Skip to content
Snippets Groups Projects
Commit bff3f4a7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

further normalize floating-point constants

parent 4cb1cf46
No related branches found
No related tags found
1 merge request!1358code formatting
Pipeline #89770 failed
......@@ -92,7 +92,7 @@ std::string printNm2(double input)
return inter.str();
}
// 1.000000e7 -> 1.0e7
// 1.000000e7 -> 1e7
std::string printScientificDouble(double input)
{
std::ostringstream inter;
......
......@@ -15,7 +15,7 @@ def get_simulation(sample):
beam = ba.InBeam(1e6, 0.1*nm, 0.2*deg)
detector = ba.SphericalDetector(bp.simargs['n'], 2*deg, 1*deg, 1*deg)
simulation = ba.ScatteringSimulation(beam, sample, detector)
background = ba.ConstantBackground(1.0e3)
background = ba.ConstantBackground(1e3)
simulation.setBackground(background)
return simulation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment