Handle scalar `timeresp` in `solve_flat_ocp` by roryyorke · Pull Request #1111 · python-control/python-control

@roryyorke

@roryyorke

@roryyorke

@coveralls

Coverage Status

coverage: 94.659% (+0.01%) from 94.649%
when pulling a05b9d5 on roryyorke:gh1110-solve_flat_ocp
into ebff125 on python-control:main.

bnavigator

Comment on lines +473 to +475

assert np.max(abs(r1.x-r2.x)) == 0
assert np.max(abs(r1.u-r2.u)) == 0
assert np.max(abs(r1.y-r2.y)) == 0

Choose a reason for hiding this comment

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

Is this a fancy way to say r1.x == r2.x while employing some opaque shape casting?

Choose a reason for hiding this comment

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

just laziness! fixed.

@roryyorke

@roryyorke

the failures are during install optional dependencies phase, before tests are run, and must be unrelated.

@murrayrm

Reran the tests and that fixed the problem.