Skip to content

Commit

Permalink
Fixed a magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidsmith committed Oct 18, 2024
1 parent 494dd29 commit 72ef2b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gc_extrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ write_predicted_coverage_curve(const string &outfile, const double c_level,
const vector<double> &cvrg_estimates,
const vector<double> &cvrg_lower_ci_lognorm,
const vector<double> &cvrg_upper_ci_lognorm) {
static constexpr double one_hundred = 100.0;
std::ofstream of;
if (!outfile.empty())
of.open(outfile.c_str());
std::ostream out(outfile.empty() ? std::cout.rdbuf() : of.rdbuf());

const auto percentile = 100.0 * c_level;
const double percentile = one_hundred * c_level;
// clang-format off
out << "TOTAL_BASES" << '\t'
<< "EXPECTED_COVERED_BASES" << '\t'
Expand Down

0 comments on commit 72ef2b6

Please sign in to comment.