IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 6a8dcda9 authored by Remy Prechelt's avatar Remy Prechelt
Browse files

Path std::filesystem directly to ofstream.

parent 518bb8e3
No related branches found
No related tags found
1 merge request!317Output infrastructure and Python analysis library.
......@@ -44,8 +44,12 @@ namespace corsika {
using namespace units::si;
// write the next row - we must write `shower_` first.
(*writer_) << shower_ << static_cast<int>(get_PDG(pid)) << energy / 1_eV << x / 1_m
<< y / 1_m << parquet::EndRow;
(*writer_) << shower_
<< static_cast<int>(get_PDG(pid))
<< static_cast<float>(energy / 1_eV)
<< static_cast<float>(x / 1_m)
<< static_cast<float>(y / 1_m)
<< parquet::EndRow;
}
} // namespace corsika
......@@ -30,7 +30,7 @@ namespace corsika {
out << node;
// open the output file - this is <output name>.yaml
std::ofstream file(path.string());
std::ofstream file(path);
// dump the YAML to the file
file << out.c_str() << std::endl;
......
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