Skip to content

Commit

Permalink
np.float is depreciated due to newest numpy version, namely all np.fl…
Browse files Browse the repository at this point in the history
…oat occurencies --> switched to np.float64
  • Loading branch information
kvasios committed Apr 12, 2023
1 parent 5466842 commit 6b2f01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urdfpy/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ def color(self):
@color.setter
def color(self, value):
if value is not None:
value = np.asanyarray(value).astype(np.float)
value = np.asanyarray(value).astype(np.float64)
value = np.clip(value, 0.0, 1.0)
if value.shape != (4,):
raise ValueError('Color must be a (4,) float')
Expand Down

0 comments on commit 6b2f01f

Please sign in to comment.