Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create abstract grid class for model enclosed in CSV files #627

Merged
merged 1 commit into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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