AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

BUG: Fix errors from deprecated API use with NumPy 2.0 API #330

Closed carterbox closed 3 months ago

carterbox commented 3 months ago

Purpose

Avoid deprecation warnings and fix errors from NumPy 2.0 API.

Approach

Ran the tests and fixed errors and deprecation warnings related to type casting from complex to real and from Python types to NumPy types.

Pre-Merge Checklists

Submitter

Reviewer

pep8speaks commented 3 months ago

Hello @carterbox! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 506:81: E501 line too long (87 > 80 characters)

Line 333:81: E501 line too long (94 > 80 characters) Line 385:81: E501 line too long (87 > 80 characters)

Comment last updated at 2024-07-26 20:00:10 UTC