transition relation with max calculation

This commit is contained in:
Artur Meski
2017-08-20 19:57:23 +01:00
parent 2b7d5e77dd
commit ce6a1f6f19
2 changed files with 50 additions and 43 deletions

View File

@@ -64,7 +64,8 @@ class ReactionSystemWithConcentrationsParam(ReactionSystem):
def get_state_ids(self, state):
"""Returns entities of the given state without levels"""
return [e for e,c in state]
# return [e for e,c in state]
return [self.get_entity_id(e) for e in state]
def has_non_zero_concentration(self, elem):
if elem[1] < 1: