Skip to content

Commit

Permalink
fix: Provides fit to FishStatsUtils::plot_biomass_index()
Browse files Browse the repository at this point in the history
if `fit = NULL` which is the default, then the function doesn't work.
This change provides the model output, which is labelled `out`,
to the `fit` input argument.

Closes #41
  • Loading branch information
kellijohnson-NOAA committed Apr 15, 2022
1 parent 263847f commit 6834506
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/VAST_do.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ VAST_do <- function(Database, settings, conditiondir, compiledir,
error = function(e) e)

index <- suppressWarnings(FishStatsUtils::plot_biomass_index(
fit = out,
DirName = file.path(conditiondir, .Platform$file.sep),
TmbData = out$data_list, Sdreport = out$parameter_estimates$SD,
use_biascorr = TRUE,
Expand Down

0 comments on commit 6834506

Please sign in to comment.