From 4bfcc3326b310e66cad48702516ad239473358a4 Mon Sep 17 00:00:00 2001 From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de> Date: Tue, 20 Jun 2023 12:17:42 +0000 Subject: [PATCH] algo::Options: Rename write-per-ts flag to split-output-per-ts. --- algo/base/Options.cxx | 2 +- algo/base/Options.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/algo/base/Options.cxx b/algo/base/Options.cxx index 4c1747f50a..c7091817fa 100644 --- a/algo/base/Options.cxx +++ b/algo/base/Options.cxx @@ -61,7 +61,7 @@ Options::Options(int argc, char** argv) generic.add_options() ("output,o", po::value(&fOutputFile)->default_value("")->value_name("<file>"), "write results to file") - ("write-per-ts,W", po::bool_switch(&fWritePerTimeslice)->default_value(false), + ("split-output-per-ts,S", po::bool_switch(&fSplitOutputPerTS)->default_value(false), "Write results to file per timeslice (resulting files are named <file>_<tsnr>). Requires -o.") ("device,d", po::value(&fDevice)->default_value("cpu")->value_name("<device>"), "select device (cpu, cuda0, cuda1, hip0, ...)") diff --git a/algo/base/Options.h b/algo/base/Options.h index 1da91be39a..1f53cf9851 100644 --- a/algo/base/Options.h +++ b/algo/base/Options.h @@ -24,7 +24,7 @@ namespace cbm::algo fs::path ParamsDir() const { return fParamsDir; } const std::string& InputLocator() const { return fInputLocator; } fs::path OutputFile() const { return fOutputFile; } - bool WritePerTimeslice() const { return fWritePerTimeslice; } + bool SplitOutputPerTS() const { return fSplitOutputPerTS; } severity_level LogLevel() const { return fLogLevel; } fs::path LogFile() const { return fLogFile; } const std::string& Device() const { return fDevice; } @@ -52,7 +52,7 @@ namespace cbm::algo std::string fParamsDir; // TODO: can we make this a std::path? std::string fInputLocator; std::string fOutputFile; - bool fWritePerTimeslice = false; + bool fSplitOutputPerTS = false; severity_level fLogLevel; std::string fLogFile; std::string fDevice; -- GitLab