Skip to content

Commit

Permalink
new pvlive url (#139)
Browse files Browse the repository at this point in the history
Co-authored-by: devsjc <[email protected]>
  • Loading branch information
peterdudfield and devsjc authored Dec 6, 2024
1 parent 1616cdd commit 5ba02bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloud_archives/pv/passiv/ss_rawdata_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ProxyDict(TypedDict):

class SSRawDataAPI:
def __init__(self, user_id: Union[int, str], api_key: str, proxies: Optional[ProxyDict] = None):
self.base_url = "https://api.solar.sheffield.ac.uk/rawdata/api/v4"
self.base_url = "https://api.pvlive.uk/rawdata/api/v4"
# self.base_url = "https://staging.solar.shef.ac.uk/rawdata/api/v4"
self.max_range = datetime.timedelta(days=1)
self.proxies = proxies
Expand Down
2 changes: 1 addition & 1 deletion tests/cloud_archives/pv/test_passiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


def test_get_daily_passiv_data():
start_date = datetime(2022, 1, 1, tzinfo=timezone.utc)
start_date = datetime(2024, 12, 5, tzinfo=timezone.utc)
get_monthly_passiv_data(start_date, upload_to_hf=False, overwrite=True)

0 comments on commit 5ba02bc

Please sign in to comment.