Skip to main content

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

Documentation is on the web site, The notes below is just a brief synopsis.

Installation Guide

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

pip install CosmoSim

You can check the version installed with

python -m CosmoSim --version

Local build

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/dataset.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
    • master should be the last stable version
  • Releases
    • v-test-* are test releases, used to debug workflows. Please ignore.
    • see the releases on github and CHANGELOG.md

Release files for CosmoSim 3.2.3

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.3
File Size Uploaded
cosmosim-3.2.3.tar.gz 7.9 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for CosmoSim 3.2.3
File
cosmosim-3.2.3-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.3-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
cosmosim-3.2.3-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
cosmosim-3.2.3-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.3-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
cosmosim-3.2.3-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
cosmosim-3.2.3-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.3-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
cosmosim-3.2.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
cosmosim-3.2.3-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
cosmosim-3.2.3-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
cosmosim-3.2.3-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
cosmosim-3.2.3-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details

Total release size:97.4 MB

Release files / cosmosim-3.2.3.tar.gz

Download URL cosmosim-3.2.3.tar.gz
Size 7.9 MB
Tags Source
SHA-256 checksum
How to use checksums
f012c445939f2a03f4ca924149c1403b24e793e09f187aa3f1aebdf66c9ed5d2
BLAKE2b-256 checksum
How to use checksums
e84467a4f9de609e67110b24b6c0fe815166b06f63dc46b97ee1b150f4df08c2
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.3-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 15.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5cab5cf7d97d54d095143875461d00fe8d7cc3d20154d03ca904803121cbffad
BLAKE2b-256 checksum
How to use checksums
f7c869e320d711f8081ae3171c7f4d5de230d2495efd2b660663426b61997a63
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp314-cp314t-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.3-cp314-cp314t-macosx_11_0_arm64.whl
Size 9.1 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
39be6c07b60631f8f6f7bb8abcac3a82338fe6a1d18585b6a9fbe697453ccfbb
BLAKE2b-256 checksum
How to use checksums
a5ce20ef77f3eb2dcf33851644da38a41c867c8ecb3693383eb15f937986c119
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp314-cp314-win_amd64.whl

Download URL cosmosim-3.2.3-cp314-cp314-win_amd64.whl
Size 3.9 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
8f745ece1cb8fbfa8b539d9736d6c7bdf3f182b1515e35bf0b6b49e05474cba2
BLAKE2b-256 checksum
How to use checksums
3b142f98993db0378671b1d1ee8b3613abe7ef356002edf642c7a078b35018af
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.3-cp314-cp314-manylinux_2_28_x86_64.whl
Size 7.9 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0c3440b16d0cf9cafe42f001a8625868d14d28f3760952daa2422cb68dba519c
BLAKE2b-256 checksum
How to use checksums
843fd38899f1c843a8e4ae3149e71c98a8d33858fd6f7ff880501d49a82c7d9e
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp314-cp314-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.3-cp314-cp314-macosx_11_0_arm64.whl
Size 4.6 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4ad8bc0e586d88689e04042f1a09f4415a3ef09d7ee5dffd9d6ffb0f467773b1
BLAKE2b-256 checksum
How to use checksums
b75a01dd7edeb0f9588e63425cf83f28d70c8fa229cce1a1ae1e2ba9f39709c7
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp313-cp313-win_amd64.whl

Download URL cosmosim-3.2.3-cp313-cp313-win_amd64.whl
Size 3.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
522e912f3a2196ad2355ea6afd12072a32eae3dfe9460f7a0ccd2a397c22bd0a
BLAKE2b-256 checksum
How to use checksums
2510e1827c83bd5e4b56f80a413a5308c596cb1fcb63e7390f320b1ab5003fbc
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.3-cp313-cp313-manylinux_2_28_x86_64.whl
Size 7.9 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4d1054fb706de68924ffd94dd969646b0ff9ef50b01ced92a0afa986a4a28208
BLAKE2b-256 checksum
How to use checksums
399233a9e23fed7a7d31298b53fb3dbf47725c21a892218f4cf5d9cf99228421
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.3-cp313-cp313-macosx_11_0_arm64.whl
Size 4.6 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
20eedb2fa7d9d24fd5099a5651f3b7b12baaab3c50e18acad64d4002232530fb
BLAKE2b-256 checksum
How to use checksums
2125800c06697f355d8f3558194fb22d79e27ab39713290a302b5036edf3547e
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp312-cp312-win_amd64.whl

Download URL cosmosim-3.2.3-cp312-cp312-win_amd64.whl
Size 3.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
63f208fec58217d39b774330f644755ab54ccf57c0cacc09d4a18020c789d19d
BLAKE2b-256 checksum
How to use checksums
3be7bac1c094f0f3f603d9247b0330ec8b57361cabde3393f9206fc165488d3e
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.3-cp312-cp312-manylinux_2_28_x86_64.whl
Size 7.9 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b474093ba1b5b7caf59d13d6672e3072f7ac58fdce385f19923e6998ebd0c889
BLAKE2b-256 checksum
How to use checksums
151098859b8644f0de6684665a331f2dcec4d61c6a6596c930b2144d14dafbbc
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.3-cp312-cp312-macosx_11_0_arm64.whl
Size 4.6 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e1721077b027ff4cafe46cfa99e11212d959a1912f0a3997b5d02613f2d93b9c
BLAKE2b-256 checksum
How to use checksums
ac975c47c13644d4f1ee18dd5f86f1d6b461ccadc7db2c59e1e9e8258091ede4
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp311-cp311-win_amd64.whl

Download URL cosmosim-3.2.3-cp311-cp311-win_amd64.whl
Size 3.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
7678e75c55098a737f58e590f2f55bbe8b1921f8bd7f4d73424e40edd9764074
BLAKE2b-256 checksum
How to use checksums
b93988beb3ab149e6d402e418cc020e4b59cedeaa4458100d4b8e2f96051716d
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.2.3-cp311-cp311-manylinux_2_28_x86_64.whl
Size 7.9 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ef266f7667412e0f56a9d990ce27bb275ed7adf4564a8d1cab39e75eda3be3cc
BLAKE2b-256 checksum
How to use checksums
bddc61049b65c1a2310620b8309f98813b1f2e77a28c48f0fbfb1ccf70c42093
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 Jul 11, 2026.

Transparency log

Release files / cosmosim-3.2.3-cp311-cp311-macosx_11_0_arm64.whl

Download URL cosmosim-3.2.3-cp311-cp311-macosx_11_0_arm64.whl
Size 4.6 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
15c41b77ae41790fc0a4ac252343024185eb01dc129d451820b0f189aba91beb
BLAKE2b-256 checksum
How to use checksums
1c04f5ffaf2856c4e88910156d93ab6c589bdef4cbfba8181136cbe3a1b4e383
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 Jul 11, 2026.

Transparency log

Release history Release notifications | RSS feed

3.3.0

15 release files

3.2.4

15 release files

This release

3.2.3 This release

15 release files

3.2.2

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