Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.


title: The CosmoAI project

The CosmoSim software

This project provides a simulator for gravitational lensing based on Chris Clarkson's Roulettes framework. The code is experimental, and intended for research, with many loose ends. If you think it may be useful, we shall be happy to discuss collaboration and help you get started.

The core team is

Installation Guide

CosmoSim is set up to build python packages (wheels) that can be installed with pip.

pip install CosmoSim

We successfully build CosmoSim for Linux/x86_64, MacOS/arm, and Windows/amd64, for python 3.11 through 3.14 (the free-threaded 3.14t build is available on Linux and macOS).

To build locally from source, you can run (from the root of the repo),

pip install build
python -m build

This is highly dependent on the local configuration, and may fail for a number of reasons. If it succeeds, the binary file for the python module appears under src/CosmoSim.

If you can build, pip can also install the package from the working directory. Again, from the root of the repo,

pip install .

For non-standard building, see BUILD.md.

Running the GUI

python3 -m CosmoSim.GUI

The GUI tool is hopefully quite self-explanatory.
The images shown are the actual source on the left and the distorted (lensed) image on the right.

The Command Line Interface (CLI)

An illustrative test set can be generated by the following command.

mkdir images
python3 -m CosmoSim -CR -Z 400 --csvfile Datasets/debug.csv --directory images

This generates a range of images in the newly created images directory.

The flags may be changed; -C centres det distorted image in the centre of the image (being debugged); -Z sets the image size; -R prints an axes cross.

Further documentation and examples are found on the web site,

Versions

  • The imortant git branches are
    • develop is the current state of the art
    • pypitest is used for final testing with automatic deployment to the PyPI test index.
    • master should be the last stable version
  • Releases
    • v-test-* are test releases, used to debug workflows. Please ignore.
    • see the releases on githun and CHANGELOG.md
  • Prior to v2.0.0 some releases have been tagged, but not registered as releases in github.
    • v0.1.0, v0.2.0, v1.0.0 are versions made by the u/g students Spring 2022.
    • v1.0.1 is cleaned up to be able to build v1.0.0

Caveats

The simulator makes numerical calculations and there will always be approximation errors.

  1. The images generated from the same parameters have changed slightly between version. Some changes are because some unfortunate uses of integers and single-precision numbers have later been avoided, and some simply because the order of calculation has changed.
  2. The SIS model is implemented in two versions, one rotating to have the source on the x-axis and one working directly with arbitrary position. Difference are not perceptible by visual comparison, but the difference image shows noticeable difference.

Contributors

The initial prototype was an undergraduate final year project by Ingebrigtsen, Remøy, Westbø, Nedreberg, and Austnes (2022). The software includes both a GUI simulator for interactive experimentation, and a command line interface for batch generation of datasets.

  • Idea and Current Maintainance Hans Georg Schaathun hasc@ntnu.no
  • Mathematical Models Ben David Normann
  • Initial Prototype Simon Ingebrigtsen, Sondre Westbø Remøy, Einar Leite Austnes, and Simon Nedreberg Runde
  • Other Contributors Lars Ivar Hatledal, Oda Hjemli

Release files for CosmoSim 3.2.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CosmoSim 3.2.0b2
File Size Uploaded
cosmosim-3.2.0b2.tar.gz 28.7 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for CosmoSim 3.2.0b2
File
cosmosim-3.2.0b2-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.0b2-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
cosmosim-3.2.0b2-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
cosmosim-3.2.0b2-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.0b2-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
cosmosim-3.2.0b2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
cosmosim-3.2.0b2-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.0b2-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
cosmosim-3.2.0b2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
cosmosim-3.2.0b2-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.0b2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
cosmosim-3.2.0b2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
cosmosim-3.2.0b2-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.0b2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details

Total release size:416.2 MB

Release files / cosmosim-3.2.0b2.tar.gz

Download URL cosmosim-3.2.0b2.tar.gz
Size 28.7 MB
Tags Source
SHA-256 checksum
How to use checksums
3adcae8e33b5caaef632be21d9ad0306530a025538051d1a549c196289f3f156
BLAKE2b-256 checksum
How to use checksums
acc5457c40d4d73dcb2b59bfac04061832cffa971553139e35603a61c079fca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.0b2-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 36.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7a3cd18d849e173d62669c15f7ee9806d20b23a9d13a01ea5e33201e605f4aa3
BLAKE2b-256 checksum
How to use checksums
f93432828ee86814196f2fd8af7236b668938b731b5eefd0663c33c50a67f63c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp314-cp314t-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.0b2-cp314-cp314t-macosx_11_0_arm64.whl
Size 30.4 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9ec725788942acfa775c26128c2b7d550ebdfef583a7603e0295b389feb00825
BLAKE2b-256 checksum
How to use checksums
4d822c3b200847d3a393eac03566dbc434e4d9cf79e329c8aec4cf99faa3c160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp314-cp314-win_amd64.whl

