Skip to content

Replace removed np.int alias with int in visualize#67

Merged
mbsantiago merged 1 commit into
macaodha:mainfrom
SAY-5:fix-np-int-visualize
Jun 23, 2026
Merged

Replace removed np.int alias with int in visualize#67
mbsantiago merged 1 commit into
macaodha:mainfrom
SAY-5:fix-np-int-visualize

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Creating an InteractivePlotter raises AttributeError: module 'numpy' has no attribute 'int' on NumPy >= 1.24, which is within the numpy>=1.23.5 range the project supports. np.int was a deprecated alias for the builtin int and was removed, so the two dtype=np.int uses in utils/visualize.py now fail.

Switched both to dtype=int, which is the documented behavior-preserving replacement, and added a test that constructs the plotter and checks the label arrays come back as integers.

Fixes #63

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@mbsantiago

Copy link
Copy Markdown
Collaborator

Amazing, thank you so much @SAY-5!

@mbsantiago mbsantiago merged commit f80fc3f into macaodha:main Jun 23, 2026
4 checks passed
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.

np.int AttributeError

2 participants