Skip to content
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

Parse design temps from PDF to CSV #81

Merged
merged 4 commits into from
Oct 4, 2023

Conversation

axiomizer
Copy link
Collaborator

Some code to parse the Energy Star PDF containing design temperatures.

See option 3 in Steve Breit's document Design Temperature for HEAT

"Exhibit 1: Cooling and Heating Design Temperatures by State and County"
)
content = content.split(table_title)[1]
pattern = r"[ ]+ENERGY STAR Certified Homes\nCounty-Level Design Temperature Reference Guide"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming the space characters come from the text representation of the Energy Star graphic. Maybe we shouldn't assume it will always be spaces, but is .*?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little nervous that .* will accidentally match some useful data that we need to process

design_temp/clean.py Outdated Show resolved Hide resolved
design_temp/clean.py Outdated Show resolved Hide resolved
design_temp/clean.py Outdated Show resolved Hide resolved
@axiomizer axiomizer merged commit 194817f into codeforboston:main Oct 4, 2023
4 checks passed
@axiomizer axiomizer deleted the design-temp branch October 4, 2023 23:40
AdamFinkle pushed a commit to AdamFinkle/home-energy-analysis-tool that referenced this pull request May 22, 2024
Parse design temps from PDF to CSV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants