cihologramas / pyoptools

Python tools for optical design
GNU General Public License v3.0
137 stars 46 forks source link

upgraded dependencies, moved numpy to 2.1.0 #169

Open hstarmans opened 1 month ago

hstarmans commented 1 month ago

Fixes Issue #166.

This PR addresses move to numpy 2.1.0. Pytest results are consistent with previous runs, with most tests passing. Pyoptools is added to Freecad by first creating a wheel and then installing this wheel

python -m build --wheel
// using python exe from freecad
 ./python.exe -m pip install pyoptools-0.1.2.dev204+g8330d08-cp311-cp311-win_amd64.whl

I use pyoptools to verify the position of optical components of my laser scanner, hexastorm.com.

What I would recommend:

ramezquitao commented 1 month ago

@hstarmans, thank you for your help. I’ll review your proposal. I just wanted to let you know that I've been working on removing the compiled dependencies for NumPy, which has caused several issues, particularly when using pyOpTools in FreeCAD 1.0. A lot of refactoring has happened in the process, and most of the NumPy dependencies in the raytrace module have been removed. I'm currently testing a local version and expect to merge these changes by the end of the week. After that, I’ll focus on merging your changes.