PyPSA / pypsa-usa

PyPSA-USA: An Open-Source Energy System Optimization Model for the United States
https://pypsa-usa.readthedocs.io
MIT License
35 stars 14 forks source link

Retrieving EULP for DC #324

Open trevorb1 opened 1 month ago

trevorb1 commented 1 month ago

Checklist

Issue exisits on what branch

Develop

The Issue

Residential load profiles are not downloaded for DC. Since commercial profiles come through fine, residential should as well; so im not sure whats up with that.

Steps To Reproduce

Sub this into retrieve_eulp.py:

if "snakemake" not in globals():
    from _helpers import mock_snakemake
     snakemake = mock_snakemake("retrieve_res_eulp", state="VI")
configure_logging(snakemake)

Expected Behavior

No response

Error Message

Traceback (most recent call last):
  File "/home/trevor/repos/pypsa-usa/workflow/scripts/retrieve_eulp.py", line 159, in <module>
    oedi.download_data(state, buildings, save_dir)
  File "/home/trevor/repos/pypsa-usa/workflow/scripts/retrieve_eulp.py", line 140, in download_data
    self._request_data(html, save_path)
  File "/home/trevor/repos/pypsa-usa/workflow/scripts/retrieve_eulp.py", line 102, in _request_data
    raise requests.ConnectionError(f"Status code {response.status_code}")
requests.exceptions.ConnectionError: Status code 404

Anything else?

No response