Raytracing

Latest version: v1.3.12

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

1.3.4

Important new features, mostly related to compound lenses (i.e. Doublets from vendors for instance).

1. `Material` has a `findByName` method that can help find a material by name or `findByIndex` to find a material with the appropriate index within a certain tolerance. Documentation explains how you can include your own materials and they will be included in the search.
2. All achromats now also include a new function called `showChromaticAberrations`. If you write:

from raytracing import *
thorlabs.AC254_100_A().showChromaticAberrations()
wavelengths, shifts = thorlabs.AC254_100_A().focalShifts()

you get the graph of the focal shift or you can get the values directly. They reproduce the Thorlabs graphs perfectly.
3. A new class called `ZMXReader` to read a ZMX file and get the lens from it. it has been tested with files from Thorlabs and Edmund, and they match the implemented classes. It can return a `MatrixGroup` that you can use as a element in an `ImagingPath` for instance. Some work will be done soon to integrate this knowledge better, validate lenses, etc...
4. The ZMXReader can actually list the lens "prescription" in text so you can see what it is without necessariy using `raytracing`.
5. Any `Material` class derived by the user is included in the `findBy` functions, therefore the ZMXReader will make use of your material to build the lens. If a material is missing, you can add it to your script and it will be considered. See ["README Adding New Materials"](https://github.com/DCC-Lab/RayTracing/blob/master/README-Adding-new-materials.md)

1.3.3

* Readthedocs will now show the inherited functions for all classes, simplifying getting started for new users.
* `traceManyThroughInParallel` now falls back to single process if there is any error. It appears the multiplrocessing package can become flaky on some platforms. To avoid problems, we simply use the slower version when needed.
* Better fanAngles by default for images, although they will be deprecated in 1.4.x (use `ObjectRays` instead).

1.3.2

* Many functions now return named tuples for simpler management by programmers, while maintaining compatibility.
* Small bug in display was not using fanNumber.

1.3.1

Since the [publication](https://doi.org/10.1117/1.NPh.8.1.010801), small bugs have been fixed. Thanks to all for feedback.

1.3.0

The DCCLab group has written an article that was submitted (and accepted) for publication by SPIE Journal of Neurophotonics. This is the exact version that was used in the article: the code, the API, the graphs should match the publication identically. Only bug fixes will be included in 1.3.1, 1.3.2 etc..., but any feature shall be added in a separate version (1.4.x) if it changes the appearance or the behaviour.

As soon as the article is available, we will post a link here and in the README.

1.2.13

Preparing for the final release before publication.

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.