Skip to content

Commit

Permalink
Reorder format_driors() call
Browse files Browse the repository at this point in the history
  • Loading branch information
arni-magnusson committed Nov 11, 2022
1 parent 4af6ea1 commit 87b9f69
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions R/addDriors.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,18 @@ addDriors <- function(stocks, priors, same.priors, shape_prior=2,
else formals(format_driors)$index_year
driors[[i]] <- format_driors(
taxa = stocks$stock[i],
shape_prior = shape_prior,
catch = stocks$data[[i]]$capture,
years = stocks$data[[i]]$year,
initial_state = priors$initial_state[p],
initial_state_cv = priors$initial_state_cv[p],
terminal_state = priors$terminal_state[p],
terminal_state_cv = priors$terminal_state_cv[p],
effort = effort,
effort_years = effort_years,
index = index,
index_years = index_years,
## Prior section
shape_prior = shape_prior,
initial_state = priors$initial_state[p],
initial_state_cv = priors$initial_state_cv[p],
terminal_state = priors$terminal_state[p],
terminal_state_cv = priors$terminal_state_cv[p],
growth_rate_prior_cv = growth_rate_prior_cv,
...)
}
Expand Down

0 comments on commit 87b9f69

Please sign in to comment.