IAP GITLAB

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

Minor updates to ObservationPlane.

parent c5ba6070
No related branches found
No related tags found
No related merge requests found
......@@ -15,9 +15,6 @@
#include <corsika/setup/SetupTrajectory.hpp>
#include <corsika/modules/writers/ObservationPlaneWriterParquet.hpp>
#include <fstream>
#include <string>
namespace corsika {
/**
......@@ -42,6 +39,7 @@ namespace corsika {
void reset();
HEPEnergyType getEnergyGround() const { return energy_ground_; }
YAML::Node getConfig() const;
private:
Plane const plane_;
bool const deleteOnHit_;
......
......@@ -21,7 +21,7 @@ namespace corsika {
public:
/**
* Write an observation plane to a directory.
* Construct an ObservationPlane.
*
* @param name The name of this output.
*/
......
/*
* (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
*
......@@ -26,11 +27,11 @@ namespace corsika {
class ParquetStreamer {
protected:
std::shared_ptr<parquet::StreamWriter> writer_; ///< The stream writer to 'outfile'
parquet::WriterProperties::Builder builder_; ///< The writer properties builder.
parquet::schema::NodeVector fields_; ///< The fields in this file.
parquet::WriterProperties::Builder builder_; ///< The writer properties builder.
parquet::schema::NodeVector fields_; ///< The fields in this file.
std::shared_ptr<parquet::schema::GroupNode> schema_; ///< The schema for this file.
std::shared_ptr<arrow::io::FileOutputStream> outfile_; ///< The output file.
std::shared_ptr<parquet::StreamWriter> writer_; ///< The stream writer to 'outfile'
public:
/**
......@@ -59,6 +60,11 @@ namespace corsika {
*/
void closeStreamer();
/**
* Return a reference to the underlying writer.
*/
std::shared_ptr<parquet::StreamWriter> getWriter();
}; // class ParquetHelper
} // namespace corsika
......
......@@ -9,7 +9,7 @@
"""
import logging
import os.path as op
from typing import Any, Dict
from typing import Any
import pyarrow.parquet as pq
......
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