Skip to content

Commit

Permalink
adjusted watttime signal
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-steinke committed May 26, 2024
1 parent 6fefead commit 98a6fe2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vessim/sil.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,15 @@ def __init__(self, username: str, password: str):

def at(
self,
dt: DatetimeLike,
dt: Optional[DatetimeLike] = None,
region: Optional[str] = None,
signal_type: str = "co2_moer",
**kwargs,
):
if region is None:
raise ValueError("Region needs to be specified.")
if dt is None:
raise ValueError("dt needs to be specified.")
dt = pd.to_datetime(dt)
rsp = self._request(
"/historical",
Expand Down

0 comments on commit 98a6fe2

Please sign in to comment.