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

Metadata

Release files for CosmoSim 3.4.0

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.4.0
File Size Uploaded Provenance Actions
cosmosim-3.4.0.tar.gz 9.4 MB With provenance Details for cosmosim-3.4.0.tar.gz

Built distributions (wheels)

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

Total release size: 125.5 MB

Release files / cosmosim-3.4.0.tar.gz

Download URL cosmosim-3.4.0.tar.gz
Size 9.4 MB
Tags Source
SHA-256 checksum
How to use checksums
5b303bb2afd65e41854de771045e1ad193678218c829366dbeaccc84d6597d08
BLAKE2b-256 checksum
How to use checksums
e77d6080aa917f57333c87109d04f39c388ed37b156fb97a32dfd85beb987096
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / cosmosim-3.4.0-cp315-cp315t-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.4.0-cp315-cp315t-manylinux_2_28_x86_64.whl
Size 15.8 MB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
43e63ec00c37dae3daba6c65245dca53cd6c230ba4d48ee95453b612bfb7a383
BLAKE2b-256 checksum
How to use checksums
43225dc19841bbd131f2df9b536d538be21d5e199ed3eb2856e40fce26b0b401
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / cosmosim-3.4.0-cp315-cp315t-macosx_11_0_arm64.whl

Download URL cosmosim-3.4.0-cp315-cp315t-macosx_11_0_arm64.whl
Size 9.4 MB
Tags CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
36c4c2e1b90454145ff715d82b69c317862dc2d07aabf9ad9c0656a520346a05
BLAKE2b-256 checksum
How to use checksums
63b99238905c1a8941fa6212b57a8644adb853daa4aa3e35b45a187ad7afe7df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / cosmosim-3.4.0-cp315-cp315-manylinux_2_28_x86_64.whl

Download URL cosmosim-3.4.0-cp315-cp315-manylinux_2_28_x86_64.whl
Size 8.2 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5c6daf250a17614ea1a5d032542ebbe4a1f4ce1d9e85b0eeb74c0f1b65cb3dad
BLAKE2b-256 checksum
How to use checksums
be4d398a834e5a58cfc3c900e5c17c5c0811adb8f32eb277886891db697c68c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / cosmosim-3.4.0-cp315-cp315-macosx_11_0_arm64.whl

Download URL cosmosim-3.4.0-cp315-cp315-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6a5d74ba66656426b8afcb451cf74d4bc739e081b841cc5c08fcb9237fec6597
BLAKE2b-256 checksum
How to use checksums
fe8686f602d45768f6af3577b7ca2e5da86b0c61d42c867d9aa77f571beaa49b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 15.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a2355319c20a5ca3a67e910a89df0a919a878842e7cebe10610a8814ee50bb9e
BLAKE2b-256 checksum
How to use checksums
9f743402756b4bc9200c691de0c4ecd71f5c6b3c233d2211222090b81fc28e44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 9.4 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
037f3c5f673e10be15659420edd3841d8f6ef11e6d1b1e0421cae93fd2f483b5
BLAKE2b-256 checksum
How to use checksums
2569fd4cfc6fa93c5d4d800e5801138c40bb1a2a42449e6737f86f090b947ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 8.2 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c6cb74877727824eed447ddb09499ca18022ff092b5266ae3ff689464ab3e24e
BLAKE2b-256 checksum
How to use checksums
3b1b01ec74753df438930511839c2954914990139a6a61921beb2b751feb9a05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp314-cp314-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3e75751a86bef512fe5a4bbd381e20ed37b84125a88c16f6e4cea8567911b3b6
BLAKE2b-256 checksum
How to use checksums
f450e2ba1793154091f0229da19cb7edb7d035fbb9aa7d0562f5b6e0ae0f7261
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 8.2 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
15c655c760250b2ddec1ee57c9d27d5972ac4e5990422e0e0774ed5f47cfce8f
BLAKE2b-256 checksum
How to use checksums
27800b904d9147541b06d605fbac0a7b34cdeca2a21d9f30854e92d95d29d9f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp313-cp313-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
96ee79242d296292447db1485a8fc54fc96428ecee48512728e55c59a36996d8
BLAKE2b-256 checksum
How to use checksums
76d9bf1b634740f0505ed117caf3943dad1b581ca1a9bcdfbdd156c31d8b394f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 8.2 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c525bd4ea8ef18c98272d18d5b68c1240203f97bc09ad21e05741ce817dae823
BLAKE2b-256 checksum
How to use checksums
aeb6c924f987a2e7a254ce7f0de9a269f0284c49600d0bb862ba887d87b08e55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp312-cp312-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
27e90436cc35e92d6357606b212ff19696d8753c8f2a55d20bdc3c73fefd2315
BLAKE2b-256 checksum
How to use checksums
b14fcb53ce53ca92a97429a889c2f0026a13dbbc894d8dcd2e21986b0dec7bf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 8.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c6bb9146f52e77324bcf80f48edd0d1c0981063226d127656eef0ec4973b0719
BLAKE2b-256 checksum
How to use checksums
461ef80a85e67fa6441eb14af6b1d20203a3dada75e2b350d65d4980488d1a7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL cosmosim-3.4.0-cp311-cp311-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1bf9642359e22b243b57373a745708b9ff5e387c296e5d389a4697da548d7b3a
BLAKE2b-256 checksum
How to use checksums
69849e08fac4c117f538e530440d50823bf0674b67fe14c364ebb9ddf0e2c674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Security for CosmoSim 3.4.0

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.

Full provenance

All 15 files in this release have been uploaded with provenance metadata.

Select from 15 files

Attestation for cosmosim-3.4.0.tar.gz

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 Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.4.0 This release

15 release files Full provenance

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