Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datatype typo: float_ not defined #2331

Open
kurisutsukato opened this issue Jan 23, 2023 · 1 comment
Open

datatype typo: float_ not defined #2331

kurisutsukato opened this issue Jan 23, 2023 · 1 comment

Comments

@kurisutsukato
Copy link

any OS
wxPython 4.2 from pypi
stock python 3.10

Description of the problem:

An unknown datatype appears in the source: float_ instead of float. This happened when changing the datatypes from N.<dtype> to <dtype> because of the deprecation of numpy datatypes float and int. Changing it to float fixes the problem.

The FloatCanvas demo runs nevertheless but behaves rarely.

Traceback below (click to expand)
Traceback (most recent call last):
  File "C:\Users\user\Downloads\wxPython-demo-4.2.0\demo\FloatCanvas.py", line 1866, in OnInit
    frame.DrawTest()
  File "C:\Users\user\Downloads\wxPython-demo-4.2.0\demo\FloatCanvas.py", line 421, in DrawTest
    Canvas.ZoomToBB()
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\wx\lib\floatcanvas\FloatCanvas.py", line 782, in ZoomToBB
    (BoundingBox[0,1]+BoundingBox[1,1])/2 ),float_)
NameError: name 'float_' is not defined. Did you mean: 'float'?
@ChrisBarker-NOAA
Copy link

Fixed in: #2448

Along with a LOT of similar issues in the examples.

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

No branches or pull requests

2 participants