Skip to content

Commit

Permalink
Avoid notes when running as MP
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 11, 2024
1 parent 16744e4 commit 4067406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fittingFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ a4aInternal <- function(stock, indices, fmodel = defaultFmod(stock), qmodel = de
# convert to dataframe. NOTE: list2df also logs the observations and centers
df.data <- do.call(rbind, lapply(1:length(list.obs), list2df, list.obs=list.obs, list.var=list.var, center.log=center.log))

if (any(df.data[,5] != 1)) message("Note: Provided variances will be used to weight observations.\n\tWeighting assumes variances are on the log scale or equivalently log(CV^2 + 1).")
if (any(df.data[,5] != 1) & fit != "MP") message("Note: Provided variances will be used to weight observations.\n\tWeighting assumes variances are on the log scale or equivalently log(CV^2 + 1).")

# extract auxilliary stock info
fbar <- unname(range(stock)[c("minfbar","maxfbar")])
Expand Down

0 comments on commit 4067406

Please sign in to comment.