Download URL cosmosim-3.2.0b2-cp314-cp314-win_amd64.whl
Size 25.6 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
4f436314c30ad599590312251cf252b0d250a9824e66caa9862c567ce845e63a
BLAKE2b-256 checksum
How to use checksums
c51d5ea82a14204a29792204f41783347495572bf17298a36ede96fdc0da9671
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.0b2-cp314-cp314-manylinux_2_28_x86_64.whl
Size 29.1 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4e03ddc428d9dcf1efcc2aff20ef03692d1e554d8c763f39b7053f339c873554
BLAKE2b-256 checksum
How to use checksums
20468364da7fdec4e38e36ffa0977231b073cacf80e2e940b39bf08559102e34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp314-cp314-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.0b2-cp314-cp314-macosx_11_0_arm64.whl
Size 25.9 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f0f4c4a8fea53024f267782d10fb2f9871c584d453f8b427d60e7fe3aeb1853a
BLAKE2b-256 checksum
How to use checksums
545d95250863e361e95e5e2a2b6150f8cd2c58a7bf6c1f00587b3baf850cb503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp313-cp313-win_amd64.whl

Download URL cosmosim-3.2.0b2-cp313-cp313-win_amd64.whl
Size 24.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b05c07ead505e06318db9256a611b2b446dc362006e5f40f44a4e6895fe41851
BLAKE2b-256 checksum
How to use checksums
0add5d470006e53d7693aff8291cba8a731ee0dfddb92846800832815698f9de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.0b2-cp313-cp313-manylinux_2_28_x86_64.whl
Size 29.1 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e044f5df2dce10c758de2e167acb007a742ed769994482fb0d271d597331d791
BLAKE2b-256 checksum
How to use checksums
3619678db14e5c02880aaa4d3852e578481c30043c7002261c873e3801c60083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp313-cp313-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.0b2-cp313-cp313-macosx_11_0_arm64.whl
Size 25.9 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
97d932c30e86cd93db7ee506de7b11421653d50ddf8d2ae2e15b5cd91bf1280f
BLAKE2b-256 checksum
How to use checksums
bd228fa900ed2dacd510cbc47c6a9986cf2cc7348cee8ed73b35d7d43cd81ab3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp312-cp312-win_amd64.whl

Download URL cosmosim-3.2.0b2-cp312-cp312-win_amd64.whl
Size 24.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
3b388dda82fa691f4a8ac0320c140ab4bf0d85458da19877f6fda9c6663fcf0b
BLAKE2b-256 checksum
How to use checksums
ce332a8a66fa17ec6a62fa8fb93173e9b1f59cfa955ceca50fdbb4a825409ee1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.0b2-cp312-cp312-manylinux_2_28_x86_64.whl
Size 29.1 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
21b2667e2ee38bd50bda5a5003e2925aa9b6fff734b788e516408aee046cf1c0
BLAKE2b-256 checksum
How to use checksums
442d24bfb0520a74c68b67a19b940ee26dfa114f3d7524d48ba3ad6c355b8b29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp312-cp312-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.0b2-cp312-cp312-macosx_11_0_arm64.whl
Size 25.9 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2953f8453311aacbddbee29c95b46e04d3e11c36fc50135e1663322ef747d84d
BLAKE2b-256 checksum
How to use checksums
c8617e05deec7feacf4eacc9fa714bee18cedf9156cbbf49b2b7690053373924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp311-cp311-win_amd64.whl

Download URL cosmosim-3.2.0b2-cp311-cp311-win_amd64.whl
Size 24.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
2c867e511c58664e46d9b850e54747266aba80b575dcfb5db0055652340fd92f
BLAKE2b-256 checksum
How to use checksums
a83af989f57a5d47b1d9736cc855b870c8910223395554afc9208260dc87ed3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.0b2-cp311-cp311-manylinux_2_28_x86_64.whl
Size 29.1 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a19b5db17b73aeb8504c857625676cbe990e85c1b0297b2802ffca5093c8c29e
BLAKE2b-256 checksum
How to use checksums
cdbe4a701c159a383cef67a6704c90abee0c829c9807a59c0ac42e1c25ef12c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / cosmosim-3.2.0b2-cp311-cp311-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.0b2-cp311-cp311-macosx_11_0_arm64.whl
Size 25.9 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2cba73938f1cfbd75cc36d1a72d8f72792927a6c985472dd00bce050d9655eaa
BLAKE2b-256 checksum
How to use checksums
ee6c61e8d4465feae193c6d161625059c539c9a3b234afc288b0d96e138d3a63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release history Release notifications | RSS feed

3.3.0

15 release files

3.2.4

15 release files

3.2.3

15 release files

3.2.2

15 release files

This release

3.2.0b2 This release

15 release files

3.1.0

15 release files

3.0.5

15 release files

3.0.4

15 release files

3.0.3

11 release files

3.0.2

11 release files

3.0.1

11 release files

3.0.0

11 release files

2.8.1

11 release files

2.8.0

11 release files

2.7.0

11 release files

2.6.8

11 release files

2.6.7

11 release files

2.6.3

11 release files

2.6.1

11 release files

2.6.0

11 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page