vkoves / electrify-chicago

Learn about Chicago's most polluting buildings, and what they can do to clean up their act!
http://electrifychicago.net
9 stars 5 forks source link

United Center (& Likely Other Buildings) Show in Search But Have No Stats #53

Closed vkoves closed 7 months ago

vkoves commented 9 months ago

image

vkoves commented 9 months ago

Looking at a data portal search for United Center it looks like the United Center did submit in 2019, and has data, so I don't know why this isn't rendering.

alexkcode commented 9 months ago

United Center 2019 data confirmed to be present in building-benchmarks.csv file produced by process-data.py as well.

vkoves commented 9 months ago

It looks like the issue is related to the fact that the front-end wants to pull in property stats (e.g. Avg. Electricity Use for Indoor Arenas) but the stats don't exist for older buildings:

Screenshot from 2023-09-26 21-23-35 Screenshot from 2023-09-26 21-23-32

The fix is that if we're showing archival data (not the current year) we should not try to render property type stats. Even if the property type still exists, the stats are all for the latest year (2021) and so wouldn't be useful. The Art Institute works as an archive example, but we should list that medians are for 2021.

vkoves commented 7 months ago

Resolved with PR #59!