Browse Source

Fixes #1: Exception duing simulation

Bastien Sevajol 7 years ago
parent
commit
0d96fb4bc7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      sandbox/engulf/behaviour.py

+ 2 - 1
sandbox/engulf/behaviour.py View File

113
         for position in data:
113
         for position in data:
114
             if position not in list(self.simulation.subjects.grass_xyz.keys()):
114
             if position not in list(self.simulation.subjects.grass_xyz.keys()):
115
                 new_grass = Grass(
115
                 new_grass = Grass(
116
-                    self.simulation,
116
+                    config=self.config,
117
+                    simulation=self.simulation,
117
                     position=position,
118
                     position=position,
118
                     density=20,
119
                     density=20,
119
                 )
120
                 )