-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from traversaro/fixnumpy124
Fix compatibility with numpy 1.24
- Loading branch information
Showing
8 changed files
with
107 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ channel_targets: | |
docker_image: | ||
- quay.io/condaforge/linux-anvil-cos7-x86_64 | ||
numpy: | ||
- '1.19' | ||
- '1.21' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/urdfpy/urdf.py b/urdfpy/urdf.py | ||
index 14b0216..b5245e7 100644 | ||
--- a/urdfpy/urdf.py | ||
+++ b/urdfpy/urdf.py | ||
@@ -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') | ||
@@ -2344,7 +2344,7 @@ def get_child_pose(self, cfg=None): | ||
raise ValueError('Invalid configuration') | ||
|
||
def get_child_poses(self, cfg, n_cfgs): | ||
- """Computes the child pose relative to a parent pose for a given set of | ||
+ """Computes the child pose relative to a parent pose for a given set of | ||
configuration values. | ||
|
||
Parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters