visualens
A visual, fast interface to explore and manipulate astronomical images, catalogs, and lens models created using Lenstool.
visualens uses PyQt for fast handling of large astronomical images. Main lensing functionalities include:
- An interactive interface to create Lenstool input files and visualize and manipulate lens models,
- Fast, easy-to-run lensing calculations using
Lenstool's engine, - Visual forward modeling based on
lenstronomy.
Installation:
Many visualens functions rely on Lenstool, which is easy to install through conda (highly recommended). We also recommend installing lenstronomy through conda rather than pip, before installing visualens.
Some IDEs like Spyder may cause conflicts with PyQt. We suggest installing your favorite IDE in your conda virtual environment before installing visualens.
Installation steps:
conda create -n visualens_env -c conda-forge lenstool lenstronomy python==3.12.2 conda activate visualens_env pip install visualens
Starting guide:
If using Jupyter notebooks, run these lines in your first cell:
%gui qt5 from PyQt5.QtWidgets import QApplication import sys app = QApplication.instance() if app is None: app = QApplication(sys.argv)
Then
from visualens import Visualens vl = Visualens()
A window should open, with a side panel accessible by clicking the top left button. Click "Open..." under the Image, Catalog, or Lens model tab to get started.
More example to come here: https://github.com/tomresseguier/Lenstool_GUI/tree/main/examples
Metadata
Release files for visualens 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| visualens-1.0.2.tar.gz | 148.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| visualens-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 315.4 kB
Release files / visualens-1.0.2.tar.gz
| Download URL | visualens-1.0.2.tar.gz |
|---|---|
| Size | 148.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59b1521bcff245aaa1e193eecdd61959bfd6b265d1c2edf7584b9599470627f2
|
|
BLAKE2b-256 checksum How to use checksums |
520851069d1533a630520bbf6d388f0169bcde0ab605a17d5f20074c5c550827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / visualens-1.0.2-py3-none-any.whl
| Download URL | visualens-1.0.2-py3-none-any.whl |
|---|---|
| Size | 166.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
822001f0afa477caef0df2eb851b24abf32452ba2c689bb9cc080c5b7ae1d941
|
|
BLAKE2b-256 checksum How to use checksums |
06eeed8bb12937b23967e7fec2b46cd8f673c4c390163285c071517f338fc676
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|