-
Notifications
You must be signed in to change notification settings - Fork 0
Add simple Hugo configuration for static PINVAL generation #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
84a5d7b
fec7a92
fcfc90c
485b778
edd80ca
f0f7191
eed6430
42f1ac8
31587f8
a952b49
fb545b7
ceff3bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,7 @@ cache/ | |
| *.xlsx | ||
| *.xlsm | ||
| *.html | ||
| !hugo/layouts/**/*.html | ||
| *.rmarkdown | ||
|
|
||
| # Ignore scratch documents | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| public/ | ||
| .hugo_build.lock |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| baseURL = 'http://example.org/' | ||
| languageCode = 'en-us' | ||
| title = 'PINVAL' | ||
| disableKinds = ['sitemap', 'rss'] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,278 @@ | ||
| --- | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an example of the Markdown frontmatter that Hugo needs for a multi-card PIN in order to render a PINVAL report. The higher-level vision here is that eventually we'll have a GitHub workflow (#37) that runs a Python script (#38) that queries the PINVAL tables in Athena (ccao-data/data-architecture#793) and generates one of these Markdown files in the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense to me. It's a sort of params file through which our html layout dynamically generates the static webpage html file. |
||
| layout: report | ||
| title: "Cook County Assessor's Model Value Report (Experimental)" | ||
| assessment_year: "2025" | ||
| final_model_run_date: "February 11, 2025" | ||
| pin: "05204070690000" | ||
| pin_pretty: "14-33-100-024-0000" | ||
| pred_pin_final_fmv_round: "$415,000" | ||
| cards: | ||
| - card_num: 1 | ||
| location: | ||
| property_address: "123 Main St" | ||
| municipality: "Chicago" | ||
| township: "Jefferson" | ||
| meta_nbhd_code: "10022" | ||
| loc_school_elementary_district_name: "City Elementary School District 61" | ||
| loc_school_secondary_district_name: "City High School District 217" | ||
| loc_latitude: 41.978876 | ||
| loc_longitude: -87.659015 | ||
| chars: | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1925 | ||
| char_bldg_sf: "2,800" | ||
| char_land_sf: "4,950" | ||
| char_beds: 6 | ||
| char_fbath: 2 | ||
| char_hbath: 0 | ||
| has_subject_pin_sale: true | ||
| pred_card_initial_fmv: "$415,000" | ||
| pred_card_initial_fmv_per_sqft: "$148" | ||
| comps: | ||
| - comp_num: 1 | ||
| pin: "14291230160000" | ||
| pin_pretty: "14-29-123-016-0000" | ||
| is_subject_pin_sale: false | ||
| sale_price: "$390,000" | ||
| sale_price_short: "$390K" | ||
| sale_price_per_sq_ft: "$146" | ||
| sale_date: "Dec 2023" | ||
| document_num: "2335112098" | ||
| property_address: "234 Oak St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1920 | ||
| char_bldg_sf: "2,675" | ||
| char_land_sf: "4,125" | ||
| char_beds: 6 | ||
| char_fbath: 2 | ||
| char_hbath: 0 | ||
| meta_nbhd_code: "10022" | ||
| loc_latitude: 41.982014 | ||
| loc_longitude: -87.666812 | ||
| - comp_num: 2 | ||
| pin: "14331000240000" | ||
| pin_pretty: "14-33-100-024-0000" | ||
| is_subject_pin_sale: true | ||
| sale_price: "$350,000" | ||
| sale_price_short: "$350K" | ||
| sale_price_per_sq_ft: "$125" | ||
| sale_date: "Apr 2022" | ||
| document_num: "2211234567" | ||
| property_address: "123 Main St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1925 | ||
| char_bldg_sf: "2,800" | ||
| char_land_sf: "4,950" | ||
| char_beds: 6 | ||
| char_fbath: 2 | ||
| char_hbath: 0 | ||
| meta_nbhd_code: "10022" | ||
| loc_latitude: 41.978876 | ||
| loc_longitude: -87.659015 | ||
| - comp_num: 3 | ||
| pin: "14292340250000" | ||
| pin_pretty: "14-29-234-025-0000" | ||
| is_subject_pin_sale: false | ||
| sale_price: "$425,000" | ||
| sale_price_short: "$425K" | ||
| sale_price_per_sq_ft: "$155" | ||
| sale_date: "Nov 2023" | ||
| document_num: "2332198765" | ||
| property_address: "345 Pine St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1923 | ||
| char_bldg_sf: "2,740" | ||
| char_land_sf: "3,900" | ||
| char_beds: 5 | ||
| char_fbath: 2 | ||
| char_hbath: 1 | ||
| meta_nbhd_code: "10022" | ||
| loc_latitude: 41.979654 | ||
| loc_longitude: -87.661234 | ||
| - comp_num: 4 | ||
| pin: "14324750890000" | ||
| pin_pretty: "14-32-475-089-0000" | ||
| is_subject_pin_sale: false | ||
| sale_price: "$405,000" | ||
| sale_price_short: "$405K" | ||
| sale_price_per_sq_ft: "$149" | ||
| sale_date: "Sep 2023" | ||
| document_num: "2326543217" | ||
| property_address: "456 Elm St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1926 | ||
| char_bldg_sf: "2,720" | ||
| char_land_sf: "4,100" | ||
| char_beds: 6 | ||
| char_fbath: 3 | ||
| char_hbath: 0 | ||
| meta_nbhd_code: "10023" | ||
| loc_latitude: 41.975432 | ||
| loc_longitude: -87.658123 | ||
| - comp_num: 5 | ||
| pin: "14295670340000" | ||
| pin_pretty: "14-29-567-034-0000" | ||
| is_subject_pin_sale: false | ||
| sale_price: "$380,000" | ||
| sale_price_short: "$380K" | ||
| sale_price_per_sq_ft: "$139" | ||
| sale_date: "Oct 2023" | ||
| document_num: "2329876543" | ||
| property_address: "567 Maple St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1918 | ||
| char_bldg_sf: "2,730" | ||
| char_land_sf: "3,950" | ||
| char_beds: 5 | ||
| char_fbath: 2 | ||
| char_hbath: 1 | ||
| meta_nbhd_code: "10022" | ||
| loc_latitude: 41.981243 | ||
| loc_longitude: -87.664532 | ||
| comp_summary: | ||
| sale_year_range_prefix: "between" | ||
| sale_year_range: "2022 and 2023" | ||
| avg_sale_price: "$390,000" | ||
| avg_price_per_sqft: "$143" | ||
| predictors: | ||
| - "char_yrblt" | ||
| - "char_bldg_sf" | ||
| - "char_land_sf" | ||
| - "char_beds" | ||
| - "char_fbath" | ||
| - "char_hbath" | ||
| - card_num: 2 | ||
| location: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So our new multi-card strategy for comps spits outs the same comps for all cards within 2-3 card properties. I was going to suggest some sort of condensed data structure here, but as I started typing this I realized we will have different comps for 4+ multi-card PINs. So I think a bit of duplication in the 2-3 card case is ideal here
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would be open to a condensed data structure! I didn't spend too much time thinking about the 2-3 card case, which I'm saving for #31. |
||
| property_address: "123 Main St" | ||
| municipality: "Chicago" | ||
| township: "Jefferson" | ||
| meta_nbhd_code: "10022" | ||
| loc_school_elementary_district_name: "City Elementary School District 61" | ||
| loc_school_secondary_district_name: "City High School District 217" | ||
| loc_latitude: 41.978876 | ||
| loc_longitude: -87.659015 | ||
| chars: | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1925 | ||
| char_bldg_sf: "2,800" | ||
| char_land_sf: "4,950" | ||
| char_beds: 6 | ||
| char_fbath: 2 | ||
| char_hbath: 0 | ||
| has_subject_pin_sale: true | ||
| pred_card_initial_fmv: "$415,000" | ||
| pred_card_initial_fmv_per_sqft: "$148" | ||
| comps: | ||
| - comp_num: 1 | ||
| pin: "14291230160000" | ||
| pin_pretty: "14-29-123-016-0000" | ||
| is_subject_pin_sale: false | ||
| sale_price: "$390,000" | ||
| sale_price_short: "$390K" | ||
| sale_price_per_sq_ft: "$146" | ||
| sale_date: "Dec 2023" | ||
| document_num: "2335112098" | ||
| property_address: "234 Oak St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1920 | ||
| char_bldg_sf: "2,675" | ||
| char_land_sf: "4,125" | ||
| char_beds: 6 | ||
| char_fbath: 2 | ||
| char_hbath: 0 | ||
| meta_nbhd_code: "10022" | ||
| loc_latitude: 41.982014 | ||
| loc_longitude: -87.666812 | ||
| - comp_num: 2 | ||
| pin: "14331000240000" | ||
| pin_pretty: "14-33-100-024-0000" | ||
| is_subject_pin_sale: true | ||
| sale_price: "$350,000" | ||
| sale_price_short: "$350K" | ||
| sale_price_per_sq_ft: "$125" | ||
| sale_date: "Apr 2022" | ||
| document_num: "2211234567" | ||
| property_address: "123 Main St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1925 | ||
| char_bldg_sf: "2,800" | ||
| char_land_sf: "4,950" | ||
| char_beds: 6 | ||
| char_fbath: 2 | ||
| char_hbath: 0 | ||
| meta_nbhd_code: "10022" | ||
| loc_latitude: 41.978876 | ||
| loc_longitude: -87.659015 | ||
| - comp_num: 3 | ||
| pin: "14292340250000" | ||
| pin_pretty: "14-29-234-025-0000" | ||
| is_subject_pin_sale: false | ||
| sale_price: "$425,000" | ||
| sale_price_short: "$425K" | ||
| sale_price_per_sq_ft: "$155" | ||
| sale_date: "Nov 2023" | ||
| document_num: "2332198765" | ||
| property_address: "345 Pine St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1923 | ||
| char_bldg_sf: "2,740" | ||
| char_land_sf: "3,900" | ||
| char_beds: 5 | ||
| char_fbath: 2 | ||
| char_hbath: 1 | ||
| meta_nbhd_code: "10022" | ||
| loc_latitude: 41.979654 | ||
| loc_longitude: -87.661234 | ||
| - comp_num: 4 | ||
| pin: "14324750890000" | ||
| pin_pretty: "14-32-475-089-0000" | ||
| is_subject_pin_sale: false | ||
| sale_price: "$405,000" | ||
| sale_price_short: "$405K" | ||
| sale_price_per_sq_ft: "$149" | ||
| sale_date: "Sep 2023" | ||
| document_num: "2326543217" | ||
| property_address: "456 Elm St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1926 | ||
| char_bldg_sf: "2,720" | ||
| char_land_sf: "4,100" | ||
| char_beds: 6 | ||
| char_fbath: 3 | ||
| char_hbath: 0 | ||
| meta_nbhd_code: "10023" | ||
| loc_latitude: 41.975432 | ||
| loc_longitude: -87.658123 | ||
| - comp_num: 5 | ||
| pin: "14295670340000" | ||
| pin_pretty: "14-29-567-034-0000" | ||
| is_subject_pin_sale: false | ||
| sale_price: "$380,000" | ||
| sale_price_short: "$380K" | ||
| sale_price_per_sq_ft: "$139" | ||
| sale_date: "Oct 2023" | ||
| document_num: "2329876543" | ||
| property_address: "567 Maple St" | ||
| char_class: "203 - Two to six apartments, over 62 years" | ||
| char_yrblt: 1918 | ||
| char_bldg_sf: "2,730" | ||
| char_land_sf: "3,950" | ||
| char_beds: 5 | ||
| char_fbath: 2 | ||
| char_hbath: 1 | ||
| meta_nbhd_code: "10022" | ||
| loc_latitude: 41.981243 | ||
| loc_longitude: -87.664532 | ||
| comp_summary: | ||
| sale_year_range_prefix: "between" | ||
| sale_year_range: "2022 and 2023" | ||
| avg_sale_price: "$390,000" | ||
| avg_price_per_sqft: "$143" | ||
| predictors: | ||
| - "char_yrblt" | ||
| - "char_bldg_sf" | ||
| - "char_land_sf" | ||
| - "char_beds" | ||
| - "char_fbath" | ||
| - "char_hbath" | ||
| --- | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just Hugo boilerplate. It's not really important at this point.