Commit graph

436 commits

Author SHA1 Message Date
Saran Ahluwalia
60ae705944 Revert "Comparative Analysis for Score L and CRHB (#1094)"
This reverts commit 452109e8d1.
2022-01-02 10:28:10 -05:00
Saran Ahluwalia
452109e8d1
Comparative Analysis for Score L and CRHB (#1094)
* added spatial 1

* added overall notebook

* references
2022-01-02 07:50:20 -05:00
Saran Ahluwalia
25900f712b added revisions 2021-12-27 10:33:42 -05:00
Saran Ahluwalia
c78184a9f6 add legend 2021-12-25 08:04:37 -05:00
Saran Ahluwalia
ba7acb9f5f added temporaray artifacts 2021-12-24 13:56:20 -05:00
Saran Ahluwalia
a38f064261 cleanup and add comments 2021-12-24 13:55:23 -05:00
Saran Ahluwalia
b3a0f587db add reference 2021-12-21 13:04:40 -05:00
Saran Ahluwalia
679501ab43 added index for change between census tracts as one confounding explanation for percent change in population demographics 2021-12-21 13:00:09 -05:00
Saran Ahluwalia
c6985dbfba added illustrative example with California - LA county 2021-12-21 10:26:05 -05:00
Saran Ahluwalia
43fb09adde wip 2021-12-20 12:13:01 -05:00
Saran Ahluwalia
e423e62273 wip ny, ca, tx, fl comparisons 2021-12-20 08:55:10 -05:00
Saran Ahluwalia
4fb8bb8f16 wip ny, ca, tx, fl comparisons 2021-12-19 19:16:20 -05:00
Saran Ahluwalia
23a1de0af4 wip ny, ca, tx, fl comparisons 2021-12-19 17:49:51 -05:00
Saran Ahluwalia
60ffe12db4 without not computed fields 2021-12-13 09:26:59 -05:00
Saran Ahluwalia
c796df3fb7 Merge branch '1024-hud-housing-reformulation' of https://github.com/saran-ahluwalia/justice40-tool into 1024-hud-housing-reformulation 2021-12-13 06:44:45 -05:00
Saran Ahluwalia
88f7c2855a added t8_1 2021-12-13 06:44:32 -05:00
Saran Ahluwalia
0be4899895
Merge branch 'main' into 1024-hud-housing-reformulation 2021-12-13 05:50:39 -05:00
Saran Ahluwalia
ace127d4c0 added revised formulation 2021-12-13 05:03:41 -05:00
Saran Ahluwalia
64d1ead9c9 added percentile rank and current percentile comparison 2021-12-12 14:33:45 -05:00
Saran Ahluwalia
5ce32ccd50 comments 2021-12-11 13:40:13 -05:00
Saran Ahluwalia
f7e3237ed9 comments spelling check 2021-12-11 13:32:06 -05:00
Saran Ahluwalia
d9ff4e7aa2 add clarifying comments on color legend 2021-12-11 13:27:44 -05:00
Saran Ahluwalia
91b2d47413 added nonparametric tests for comparing both methodologies 2021-12-11 13:18:58 -05:00
Saran Ahluwalia
c6dd6b3e22 added nonparametric tests for comparing both methodologies 2021-12-11 13:06:17 -05:00
Saran Ahluwalia
f80d8c1880 added revisions including ETL process for table 8 acquistion 2021-12-11 08:28:01 -05:00
Saran Ahluwalia
ad6dbf9709
remove data roadmap directory from repository (#1034)
Removed data roadmap
2021-12-10 13:54:46 -05:00
Lucas Merrill Brown
7fcecaee42
Issue 970: reverse percentiles for AMI and life expectancy (#1018)
* switching to low

* fixing score-etl-post

* updating comments

* fixing comparison

* create separate field for clarity

* comment fix

* removing healthy food

* fixing bug in score post

* running black and adding comment

* Update pickles and add a helpful notes to README

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-12-10 10:16:22 -05:00
Saran Ahluwalia
aa27f5d6e2 draft 2021-12-10 08:06:03 -05:00
Saran Ahluwalia
cf47eb6995 added first pass 2021-12-09 13:52:50 -05:00
Vim
24bac56d9e
Methodology page update for Score L (#1010)
* Add first column of Methodology score L

- create a new component MethodologyFormula (MF)
- MF component contain text on formula calculation
- add snapshots

* Add 2nd column to Methodology page

- add LowIncome component
- add USWDS styles on download component
- add margin-top styles to global
- enable all font-sizes to theme file

* Add Categories to Methodology page

- create CategoryCard component
- create Categories component
- add snapshots

* Update datasets

- update styling to match mock
- add additional indicators
- remove additional indicators
- update snapshots

* Add links to categories to datasets

- update snapshots

* Remove additional indicator test as they now N/A

* ensure each DOM ID is unique for a11y

- update snapshots

* Add Category heading for a11y

- removes ScoreSteps tests
- comment out ScoreStep component
- update snapshots
- cypress passes all a11y

* Update to methodology copy

- based on PDF and spreadsheet and Living Copy
-updates snapshots

* Add comments around using IF, AND, ELSE constants

- make indicator constant names more explicit

* Update copy based on living doc

- update snapshots
2021-12-09 10:42:37 -08:00
Saran Ahluwalia
2cc1fa6079 Merge branch 'main' of https://github.com/saran-ahluwalia/justice40-tool into main 2021-12-09 12:01:28 -05:00
Shelby Switzer
123fbf6254
Remove "infrastucture" directory (#996)
We originally used the approach in the infrastructure directory when we
thought we would be using Amazon Lambda for different parts of our
deployment pipeline. We have since then moved to using Github Actions
and no longer need this code, and keeping it in `main` has caused
confusion for onboarding new folks. This commit removes the directory
(although this will still be around in version control so we can always
view it or bring it back in the future if we want to).

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-12-09 11:25:19 -05:00
Lucas Merrill Brown
f91de51a75
Issue 1007 continued: Re-ordering fields for clarity (#1014) 2021-12-09 11:07:37 -05:00
Vim
1f5742bc5b
Modify copy on About and Explore Tool pages (#974)
* Modify copy

- update snapshots

* Fix failing cypress tests

- commented out lat/lng in URL test as it is intermittent

* Removes test on EO link

* Update copy for launch

- adds 404 page verbiage
- fixes survey button to be bottom sticky

* Update copy
2021-12-08 10:15:31 -08:00
Saran Ahluwalia
df675b231a
Update HUD Housing Burden (#1005)
* update paths

* size information added in extract function

Co-authored-by: Saran Ahluwalia <sarahluw@cisco.com>
2021-12-08 11:57:52 -05:00
Lucas Merrill Brown
524b822651
Issue 1007: remove some recent additions to Definition L (#1008) 2021-12-08 10:26:52 -05:00
Lucas Merrill Brown
1a61026ecf
Issue 967: Calculate urban/rural percentiles (#1006) 2021-12-07 17:28:36 -05:00
Lucas Merrill Brown
780d1126ff
Creating notebook to compare two score files for differences (#984) 2021-12-07 16:20:41 -05:00
Saran Ahluwalia
e30b32fe07
Merge branch 'usds:main' into main 2021-12-07 16:01:52 -05:00
Vim
9d28f5a4c4
Add a case if data is not present in tiles (#998)
- will check each property and display N/A if null
- update snapshot
2021-12-07 09:52:50 -08:00
Lucas Merrill Brown
5706837956
Add NATA cancer risk and respiratory hazard to definition L (#1001) 2021-12-07 12:45:45 -05:00
Lucas Merrill Brown
5a6d6d8557
Issue 954: Add various data sources from Child Opportunity Index (#986)
* Adds four fields:
    * Summer days above 90F
    * Percent low access to healthy food
    * Percent impenetrable surface areas
    * Low third grade reading proficiency

* Each of these four gets added into Definition L in various factors.

* Additionally, I add college attendance fields to the ETL for Census ACS.

* This PR also introduces the notion of "reverse percentiles", relevant to ticket #970.
2021-12-07 11:33:49 -05:00
Vim
df564658a5
Add 4 additional territory buttons (#956)
* Add 4 additional territory buttons

* Fix bug where territories fires multiple times

- move territory handler from J40Map to component

* Update SVGs for all territory buttons
2021-12-06 19:58:04 -08:00
Shelby Switzer
819f3ff478
Update etl constants to use score field_names and put strings around tract IDs in downloadable CSV (#985)
* Update etl constants to use score field_names

Put strings around tract IDs in downloadable CSV

No need to modify the xls file creation because the string type is
preserved and interpreted correctly in Excel already.

One note is that this does cause the ID in the CSV to be have quotes
around it, which might be annoying. Maybe we don't want this behavior?

* Update based on PR feedback and lint needs

* Change field we're using in downloadable

This reverts the downloadable csv field list to use
MEDIAN_INCOME_AS_PERCENT_OF_STATE_FIELD instead of
MEDIAN_INCOME_AS_PERCENT_OF_AMI_FIELD in order to get the test to pass.
The point of this PR is a refactor (and a small change to the CSV
quotations), not to change the output. That will be a different PR
later.

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-12-06 13:17:17 -05:00
Saran Ahluwalia
e308f0934b
Merge branch 'usds:main' into main 2021-12-05 20:12:20 -05:00
Jorge Escobar
bbc4a4dec0
Fix bug that dropped rows from island territories (#981)
Co-authored-by: lucasmbrown-usds <lucas.m.brown@omb.eop.gov>
2021-12-05 20:00:53 -05:00
Saran Ahluwalia
07ee4165b4
New Create indicators for all thresholds exceeded by a community in Definition L (#980)
* added fieldnames

* todo pollution, water, health & workforce

* workforce

* work in progress

* add utility function to replace duplicate summation logic

* move fpl series into add columns - run black .

* added revisions - still a wip

* added fieldnames

* todo pollution, water, health & workforce

* workforce

* work in progress

* add utility function to replace duplicate summation logic

* move fpl series into add columns - run black .

* added revisions - still a wip

* revise workforce and water

* revise housing and add incremental counter for workforce

* last PR nit

* revise workforce

* more PR feedback in score l

* more PR feedback in score l

* more PR feedback in score l

* addd FPL_SERIES and update references in score 1

* fix bugs

* reparameterize function

* final revisions in fieldnames

* make computations all consistent so we assing with FPL_200_SERIES

* fieldnames refactor after clarification and PR review

* finalize

* finalize with no typos

* fix length

* added median income var

* swap thresholds

* remove iteration

* remove stray '

* address flake 8

* added f string formatting and fixed typos

* added f string formatting and fixed typos

* move up

* remove dupes

* reformat

* fix bugs

* fix bugs

* initialize

Co-authored-by: Saran Ahluwalia <sarahluw@cisco.com>
2021-12-05 19:51:19 -05:00
Lucas Merrill Brown
d705a8244c
adding demographics information to ETL source data (#982) 2021-12-05 17:56:45 -05:00
Saran Ahluwalia
f1df3d3c34
Merge branch 'usds:main' into main 2021-12-05 09:24:42 -05:00
Saran Ahluwalia
610343a1e3
DoE fix to address #975 (#979)
* Fixed input field name

Co-authored-by: Saran Ahluwalia <sarahluw@cisco.com>
2021-12-05 08:26:39 -05:00