Browse Source

Fixes #1: Exception duing simulation

Bastien Sevajol 7 years ago
parent
commit
9e9061ada7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      sandbox/engulf/subject.py

+ 2 - 2
sandbox/engulf/subject.py View File

@@ -47,9 +47,9 @@ class Grass(XYZSubjectMixin, Subject):
47 47
         GrowUp,
48 48
     ]
49 49
 
50
-    def __init__(self, *args, density=100.0, **kwargs):
50
+    def __init__(self, *args, **kwargs):
51
+        self._density = kwargs.pop('density', 100.0)
51 52
         super().__init__(*args, **kwargs)
52
-        self._density = density
53 53
 
54 54
     @property
55 55
     def density(self) -> float: