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

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.1.2

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.1.2
File Size Uploaded
cosmosim-3.1.2.tar.gz 28.6 MB Details

Built distributions (wheels)

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

Total release size:413.8 MB

Release files / cosmosim-3.1.2.tar.gz

Download URL cosmosim-3.1.2.tar.gz
Size 28.6 MB
Tags Source
SHA-256 checksum
How to use checksums
ff6cf4b35f8a7cff53a13af4befb7fa8975d0f51b74582528416cc48dae083a9
BLAKE2b-256 checksum
How to use checksums
689e3845e9f73b4652fe059c60703ae57d5e74ab8922b3822d24990c943325c8
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 36.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2ff311c3e1da23bf6daf027c1d5e4b9c517ecf10c8cb3ad7ffec44aca9c379c8
BLAKE2b-256 checksum
How to use checksums
82a066157738d37f195e864293da06c6e4e665618f1cac7e7a5ec4977a329e28
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp314-cp314t-macosx_11_0_arm64.whl
Size 30.2 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6d9134fa16617c9c27277f53676fd1b6256d8fef70870a19cc4a2f2203b51f46
BLAKE2b-256 checksum
How to use checksums
ea47fdabf79c1095ed2d166f61da226b6b0f29e66aa8c727377ee634258ccb63
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp314-cp314-win_amd64.whl
Size 25.4 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
7baca4a9c1cb4c2d579d66541b457ef1ece3ba85b9bc7f285ca0ee6c074e363d
BLAKE2b-256 checksum
How to use checksums
c8b81471f5c9ca54efb503a2b315ac4d07322d0f0f6da970c74087e926242d27
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp314-cp314-manylinux_2_28_x86_64.whl
Size 29.0 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c39fbed2595f52c59546c727072504e6c55bff3287a8800f7ca8a11b212c1e55
BLAKE2b-256 checksum
How to use checksums
1c9f6a16931615295394dbc0310c6985f208c6a9d0528573e858372e0cf1b85b
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp314-cp314-macosx_11_0_arm64.whl
Size 25.7 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6ea96155c09c8ba78cfab3db2bb913fa3c70ae46b611d94f60f95ed23b0db423
BLAKE2b-256 checksum
How to use checksums
c81bd770bdf8acc7af63a51c935ee149a666db6de0f45d207a6898d50c5aaaee
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp313-cp313-win_amd64.whl
Size 24.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f83fe9c6cf1e77fb000db3b6dbc6e00c2a95efb6a27bc8ff7531bf58af3d5ebd
BLAKE2b-256 checksum
How to use checksums
6cb84cf93d4dd09bc779da0b50febefed0b88203f4dc7063bd034dbf3d01d0bf
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp313-cp313-manylinux_2_28_x86_64.whl
Size 29.0 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
36b2c74a1eedb622813890802938658a63b6099c2321698e2baeb0739eba407d
BLAKE2b-256 checksum
How to use checksums
4a6372e6a5f70caacdb0eaf53cd6205c381b3d70e7775d9d7a2330ae5eb590c1
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp313-cp313-macosx_11_0_arm64.whl
Size 25.7 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a3d53eb7e51d5bb848660be7af8b53d07ed2ff5db3cf171558f1d700df00a45e
BLAKE2b-256 checksum
How to use checksums
f6a97d9db98998f1277100781e77d249dcccdf9990793ebb1515a4cdfce25130
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp312-cp312-win_amd64.whl
Size 24.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
e5b1346e2e57ba6b3b44f65423bd5bf245ea7f11a7e8ca0931a8d628e32a7396
BLAKE2b-256 checksum
How to use checksums
e967de78129090b7ea7655d1fad60c7faf80bf8babc21db686deccb3458bc22a
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp312-cp312-manylinux_2_28_x86_64.whl
Size 29.0 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
bb425d003c8c098e6ddb591d79e89b7110d1399e8ea434ddf7541d5059a5a98b
BLAKE2b-256 checksum
How to use checksums
67833a988dcc0115d8d85bb652cce3cfc3f3d49cfe49c8f6af1cc856902cf2a5
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp312-cp312-macosx_11_0_arm64.whl
Size 25.7 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
09a99724bef5f1cec0dddebb3bec7b01088684b5fed16546d2f75112f7f890a8
BLAKE2b-256 checksum
How to use checksums
b2f33b1958035f6aa14f8bc9fb3e280f8f14b4f94ab6c384e68391772066ba51
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp311-cp311-win_amd64.whl
Size 24.8 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
7de9f4321ff4862c60928243eb7caae99c533537609c03d45a8d7b1bc927e017
BLAKE2b-256 checksum
How to use checksums
7b90af65c2666ef442885648bea4c7ecff38fa8282baf04fbb876b158aa93756
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp311-cp311-manylinux_2_28_x86_64.whl
Size 29.0 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
dcb739723a51d7f0e42b9c6abe5276cc3ee69fe1a1c54e5e4e743f7bf0aabf27
BLAKE2b-256 checksum
How to use checksums
24822446e69082877db7fc903f4f8a7535fdf7d573c37586ef0b5787a8196c68
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 2, 2026.

Transparency log

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

Download URL cosmosim-3.1.2-cp311-cp311-macosx_11_0_arm64.whl
Size 25.7 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ec6badc172a948c3a9a170fb678e9f2ac52d138554a34fdd2aaa7337afc61218
BLAKE2b-256 checksum
How to use checksums
f64a95824ba8274bdb7596495c3e96b9ffd81dafc8ffc16c75203d3837769d47
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 2, 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.1.2 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