diff options
author | Pjotr Prins | 2017-11-09 11:43:53 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-11-09 11:43:53 +0000 |
commit | dbce439e7196ab6882634b270f2675b3ebcb33cd (patch) | |
tree | 4c593fa5594d1482ccbb57bf4d799e9d0529aebe /src/io.cpp | |
parent | 4c158a9bb45e0dec14436a8a19707f485015bf2e (diff) | |
download | pangemma-dbce439e7196ab6882634b270f2675b3ebcb33cd.tar.gz |
Adding tests for bslmm
Diffstat (limited to 'src/io.cpp')
-rw-r--r-- | src/io.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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"); } } |