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

feat: more functionality for MockAnalyze objects #71

Merged
merged 1 commit into from
Feb 5, 2020
Merged
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
25 changes: 23 additions & 2 deletions postreise/tests/mock_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,41 @@


class MockAnalyze:
def __init__(self, grid_attrs, demand=None, lmp=None, pg=None, solar=None,
wind=None):
def __init__(self, grid_attrs, congl=None, congu=None, ct=None,
demand=None, lmp=None, pg=None, solar=None, wind=None):
"""Constructor.

:param dict grid_attrs: fields to be added to grid.
:param pandas.DataFrame pg: dummy pg
"""
self.grid = MockGrid(grid_attrs)
self.congl = congl
self.congu = congu
self.ct = ct
self.demand = demand
self.lmp = lmp
self.pg = pg
self.solar = solar
self.wind = wind

def get_congl(self):
"""Get congl.
:return: (pandas.DataFrame) -- dummy congl
"""
return self.congl

def get_congu(self):
"""Get congu.
:return: (pandas.DataFrame) -- dummy congu
"""
return self.congu

def get_ct(self):
"""Get ct.
:return: (Dict) -- dummy ct
"""
return self.ct

def get_demand(self, original=None):
"""Get demand.
:return: (pandas.DataFrame) -- dummy demand
Expand Down