Skip to content

Commit

Permalink
make use of the unified api interface with nordics
Browse files Browse the repository at this point in the history
switch to official par run client for nordics
  • Loading branch information
fboerman committed Jan 18, 2024
1 parent cc40774 commit 5acd531
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 57 deletions.
2 changes: 1 addition & 1 deletion jao/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .jao import JaoPublicationToolClient, JaoPublicationToolPandasClient
from .jao import JaoPublicationToolClient, JaoPublicationToolPandasClient, JaoPublicationToolPandasNordics
from .webservice import JaoAPIClient
1 change: 0 additions & 1 deletion jao/beta/__init__.py

This file was deleted.

53 changes: 0 additions & 53 deletions jao/beta/jao.py

This file was deleted.

25 changes: 23 additions & 2 deletions jao/jao.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .util import to_snake_case

__title__ = "jao-py"
__version__ = "0.4.0"
__version__ = "0.4.1"
__author__ = "Frank Boerman"
__license__ = "MIT"

Expand Down Expand Up @@ -200,4 +200,25 @@ def query_validations(self, d_from: pd.Timestamp, d_to: pd.Timestamp) -> pd.Data
def query_status(self, d_from: pd.Timestamp, d_to: pd.Timestamp) -> pd.DataFrame:
return parse_base_output(
super().query_status(d_from=d_from, d_to=d_to)
).drop(columns=['lastModifiedOn'])
).drop(columns=['lastModifiedOn'])


class JaoPublicationToolPandasNordics(JaoPublicationToolPandasClient):
BASEURL = "https://parallelrun-publicationtool.jao.eu/nordic/api/data/"

# not implemented means that jao does not provide this endpoint for the nordics

def query_lta(self, d_from: pd.Timestamp, d_to: pd.Timestamp):
raise NotImplementedError

def query_status(self, d_from: pd.Timestamp, d_to: pd.Timestamp):
raise NotImplementedError

def query_active_constraints(self, day: pd.Timestamp):
raise NotImplementedError

def query_allocationconstraint(self, d_from: pd.Timestamp, d_to: pd.Timestamp):
raise NotImplementedError

def query_net_position(self, day: pd.Timestamp):
raise NotImplementedError

0 comments on commit 5acd531

Please sign in to comment.