The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings EMULSION public releases
Summary Activity Surveys SCM Listes Sympa

SCM Repository

index f2b66ec..e0790ff 100644 (file)
@@ -257,10 +257,13 @@ class GroupManager(StructuredView):
         # iterate over all compartments
         for name, compart in self._content.items():
             # compute the current population of each source compartment
-            current_pop = compart.get_information('population')
-            # no action if current pop <= 0
-            if current_pop <= 0:
+            current_pop = max(compart.get_information('population'), 0)
+            # no action if "fake" compartment
+            if set(name) == {None}:
                 continue
+            # # no action if current pop <= 0
+            # if current_pop <= 0:
+            #     continue
             # compute all possible transitions from the current state
             current_state = compart.get_information(self.state_machine.machine_name)
             # get the possible transitions from the current state