Skip to content

Commit

Permalink
add id property to grid class
Browse files Browse the repository at this point in the history
  • Loading branch information
nesnoj committed Aug 28, 2017
1 parent be1c111 commit 535777a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions edisgo/grid/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def connect_generators(self, generators):
"""
raise NotImplementedError

@property
def id(self):
"""Returns id of grid"""
return self._id

@property
def graph(self):
"""Provide access to the graph"""
Expand Down

0 comments on commit 535777a

Please sign in to comment.