-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
design_temp/clean.py
Outdated
"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" |
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.
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 .*
?
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.
I'm a little nervous that .*
will accidentally match some useful data that we need to process
Parse design temps from PDF to CSV
Some code to parse the Energy Star PDF containing design temperatures.
See option 3 in Steve Breit's document Design Temperature for HEAT