Triumvirate C++ API 0.5.0
Three-point clustering measurements in large-scale structure analyses.
Loading...
Searching...
No Matches
io.hpp File Reference

I/O support including custom exceptions and utility functions. More...

#include <sys/stat.h>
#include <filesystem>
#include <string>
#include <system_error>
#include "parameters.hpp"
#include "particles.hpp"
#include "dataobjs.hpp"
+ Include dependency graph for io.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  trv
 
namespace  trv::sys
 
namespace  trv::io
 

Functions

bool trv::sys::if_filepath_is_set (const std::string &pathstr)
 Check if a file path is set.
 
void trv::sys::make_write_dir (std::string dirstr)
 Make write directory.
 
void trv::io::print_measurement_header_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::ParticleCatalogue &catalogue_data, trv::ParticleCatalogue &catalogue_rand, double norm_factor_part, double norm_factor_mesh, double norm_factor_meshes)
 Print the pre-measurement header to a file including information about the catalogue(s) and mesh grid assignment.
 
void trv::io::print_measurement_header_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::ParticleCatalogue &catalogue, double norm_factor_part, double norm_factor_mesh, double norm_factor_meshes)
 Print the pre-measurement header to a file including information about the catalogue(s) and mesh grid assignment.
 
void trv::io::print_binned_vectors_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::BinnedVectors &binned_vectors)
 Print binned vectors to a file.
 
void trv::io::print_measurement_datatab_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::PowspecMeasurements &meas_powspec)
 Print measurements as a data table to a file.
 
void trv::io::print_measurement_datatab_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::TwoPCFMeasurements &meas_2pcf)
 Print measurements as a data table to a file.
 
void trv::io::print_measurement_datatab_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::TwoPCFWindowMeasurements &meas_2pcf_win)
 Print measurements as a data table to a file.
 
void trv::io::print_measurement_datatab_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::BispecMeasurements &meas_bispec)
 Print measurements as a data table to a file.
 
void trv::io::print_measurement_datatab_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::ThreePCFMeasurements &meas_3pcf)
 Print measurements as a data table to a file.
 
void trv::io::print_measurement_datatab_to_file (std::FILE *fileptr, trv::ParameterSet &params, trv::ThreePCFWindowMeasurements &meas_3pcf_win)
 Print measurements as a data table to a file.
 

Detailed Description

I/O support including custom exceptions and utility functions.

Authors
Mike S Wang (https://github.com/MikeSWang), Naonori S Sugiyama (https://github.com/naonori)

Definition in file io.hpp.