Caustics

Latest version: v1.2.0

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

Scan your dependencies

Page 1 of 4

1.2.0

Breaking changes
* `z_s` is now a param of lens objects (rather than an argument to every function). Should generally be treated like `z_l`. A new tutorial has been added to show how to do multi source modelling
* Several params have been renamed to normalize conventions. Various `b` and `th_ein` parameters have now been changed to `Rein`, and for EPL this involved changing b by sqrt(q). Others include `m -> mass` and `scale_radius -> Rs` etc.

These changes will likely affect all caustics codes, but are very easy/quick to adjust for.

Big positives
* NFW and TNFW no longer require specifying `batchable` or `differentiable` they are now capable of both simultaneously. Also TNFW potential has been fixed.
* Forward raytrace had a bug where it was possible to return multiple copies of the same coordinates, that is now fixed
* The jacobian of the lens equation (used for various calculations) is now far more memory efficient

What's Changed
* refactor: normalize variable names across caustics objects by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/302
* refactor: Change z_s from argument to caskade param by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/305
* Guassian to torch by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/288
* fix: ensure the forward raytrace points are unique by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/315
* refactor: better use of autograd for base lens quantities by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/306
* fix: handle q=1 for sie by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/301
* feat: New parametrizations for external shear and point mass by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/304
* docs: update docstrings remove z_s and params by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/317
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/310
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/312


**Full Changelog**: https://github.com/Ciela-Institute/caustics/compare/v1.1.0...v1.2.0

1.1.0

What's Changed
* tests: Time delay now tested for SIE also bugfix time delay by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/307
* bug fix: Pixelated pad parameter check for clamp by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/293
* docs: update citation information by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/292
* docs: Add gravitational lensing introduction by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/297
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/291
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/295
* chore(deps): bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3 by dependabot in https://github.com/Ciela-Institute/caustics/pull/298
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/296


**Full Changelog**: https://github.com/Ciela-Institute/caustics/compare/v1.0.0...v1.1.0

1.0.0

What's Changed
* chore(deps): bump codecov/codecov-action from 4 to 5 by dependabot in https://github.com/Ciela-Institute/caustics/pull/286
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/285
* chore(deps): bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.2 by dependabot in https://github.com/Ciela-Institute/caustics/pull/284
* refactor: Change Parametrized system over to caskade by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/275
* feat: add batched plane module
* perf: lenssource can now chunk vmap over all pixels, allowing for larger images


**Full Changelog**: https://github.com/Ciela-Institute/caustics/compare/v0.12.0...v1.0.0

0.12.0

What's Changed
* Microlensing by NolanSmyth in https://github.com/Ciela-Institute/caustics/pull/259
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/270
* chore(deps): bump pypa/gh-action-pypi-publish from 1.10.2 to 1.10.3 by dependabot in https://github.com/Ciela-Institute/caustics/pull/269
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/273
* feat: add multipole lens profile by andreasfilipp in https://github.com/Ciela-Institute/caustics/pull/215
* Added light stack module to combine multiple light models by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/272
* Update MCMC tutorial to new order by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/268
* docs: update zenodo citation to match JOSS paper by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/277
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/274
* chore(deps): bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 by dependabot in https://github.com/Ciela-Institute/caustics/pull/278
* bug fix: ensure pixelated convergence kernel FFT convolution is valid by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/248
* feat: add shear calculation for all lenses by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/280
* bug fix: conv2d in LensSource now properly reorients the kernel by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/281

New Contributors
* NolanSmyth made their first contribution in https://github.com/Ciela-Institute/caustics/pull/259

**Full Changelog**: https://github.com/Ciela-Institute/caustics/compare/v0.11.2...v0.12.0

0.11.2

What's Changed
* refactor: move quad_level to init by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/245
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/237
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/247
* docs: Add example with local modelling by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/239
* Add MH MCMC example by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/251
* docs: make window inline by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/241
* chore(deps): bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.0 by dependabot in https://github.com/Ciela-Institute/caustics/pull/252
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/253
* docs: Put logo gif in main docs page by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/243
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/257
* chore(deps): bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 by dependabot in https://github.com/Ciela-Institute/caustics/pull/256
* tests: use pytest mark parametrize to massively increase the number of unit tests by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/255
* chore(deps): bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2 by dependabot in https://github.com/Ciela-Institute/caustics/pull/260
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/258
* Improve forward raytrace to better find all images by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/264
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/261
* update sim example in readme by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/265
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/266


**Full Changelog**: https://github.com/Ciela-Institute/caustics/compare/v0.11.1...v0.11.2

0.11.1

What's Changed
* ci: fix codecov token by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/228
* chore: update pre-commit hooks by pre-commit-ci in https://github.com/Ciela-Institute/caustics/pull/229
* Add gui install instructions to websim.rst by mjyb16 in https://github.com/Ciela-Institute/caustics/pull/233
* fix: minor dtype fixes for forward raytrace, add x0, y0 to LensSource by ConnorStoneAstro in https://github.com/Ciela-Institute/caustics/pull/234


**Full Changelog**: https://github.com/Ciela-Institute/caustics/compare/v0.11.0...v0.11.1

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.