Skip to content

Commit

Permalink
add id prop to component
Browse files Browse the repository at this point in the history
  • Loading branch information
nesnoj committed Sep 4, 2017
1 parent 33a3f31 commit 630deea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions edisgo/grid/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ def __init__(self, **kwargs):
self._geom = kwargs.get('geom', None)
self._grid = kwargs.get('grid', None)

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

@property
def geom(self):
""":shapely:`Shapely Point object<points>` or
Expand Down

0 comments on commit 630deea

Please sign in to comment.