Skip to content
Snippets Groups Projects
Commit d3e2b513 authored by Christopher Dilks's avatar Christopher Dilks Committed by Wouter Deconinck
Browse files

fix: `npdet_info` string output should have quotes

parent 3c2ed348
Branches
No related tags found
2 merge requests!273Draft: Resolve "Support FastSim and GFlash",!271fix: `npdet_info` string output should have quotes
...@@ -199,7 +199,7 @@ int main (int argc, char *argv[]) { ...@@ -199,7 +199,7 @@ int main (int argc, char *argv[]) {
fmt::print("{:<30}", c.first); fmt::print("{:<30}", c.first);
if(s.value || s.all) { if(s.value || s.all) {
if(((Constant)c.second).dataType()=="string") if(((Constant)c.second).dataType()=="string")
fmt::print(" = {:>12s}", detector.constant<std::string>(c.first)); fmt::print(" = \"{:>s}\"", detector.constant<std::string>(c.first));
else else
fmt::print(" = {:>12.3f}", double(detector.constant<double>(c.first))); fmt::print(" = {:>12.3f}", double(detector.constant<double>(c.first)));
} }
...@@ -219,7 +219,7 @@ int main (int argc, char *argv[]) { ...@@ -219,7 +219,7 @@ int main (int argc, char *argv[]) {
for (const auto& c : constants) { for (const auto& c : constants) {
fmt::print("{:<30}", c.first); fmt::print("{:<30}", c.first);
if(((Constant)c.second).dataType()=="string") if(((Constant)c.second).dataType()=="string")
fmt::print(" = {:>12s}", detector.constant<std::string>(c.first)); fmt::print(" = \"{:>s}\"", detector.constant<std::string>(c.first));
else else
fmt::print(" = {:>12.3f}", double(detector.constant<double>(c.first))); fmt::print(" = {:>12.3f}", double(detector.constant<double>(c.first)));
fmt::print(" = {}", detector.constantAsString(c.first)); fmt::print(" = {}", detector.constantAsString(c.first));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment