Skip to content

Commit

Permalink
feat: create an abstract grid class for model enclosed in CSV files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rouille committed Jun 3, 2022
1 parent 2577aac commit 3a014f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions powersimdata/input/abstract_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def __init__(self):
self.branch = pd.DataFrame()
self.storage = storage_template()


class AbstractGridCSV(AbstractGrid):
"""Grid Builder."""

def _set_data_loc(self, top_dirname):
"""Sets data location.
Expand Down
4 changes: 2 additions & 2 deletions powersimdata/network/hifld/model.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os

from powersimdata.input.abstract_grid import AbstractGrid
from powersimdata.input.abstract_grid import AbstractGridCSV
from powersimdata.network.constants.storage import get_storage


class HIFLD(AbstractGrid):
class HIFLD(AbstractGridCSV):
"""HIFLD network.
:param str/iterable interconnect: interconnect name(s).
Expand Down
4 changes: 2 additions & 2 deletions powersimdata/network/usa_tamu/model.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os

from powersimdata.input.abstract_grid import AbstractGrid
from powersimdata.input.abstract_grid import AbstractGridCSV
from powersimdata.network.constants.storage import get_storage


class TAMU(AbstractGrid):
class TAMU(AbstractGridCSV):
"""TAMU network.
:param str/iterable interconnect: interconnect name(s).
Expand Down

0 comments on commit 3a014f5

Please sign in to comment.