Skip to content

Commit

Permalink
Merge pull request #40 from FRAMverse/fix/chinook_msp
Browse files Browse the repository at this point in the history
fixes msf reporting w/ msp. closes #35.
  • Loading branch information
Ty-WDFW authored Oct 31, 2024
2 parents 00f1123 + d76a0c3 commit dab9673
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/report_msf_chinook.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#'
msf_mortalities_chinook_ <- function(fram_db){
mortalities_ <- fram_db |>
fetch_table('Mortality')
msp_mortality()

mortalities_ <- mortalities_ |>
dplyr::select(.data$run_id:.data$time_step, dplyr::starts_with('msf_')) |>
Expand Down Expand Up @@ -52,7 +52,7 @@ msf_mortalities_chinook_ <- function(fram_db){

msf_encounters_chinook_ <- function(fram_db){
encounters_ <- fram_db |>
fetch_table('Mortality')
msp_mortality()

# ensure the correct rates are always used
sublegal_mortality_rates <- DBI::dbGetQuery(
Expand Down Expand Up @@ -95,7 +95,7 @@ msf_encounters_chinook_ <- function(fram_db){
#'
msf_landed_catch_chinook_ <- function(fram_db){
landed_catch_ <- fram_db |>
fetch_table('Mortality')
msp_mortality()
landed_catch <- landed_catch_ |>
dplyr::select(.data$run_id, .data$stock_id, .data$fishery_id, .data$time_step,
.data$msf_landed_catch, .data$msf_shaker) |>
Expand Down

0 comments on commit dab9673

Please sign in to comment.