Skip to content

Commit

Permalink
Fixed spelling error and missing variable assignment in auto_rank.py (#…
Browse files Browse the repository at this point in the history
…579)

* Additions for Tuzist'ol T'ah WCRP

- Added geographic scope to wcrp_watsheds.csv
- Added wcrp to ranking script

* Fixed spelling error in WCRP name

 Also fixed missing assignment of wcrp_schema
  • Loading branch information
andrewp-CWF authored Oct 21, 2024
1 parent 5dea4cb commit 53080f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jobs/auto_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def makeParser():
"bessette",
"bela_atna_necl",
"bowr_ques_carr",
"tuzitol_tah"
"tuzistol_tah"
],
nargs=1,
type=str,
Expand Down Expand Up @@ -156,10 +156,11 @@ def buildCondition(wcrp):
c."watershed_group_code" IN ('BOWR', 'QUES', 'CARR')
"""
wcrp_schema = "bowr_ques_carr"
elif wcrp == "tuzitol_tah":
elif wcrp == "tuzistol_tah":
condition = """
c."watershed_group_code" IN ('TAKL', 'MIDR', 'UTRE', 'LTRE', 'STUL', 'STUR')
"""
wcrp_schema = "tuzistol_tah"
else:
# In all other cases, just the watershed group code
condition = f"""
Expand Down

0 comments on commit 53080f4

Please sign in to comment.