singularity-energy / open-grid-emissions

Tools for producing high-quality hourly generation and emissions data for U.S. electric grids
MIT License
75 stars 5 forks source link

Remove newline characters in PUDL version checking #174

Closed miloknowles closed 2 years ago

miloknowles commented 2 years ago

Proposed fix:

# File: download_data.py
# Relevant function: download_pudl_data(zenodo_url):

# Current code:
existing_version = f.readlines()[0]

# Removing newline characters fixed the version comparison for me:
existing_version = f.readlines()[0].replace('\n', '')