Torchoptics

Latest version: v0.3.0

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

Scan your dependencies

0.3.0

What's Changed
* Refactor `Field` class and subclasses in https://github.com/MatthewFilipovich/torchoptics/pull/42:
- Rename `CoherenceField` to `SpatialCoherence`
- Remove `PolarizedField` class. Instead, polarization can be simulated directly with the `Field` and `SpatialCoherence` classes using `polarized_modulate()`.
- Remove `FieldDetector` class. Use `Field.inner()` instead
- Rename `IntensityDetector` to `LinearDetector`
- Add `get_coherence_evolution()`, which returns the spatial coherence evolution function
- Refactor validation methods in `Field`
* Rename `PlanarGeometry` to `PlanarGrid` in https://github.com/MatthewFilipovich/torchoptics/pull/43
* Add Siemens star pattern and docs example in https://github.com/MatthewFilipovich/torchoptics/pull/44


**Full Changelog**: https://github.com/MatthewFilipovich/torchoptics/compare/v0.2.1...v0.3.0

0.2.1

What's Changed
* Improve docs in https://github.com/MatthewFilipovich/torchoptics/pull/34
* Fix `shape` initialization in `PlanarGeometry` in https://github.com/MatthewFilipovich/torchoptics/pull/36
* Add type hints and update documentation in https://github.com/MatthewFilipovich/torchoptics/pull/37
* Fix `fftfreq_grad()` and add relevant tests in https://github.com/MatthewFilipovich/torchoptics/pull/38


**Full Changelog**: https://github.com/MatthewFilipovich/torchoptics/compare/v0.2.0...v0.2.1

0.2.0

What's Changed
* Refactor validation and utility functions in https://github.com/MatthewFilipovich/torchoptics/pull/14
* Enhance CI workflow with linting and formatting tools in https://github.com/MatthewFilipovich/torchoptics/pull/18
* Refactor `register_optics_property()` in https://github.com/MatthewFilipovich/torchoptics/pull/19
* Add grating profiles in https://github.com/MatthewFilipovich/torchoptics/pull/21
* Add Zernike polynomial profiles in https://github.com/MatthewFilipovich/torchoptics/pull/22
* Update propagation functions with new arguments in https://github.com/MatthewFilipovich/torchoptics/pull/23
* Miscellaneous fixes in https://github.com/MatthewFilipovich/torchoptics/pull/24
* Fix critical propagation distance calculations and update documentation in https://github.com/MatthewFilipovich/torchoptics/pull/25
* Implement copy utility function in https://github.com/MatthewFilipovich/torchoptics/pull/26
* Fix profile return dtypes and add tests in https://github.com/MatthewFilipovich/torchoptics/pull/28
* Improve `is_asm()` and spatial coherence error in https://github.com/MatthewFilipovich/torchoptics/pull/29
* Allow evanescent waves in asm propagation in https://github.com/MatthewFilipovich/torchoptics/pull/31
* Refactor docs in https://github.com/MatthewFilipovich/torchoptics/pull/32
* Fix docs for readthedocs in https://github.com/MatthewFilipovich/torchoptics/pull/33


**Full Changelog**: https://github.com/MatthewFilipovich/torchoptics/compare/v0.1.0...v0.2.0

0.1.0

What's Changed
* Fix mypy errors in https://github.com/MatthewFilipovich/torchoptics/pull/4
* Add getter functions for wavelength and spacing in https://github.com/MatthewFilipovich/torchoptics/pull/5
* Enable polychromatic modulation elements in https://github.com/MatthewFilipovich/torchoptics/pull/8
* Improve `System` class in https://github.com/MatthewFilipovich/torchoptics/pull/9
* Update functionality of parameters in https://github.com/MatthewFilipovich/torchoptics/pull/10
* Change default interpolation mode from `bilinear` to `nearest`
* Change `modulation_profile` from a property to method
* Fix bug in `Lens` class


**Full Changelog**: https://github.com/MatthewFilipovich/torchoptics/compare/v0.0.0...v0.1.0

0.0.0

First public release of TorchOptics 🎉

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.