aboutsummaryrefslogtreecommitdiff
path: root/src/io.cpp
diff options
context:
space:
mode:
authorPjotr Prins2017-11-09 11:43:53 +0000
committerPjotr Prins2017-11-09 11:43:53 +0000
commitdbce439e7196ab6882634b270f2675b3ebcb33cd (patch)
tree4c593fa5594d1482ccbb57bf4d799e9d0529aebe /src/io.cpp
parent4c158a9bb45e0dec14436a8a19707f485015bf2e (diff)
downloadpangemma-dbce439e7196ab6882634b270f2675b3ebcb33cd.tar.gz
Adding tests for bslmm
Diffstat (limited to 'src/io.cpp')
-rw-r--r--src/io.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/io.cpp b/src/io.cpp
index 35a59ee..ef6c26a 100644
--- a/src/io.cpp
+++ b/src/io.cpp
@@ -2133,19 +2133,23 @@ bool ReadFile_est(const string &file_est, const vector<size_t> &est_column,
gamma = 1.0;
for (size_t i = 0; i < n + 1; ++i) {
if (i == est_column[0] - 1) {
+ enforce(ch_ptr);
rs = ch_ptr;
}
if (i == est_column[1] - 1) {
+ enforce(ch_ptr);
alpha = atof(ch_ptr);
}
if (i == est_column[2] - 1) {
+ enforce(ch_ptr);
beta = atof(ch_ptr);
}
if (i == est_column[3] - 1) {
+ enforce(ch_ptr);
gamma = atof(ch_ptr);
}
if (i < n) {
- ch_ptr = strtok_safe(NULL, " \t");
+ ch_ptr = strtok(NULL, " \t");
}
}