Skip to content

Commit

Permalink
auto calculate interval based on timeseries frequency.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomastu committed Apr 10, 2020
1 parent 418bbce commit 547868c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ubc/calculator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass
from pandas import Timedelta

from ubc.rates.openei.api import RateSchedule
from ubc.rates.abstract import AbstractRate


DELTA_HOUR = Timedelta("1 hour")
Expand All @@ -12,7 +12,7 @@ class SingleSite:
"""Single-Site Bill Calculator
"""

schedule: RateSchedule
schedule: AbstractRate

def calculate_energy_charges(self, load):
"""
Expand Down
4 changes: 2 additions & 2 deletions ubc/rates/openei/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from dataclasses import dataclass, field
from urllib.parse import urljoin

from ubc.rates.abstract import AbstractRate
from ubc.rates.openei.schemas import URDBMeta, Energy, Demand, FlatDemand, Meter
from ..abstract import AbstractRate
from .schemas import URDBMeta, Energy, Demand, FlatDemand, Meter


root = "https://api.openei.org"
Expand Down

0 comments on commit 547868c

Please sign in to comment.