Skip to content

Commit

Permalink
Rteurn fbar even if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Feb 3, 2025
1 parent 7d21e35 commit f1db226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: FLCore
Title: Core Package of FLR, Fisheries Modelling in R
Version: 2.6.20.9323
Version: 2.6.20.9324
Authors@R: c(
person("Iago", "Mosqueira", email = "iago.mosqueira@wur.nl",
role = "cre", comment=c(c(ORCID = "0000-0002-3252-0591"))),
Expand Down
3 changes: 2 additions & 1 deletion R/FLStock.R
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ setMethod("fbar", signature(object="FLStock"),
if(units(harvest(object)) == 'f' || units(harvest(object)) == 'hr') {
return(quantMeans(harvest(object)[as.character(seq(min, max)),]))
} else {
stop("Correct units (f or hr) not specified in the harvest slot")
return(quantMeans(harvest(object)[as.character(seq(min, max)),]))
# stop("Correct units (f or hr) not specified in the harvest slot")
}
}
) # }}}
Expand Down

0 comments on commit f1db226

Please sign in to comment.