Skip to content

Commit

Permalink
useful list of entityIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Jan 23, 2018
1 parent 31473f4 commit f982bd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pyff/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def update(self, t, tid=None, ts=None, merge_strategy=None):
def reset(self):
raise NotImplementedError()

def entity_ids(self):
return set(e.get('entityID') for e in self.lookup('entities'))


class MemoryStore(StoreBase):
def __init__(self):
Expand Down

0 comments on commit f982bd7

Please sign in to comment.