Skip to content

Commit

Permalink
Tweak checking for bad inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmcg committed Jun 21, 2019
1 parent 2e0edf0 commit c85efd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/bc.mbcn.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ingest <- function(files){
fin <- files[v]
nc <- nc_open(fin)
x <- ncvar_get(nc, v)
if(all(!is.finite(x)) || all(x == 0)){bail()}
if(all(!is.finite(x)) || all(x == 0, na.rm=TRUE)){bail()}
x <- x * scaling[v]
x <- NAfill(x)
result <- cbind(result, x)
Expand Down

0 comments on commit c85efd3

Please sign in to comment.