Skip to content

Commit

Permalink
fix: Suggested fix for: radmeth-adjust replaces significant p-values …
Browse files Browse the repository at this point in the history
…in scientific notation with '1' and thus hides best DMC smithlabcode#31
  • Loading branch information
iromeo committed Feb 17, 2023
1 parent 34047aa commit 6b285f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/radmeth/radmeth-adjust.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ stouffer_liptak(const vector<vector<double> > &corr_mat, vector<double> &pvals)
static bool
is_number(const string& str) {
for (const char &c : str)
if (c != '.' && !std::isdigit(c)) return false;
if (c != '.' && c != 'e' && c != '-' && !std::isdigit(c)) return false;
return true;
}

Expand Down

0 comments on commit 6b285f5

Please sign in to comment.