Skip to content

Commit

Permalink
Issue 95 (#112)
Browse files Browse the repository at this point in the history
* Copy over function for reading csv.
Callout to get states and counties.
Merge state and county list. moved merge logic to counties method, dont care much for reusability right now I dont think.
Make class models' properties strings due to dumb leading 0s from geo api.

* Some house cleaning

* Clean imports. Change output file path & wrtie row to file(maybe. who knows if itll work)

* add requests to project

* Just use the existing file instead of dictwriter.

* Fix headers, add newlines to output. Test for state exists

* add tenp to the output. duuhhh

* add generated file. restructure scripts

* readme

* Cleanup

* remove request dep from toml.

* Add dep install in readme.

* Wrap in name is main test. Use globals all around instead of returning in some funcs & not others
  • Loading branch information
thatoldplatitude authored May 22, 2024
1 parent 85c2b4b commit 7555497
Show file tree
Hide file tree
Showing 3 changed files with 3,232 additions and 0 deletions.
10 changes: 10 additions & 0 deletions design_temp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ and copied into pdf_rawcopy.txt. To allow copying, it was downloaded by using Go
the 'print' option and saving it as a PDF.

The script clean.py generates design_temp_by_county.csv from pdf_rawcopy.txt

## Validating county names
The design_temp_by_county.csv uses energystar county names,
But the geocode census API will return a combination and state & county ids.

This will require a dependency 'requests'. `python -m pip install requests`

Running `python validate_counties.py` will generate a full detailed output of
information needed to lookup counties returned by the census API along with their
design temps.
Loading

0 comments on commit 7555497

Please sign in to comment.