Skip to content

Conversation

@EricCousineau-TRI
Copy link
Collaborator

@EricCousineau-TRI EricCousineau-TRI commented Jan 27, 2020

This is a patch that proactively incorporates the following upstream PR (not sure how long it will take to review):
pybind#2099

Towards RobotLocomotion/drake#12633


This change is Reviewable

Copy link
Collaborator Author

@EricCousineau-TRI EricCousineau-TRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+@jamiesnape for review, please.

Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on @jamiesnape)

@EricCousineau-TRI EricCousineau-TRI force-pushed the issue-2098-drake-issue12633 branch from 549f4ae to 0810381 Compare January 27, 2020 23:20
Copy link

@jamiesnape jamiesnape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@EricCousineau-TRI EricCousineau-TRI merged commit cac3edd into RobotLocomotion:drake Jan 28, 2020
@jamiesnape jamiesnape removed their assignment Jun 22, 2021
jwnimmer-tri pushed a commit that referenced this pull request Jun 29, 2022
When converting an array to an Eigen matrix, ignore the strides if any
dimension size is 0. If the array is empty, the strides aren't relevant,
and especially numpy ≥ 1.23 explicitly sets the strides to 0 in this
case. (See numpy commit dd5ab7b11520.)

Update tests to verify that this works, and continues to work. (This
test likely would have caught the behavior change with numpy 1.23.) This
expands on the tests added by #38, but also reverts the logic change
from that PR, as it is no longer needed, and brings the code closer in
line with upstream, since #38 was never pushed upstream.
rpoyner-tri added a commit to rpoyner-tri/pybind11 that referenced this pull request Feb 28, 2025
…tLocomotion#38)

Not wrong, but apparently no effect on our tests: same 15 failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants