-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve merge conflict with two concurrent data updates
- Loading branch information
Showing
138 changed files
with
3,083 additions
and
3,260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ See the [Documentation](https://smnorris.github.io/bcfishpass/) for details. | |
- [fwapg](https://github.com/smnorris/fwapg) | ||
- [bcfishobs](https://github.com/smnorris/bcfishobs) | ||
|
||
## Setup | ||
## Setup / Usage | ||
|
||
`bcfishpass` is a collection of shell/sql/Python scripts. To download and use the latest: | ||
|
||
|
@@ -47,37 +47,41 @@ All scripts presume that the `DATABASE_URL` environment variable points to your | |
|
||
export DATABASE_URL=postgresql://postgres@localhost:5432/bcfishpass | ||
|
||
Set up the database schema: | ||
|
||
jobs/setup | ||
|
||
Load FWA data: | ||
Load FWA: | ||
|
||
git clone https://github.com/smnorris/fwapg | ||
cd fwapg | ||
mkdir -p .make; touch .make/db # just reload data | ||
mkdir -p data | ||
make --debug=basicjobs/load_fwa | ||
make --debug=basic | ||
|
||
Load/run `bcfishobs`: | ||
|
||
git clone [email protected]:smnorris/bcfishobs.git | ||
cd bcfishobs | ||
make --debug=basic | ||
|
||
Load all additional data: | ||
Create db schema: | ||
|
||
jobs/load_static | ||
jobs/db_setup | ||
|
||
Load source data: | ||
|
||
jobs/load_static | ||
jobs/load_monthly | ||
jobs/load_weekly | ||
|
||
Run `bcfishobs`: | ||
Load cached bcfishpass data: | ||
|
||
git clone [email protected]:smnorris/bcfishobs.git | ||
cd bcfishobs | ||
mkdir -p .make | ||
make -t .make/setup | ||
make -t .make/load_static | ||
make -t .make/fiss_fish_obsrvtn_pnt_sp | ||
make --debug=basic | ||
jobs/load_gradient_barriers | ||
jobs/load_modelled_stream_crossings | ||
|
||
Run the model: | ||
|
||
jobs/model_prep | ||
jobs/model_run | ||
|
||
Finally, navigate back to the root bcfishpass folder and build `bcfishpass`: | ||
# Backups | ||
|
||
make | ||
Backup strategies will vary but it can be useful to dump the entire database to file. | ||
This appends the date and commit tag date to the file name: | ||
|
||
Note that it is possible (and often preferred) to build components of the modelling separately. | ||
Refer to the various README files in the subfolders within the `model` folder for more info. | ||
pg_dump -Fc $DATABASE_URL > bcfishpass.$(git describe --tags --abbrev=0).$(date +%F).dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cabd_id,blue_line_key,reviewer_name,review_date,notes | ||
30115bb6-9a75-4c33-bb37-4243ce33e43d,356352213,SN,2024-05-28,matched to stream named in CABD | ||
c3721358-4334-41c0-a4c1-1fa729803d47,354154385,SN,2024-05-28,matched to stream named in CABD (but it is unclear where cascade is actually located) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
cabd_id,reviewer_name,review_date,source,notes | ||
30b88f1b-dc21-4b42-8daa-d4cebae24142,SN,2023-01-01,not noted, | ||
3ca692b8-37cf-44e8-a783-2a315ec83102,SN,2023-01-01,not noted, | ||
ba5fe3eb-7bbe-45c1-b301-555872387c16,SN,2023-01-01,not noted, | ||
8a6b10fa-0d4f-4c45-857c-764d7e8028f8,SN,2023-01-01,not noted, | ||
48478e95-e063-4df6-a047-6aaf6087011b,SN,2023-01-01,not noted, | ||
e8e4bd88-c3c9-407c-a7a0-15c6c51704fd,SN,2023-01-01,not noted,dam may or may not be a barrier but location was incorrect at time of review | ||
6a792d8f-b9c5-44a4-a260-0f06c3b20821,SN,2023-01-01,not noted,dam may or may not be a barrier but location gets matched to Salmon River | ||
cabd_id,reviewer_name,review_date,source,notes |
Oops, something went wrong.