File "/home/flow_control/obstacle_rotate.py", line 23, in
obstacle = move_obstacle(obstacle)
File "/home/flow_control/obstacle_rotate.py", line 6, in move_obstacle
new_geometry = obs.geometry.shifted([1. * DT, 0])
File "/usr/local/lib/python3.8/dist-packages/phi/geom/_geom.py", line 233, in shifted
return self.at(self.center + delta)
File "/usr/local/lib/python3.8/dist-packages/phi/geom/_transform.py", line 78, in at
return RotatedGeometry(self._geometry.at(center), self._angle)
File "/usr/local/lib/python3.8/dist-packages/phi/geom/_box.py", line 36, in at
return Cuboid(center, self._half_size)
File "/usr/local/lib/python3.8/dist-packages/phi/geom/_geom.py", line 357, in getattr
return BoundDim(self, name)
File "/usr/local/lib/python3.8/dist-packages/phi/math/magic.py", line 461, in init
raise AttributeError(f"'{type(self)}' object has no attribute '{name}'")
AttributeError: '<class 'phi.math.magic.BoundDim'>' object has no attribute '_half_size'
Thanks for fixing jit-compile in branch 2.3. Unfortunately object rotation does not work there. This program crashes in branch 2.3-develop
File "/home/flow_control/obstacle_rotate.py", line 23, in
obstacle = move_obstacle(obstacle)
File "/home/flow_control/obstacle_rotate.py", line 6, in move_obstacle
new_geometry = obs.geometry.shifted([1. * DT, 0])
File "/usr/local/lib/python3.8/dist-packages/phi/geom/_geom.py", line 233, in shifted
return self.at(self.center + delta)
File "/usr/local/lib/python3.8/dist-packages/phi/geom/_transform.py", line 78, in at
return RotatedGeometry(self._geometry.at(center), self._angle)
File "/usr/local/lib/python3.8/dist-packages/phi/geom/_box.py", line 36, in at
return Cuboid(center, self._half_size)
File "/usr/local/lib/python3.8/dist-packages/phi/geom/_geom.py", line 357, in getattr
return BoundDim(self, name)
File "/usr/local/lib/python3.8/dist-packages/phi/math/magic.py", line 461, in init
raise AttributeError(f"'{type(self)}' object has no attribute '{name}'")
AttributeError: '<class 'phi.math.magic.BoundDim'>' object has no attribute '_half_size'