Skip to content

Commit

Permalink
missed import from prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieTaylor-TUOS committed Jan 26, 2021
1 parent 6df29d4 commit 1bd9b4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pvlive_api/pvlive.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import inspect
import pytz
import requests
from numpy import nan
from numpy import nan, int64
import pandas as pd

class PVLiveException(Exception):
Expand Down Expand Up @@ -45,8 +45,8 @@ def __init__(self, retries=3):
self.max_range = {"national": timedelta(days=365), "regional": timedelta(days=30)}
self.retries = retries
self.ggd_lookup = self._get_ggd_lookup()
self.gsp_ids = self.ggd_lookup.gsp_id.dropna().astype(np.int64).unique()
self.pes_ids = self.ggd_lookup.pes_id.dropna().astype(np.int64).unique()
self.gsp_ids = self.ggd_lookup.gsp_id.dropna().astype(int64).unique()
self.pes_ids = self.ggd_lookup.pes_id.dropna().astype(int64).unique()

def _get_ggd_lookup(self):
"""Fetch the GGD lookup from the API and convert to Pandas DataFrame."""
Expand Down

0 comments on commit 1bd9b4c

Please sign in to comment.