Skip to content

Fix: Numpy > 2 booleans are not understood by PySide6 QGraphpicsItem.setEnabled(). Cast to python boolean to fix.#15

Open
SaschaHornauer wants to merge 1 commit intoika-rwth-aachen:mainfrom
SaschaHornauer:feature/numpy2-fixes
Open

Fix: Numpy > 2 booleans are not understood by PySide6 QGraphpicsItem.setEnabled(). Cast to python boolean to fix.#15
SaschaHornauer wants to merge 1 commit intoika-rwth-aachen:mainfrom
SaschaHornauer:feature/numpy2-fixes

Conversation

@SaschaHornauer
Copy link

The current code will not open the calibration screen with Numpy > 2.0

The reason is:
File ".../ros2_calib/calibration_widget.py", line 279, in _setup_controls
self.rectify_checkbox.setEnabled(has_distortion)
TypeError: 'numpy.bool' object cannot be interpreted as an integer

As a fix I cast the has_distortion to a python bool and tested it.

…setEnabled(). Cast to python boolean to fix.
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.

1 participant