Skip to content

Commit

Permalink
Input bread crumbs for Nathan to follow for fixing the code for RS
Browse files Browse the repository at this point in the history
  • Loading branch information
latreesedenson-NOAA committed May 22, 2024
1 parent 6f3069d commit 6ee0820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/RatioBiasEM.R
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ BiasEM <- function(EM_out_dir = NULL, init_loop = TRUE, OM_dat, verbose = FALSE,
# new_OM_catch_list$catch_bio <- NULL

if(!is.null(new_OM_catch_list$discards)){
tmp_discards <- base::merge(new_OM_catch_list$discards, sample_struct$EM2OMdiscard_bias, all.x=TRUE)
tmp_discards <- base::merge(abs(new_OM_catch_list$discards), abs(sample_struct$EM2OMdiscard_bias), all.x=TRUE) #need to sort to figure this out
new_OM_catch_list$discards$Discard <- new_OM_catch_list$discards$Discard * tmp_discards$bias
}

Expand Down
2 changes: 1 addition & 1 deletion R/parse_MS.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ parse_MS <- function(MS, EM_out_dir = NULL, EM_init_dir = NULL,
interim_struct = interim_struct,
seed = seed
)

# browser()
new_catch_list <- do.call(MS, args = pars_list)

# to do: need better checks on function name? Maybe be more explicit on
Expand Down

0 comments on commit 6ee0820

Please sign in to comment.