Skip to content

Commit

Permalink
Fix JP production
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Aug 15, 2018
1 parent 3cc8be4 commit 4ff980d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parsers/JP.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def fetch_production(zone_key='JP-TK', target_datetime=None,
'JP-SK':['JP-KN', 'JP-CG'],
'JP-CG':['JP-KN', 'JP-SK', 'JP-KY']
}
df = fetch_consumption(zone_key, target_datetime)
df = fetch_consumption_df(zone_key, target_datetime)
df['imports'] = 0
for zone in exch_map[zone_key]:
df2 = occtonet.fetch_exchange(zone_key, zone, target_datetime)
Expand Down Expand Up @@ -66,7 +66,7 @@ def fetch_production(zone_key='JP-TK', target_datetime=None,
for i in range(df.shape[0]):
data = {
'zoneKey': zone_key,
'datetime': df.loc[i, 'datetime'],
'datetime': df.loc[i, 'datetime'].to_pydatetime(),
'production': {
'biomass': None,
'coal': None,
Expand All @@ -86,7 +86,7 @@ def fetch_production(zone_key='JP-TK', target_datetime=None,
return datalist


def fetch_consumption(zone_key='JP-TK', target_datetime=None,
def fetch_consumption_df(zone_key='JP-TK', target_datetime=None,
logger=logging.getLogger(__name__)):
"""
Returns the consumption for an area as a pandas DataFrame
Expand Down

0 comments on commit 4ff980d

Please sign in to comment.