Skip to content

Commit

Permalink
Merge branch 'master' into add-iphc-2024-data
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunic authored Jan 23, 2025
2 parents 1a0813c + 80903d0 commit b32830c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gfdata
Title: Data Extraction for DFO PBS Groundfish Stocks
Version: 0.1.3
Version: 0.1.4
Authors@R: c(
person(c("Elise", "A."), "Keppel", role = "aut"),
person(c("Philina", "A."), "English",
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@



## 0.1.4 2024-12-20

- Comment out SQL that was dropping midwater trawl discard weights before 2006.
See line in `inst/sql/get-catch.sql` about trip category `OPT B`.
Currently line 22. We see no reason to remove these.


## 0.1.3 2024-07-17

- For commercial biological samples: discards with a null sample source code are
Expand Down
1 change: 1 addition & 0 deletions gfdata.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: 97596da8-8349-4c9e-8f87-8b8f25e30e10

RestoreWorkspace: No
SaveWorkspace: No
Expand Down
2 changes: 1 addition & 1 deletion inst/sql/get-catch.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SELECT
LANDED_KG,
CASE WHEN GEAR IN ('TRAP', 'HOOK AND LINE', 'MIDWATER TRAWL') AND YEAR(BEST_DATE) < 2006 THEN 0
WHEN GEAR IN ('BOTTOM TRAWL', 'UNKNOWN TRAWL') AND YEAR(BEST_DATE) <1996 THEN 0
WHEN TRIP_CATEGORY IN ('OPT B') AND YEAR(BEST_DATE) <2006 THEN 0
-- WHEN TRIP_CATEGORY IN ('OPT B') AND YEAR(BEST_DATE) <2006 THEN 0
ELSE DISCARDED_KG END AS DISCARDED_KG,
LANDED_PCS,
DISCARDED_PCS,
Expand Down

0 comments on commit b32830c

Please sign in to comment.