Skip to content

Commit

Permalink
v.0.5.2.9002
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 19, 2022
1 parent aa7d1b0 commit df8a6f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ss3om
Title: Tools for Conditioning Fisheries Operating Models Using Stock Synthesis 3
Version: 0.5.2.9001
Version: 0.5.2.9002
Authors@R: person("Iago", "Mosqueira", email = "[email protected]",
role = c("aut", "cre"))
Description: Tools for loading Stock Synthesis (SS3) models into FLR. Used in
Expand Down
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import("mse")
import("data.table")
import("foreach")
import("r4ss")
importFrom("stats", "optimize", "setNames")
importFrom("stats", "optimise", "setNames")

export(
"buildFLBFss3",
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-ss330.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ test_that("hake FLStock is valid", {

test_that("Calculated hake SSB matches that in Report.sso", {
expect_comparable(
unitSums(ssb(hkes)),
seasonSums(unitSums(ssb(hkes))),
extractSSB(hke))
}
)
Expand All @@ -161,7 +161,7 @@ test_that("Calculated hake SSB matches that in Report.sso", {

test_that("Calculated hake annual F matches that in Report.sso", {
expect_comparable(
unitMeans(fbar(hkes))[, -1],
fbar(simplify(hkes))[, -1],
extractFbar(hke))
}
)
Expand All @@ -171,8 +171,8 @@ test_that("Calculated hake annual F matches that in Report.sso", {
test_that("Calculated hake annual Z at age matches that in Report.sso", {
expect_comparable(
# LAST age not returned in Report.sso$Z_at_age
z(hkes)[ac(0:18),],
extractZatage(hke)[ac(0:18),])
z(simplify(hkes))[ac(0:14),],
extractZatage(hke)[ac(0:14),])
}
)
# }}}
Expand Down

0 comments on commit df8a6f2

Please sign in to comment.