Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanxw committed Apr 22, 2016
1 parent ff6c051 commit 7b7d37d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DataLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ int DataLoader::loadCovariate(const std::string& covar,
*/
int DataLoader::arrangeCovariate(const std::vector<std::string>& names,
std::vector<std::string>* droppedNames) {
if (covariate.ncol() > 0) {
if (covariate.nrow() > 0) {
// when covariates are used
covariate.keepRow(phenotype.getRowName());
covariate.reorderRow(phenotype.getRowName());
assert(covariate.nrow() == phenotype.nrow());
Expand Down

0 comments on commit 7b7d37d

Please sign in to comment.