Skip to content

Commit

Permalink
Fix filter call
Browse files Browse the repository at this point in the history
  • Loading branch information
cstjean committed Aug 28, 2018
1 parent 1834613 commit ee95774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sk_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Parameters
Objects that will be checked for consistent length.
"""
function check_consistent_length(arrays...)
nuni = nunique([size(X, 1) for X in collect(filter(x->x!=nothing, arrays))])
nuni = nunique([size(X, 1) for X in filter(x->x!=nothing, collect(arrays))])
if nuni > 1
throw(ArgumentError("Found arrays with inconsistent numbers of samples: $nuni"))
end
Expand Down

0 comments on commit ee95774

Please sign in to comment.