Skip to content

Commit

Permalink
Pipeline: Adds Chr gun deaths (#3913)
Browse files Browse the repository at this point in the history
# Description and Motivation
<!--- bulleted, high level items. use keywords (eg "closes #144" or
"fixes #4323") -->

- closes #3909 

## Has this been tested? How?

- tests updated and passing

## Screenshots (if appropriate)

## Types of changes

(leave all that apply)

- New content or feature

## New frontend preview link is below in the Netlify comment 😎
  • Loading branch information
benhammondmusic authored Jan 17, 2025
1 parent b5279c4 commit 292dfdf
Show file tree
Hide file tree
Showing 5 changed files with 170,158 additions and 170,152 deletions.
2 changes: 1 addition & 1 deletion .github/linters/.pylintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[FORMAT]
max-line-length=120
[MESSAGES CONTROL]
disable=C0114,E0401,C0201,C0115,R1714,C0411,W0511,R1705,C0116,C0103,R0201,W0104,W0105,R0801,R0913,R0022,C0412,R0914,R0915,W0621,R0903,W0237,W0221,W0201,R0911,R1710,R0902,R0912,W0622,W1514,W0718,W0707,W0719,R0402,C0302,W0108,W0640,W0632,W1203,E1131,W0703,R0917
disable=C0114,E0401,C0201,C0115,R1714,C0411,W0511,R1705,C0116,C0103,R0201,W0104,W0105,R0801,R0913,R0022,C0412,R0914,R0915,W0621,R0903,W0237,W0221,W0201,R0911,R1710,R0902,R0912,W0622,W1514,W0718,W0707,W0719,R0402,C0302,W0108,W0640,W0632,W1203,E1131,W0703,R0917,E1136
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ filterwarnings = [
]

[tool.pylint."MESSAGES CONTROL"]
disable = "C0114,E0401,C0201,C0115,R1714,C0411,W0511,R1705,C0116,C0103,R0201,W0104,W0105,R0801,R0913,R0022,C0412,R0914,R0915,W0621,R0903,W0237,W0221,W0201,R0911,R1710,R0902,R0912,W0622,W1514,W0718,W0707,W0719,R0402,C0302,W0108,W0640,W0632,W1203,E1131,W0703,R0917"
disable = "C0114,E0401,C0201,C0115,R1714,C0411,W0511,R1705,C0116,C0103,R0201,W0104,W0105,R0801,R0913,R0022,C0412,R0914,R0915,W0621,R0903,W0237,W0221,W0201,R0911,R1710,R0902,R0912,W0622,W1514,W0718,W0707,W0719,R0402,C0302,W0108,W0640,W0632,W1203,E1131,W0703,R0917,E1136"

[tool.pylint."FORMAT"]
max-line-length = 120
8 changes: 7 additions & 1 deletion python/datasources/chr.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_het_to_source_select_topic_all_to_race_prefix_map(year: str | None = Non
"Preventable Hosp. Rate": None
}

if year is None or year == "2019":
if year is None or int(year) == 2019:
het_to_source_select_topic_all_to_race_prefix_map[std_col.PREVENTABLE_HOSP_PREFIX] = {
"Preventable Hosp. Rate": "Preventable Hosp. Rate"
}
Expand Down Expand Up @@ -80,11 +80,17 @@ def get_het_to_source_additional_topic_all_to_race_prefix_map(
"% Frequent Mental Distress": None
}

if year is None or int(year) >= 2017:
het_to_source_additional_topic_all_to_race_prefix_map["gun_deaths"] = {"Firearm Fatalities Rate": None}

if year is None or int(year) >= 2020:
het_to_source_additional_topic_all_to_race_prefix_map[std_col.SUICIDE_PREFIX] = {"Crude Rate": "Suicide Rate"}
het_to_source_additional_topic_all_to_race_prefix_map[std_col.DIABETES_PREFIX] = {
"% Adults with Diabetes": None
}
het_to_source_additional_topic_all_to_race_prefix_map["gun_deaths"] = {
"Firearm Fatalities Rate": "Firearm Fatalities Rate"
}

if year is None or int(year) >= 2023:
het_to_source_additional_topic_all_to_race_prefix_map[std_col.VOTER_PARTICIPATION_PREFIX] = {
Expand Down
Loading

0 comments on commit 292dfdf

Please sign in to comment.