Skip to content

Commit

Permalink
Merge pull request #238 from PSLmodels/switch-to-2020-cds
Browse files Browse the repository at this point in the history
Switch to using 118th Congressional Districts
  • Loading branch information
martinholmer authored Oct 17, 2024
2 parents f2b99b6 + b136ea3 commit 4540cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmd/areas/create_area_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def valid_area(area: str):
all_ok = False
# check state congressional district number if appropriate
if len(area) == 4:
# assume CDs are based on 2010 Census (that is, 117th Congress)
max_cdn = state_info[scode][2010]
# assume CDs are based on 2020 Census (that is, 118th Congress)
max_cdn = state_info[scode][2020]
cdn = int(area[2:4])
if max_cdn <= 1:
if cdn != 0:
Expand Down

0 comments on commit 4540cad

Please sign in to comment.