Skip to main content

A framework for generating deep-learning SKA radio telescope & cosmological hydrodynamical simulation data

Project description

#+AUTHOR: phdenzel
#+TITLE: skais-mapper
#+DATE: 2022-09-06 Tue
#+OPTIONS: author:nil title:t date:nil timestamp:nil toc:nil num:nil \n:nil

[[https://pypi.org/project/skais-mapper][https://img.shields.io/pypi/v/skais-mapper.svg]]
[[https://pypi.org/project/skais-mapper][https://img.shields.io/pypi/pyversions/skais-mapper.svg]]
[[https://www.gnu.org/licenses/gpl-3.0][https://img.shields.io/badge/License-GPL%20v3-blue.svg]]


*** Table of Contents

- [[#requirements][Requirements]]
- [[#install][Install]]
- [[#usage][Usage]]
- [[#data][Data]]
- [[#license][License]]



~skais-mapper~ is a tool for generating, plotting, and pre-processing
hydrodynamics simulation (image) data for state-of-the-art generative
AI models.


** Requirements

~skais-mapper~ is mostly built on python, but also includes some C
extensions for the compute-intensive raytracing (building and
visualizing datasets). Building from scratch thus requires ~cython~,
however ~skais~ ships with pre-compiled C files, making the minimal
requirements

- ~python >= 3.10~
- ~gcc~ (on linux) / ~clang~ (on macOS)

Also see ~pyproject.toml~ for the relevant python packages.


** Install

It is recommended to install ~skais-mapper~ in a virtual environment
via ~uv~. For this, run

#+begin_src shell
uv sync
#+end_src

Alternatively, you can simply run

#+begin_src shell
python setup.py build_ext --inplace
pip install [-e] .
#+end_src

If you want to compile the C extension from the cython files directly,
run in advance to the above

#+begin_src shell
python setup.py build_c [-a]
#+end_src


*** On Nix(OS)

For Nix(OS) users, the repository includes a ~flake.nix~ file. It
allows to create a development environment compatible with standard
~uv~ use.


** Usage

~skais-mapper~ implements a few sub-commands for generating and
manipulating simulation data. Use the following to see what valid
sub-commands exist:

#+begin_src shell
[uv run] skais-mapper -h
#+end_src

~skais-mapper~ sub-commands implement the hydra configuration
management framework. For more information on sub-command usage,
inspect the ~skais_mapper/configs/~ directory, or use:

#+begin_src shell
[uv run] skais-mapper [sub-command] -h
#+end_src

For instance, the command to generate 1000 images from snapshot 50 is
as follows:

#+begin_src shell
[uv run] skais-mapper generate +experiment=tng50-1-50-2D-0000-1000
#+end_src


** Data

Currently, this framework is fully compatible with SPH data from the
AREPO simulator, in particular the
[[https://www.tng-project.org/data/][IllustrisTNG suite]]. It
provides utility routines to fetch isolated halos from simulations
snapshots and various raytracing algorithms for 2D column density
projections of these halos and its galaxies. The framework generates
HDF5 files with image datasets of various galactic properties, such as
dark matter, star, or gas column density distributions.


** License

~skais-mapper~ is distributed under the terms of the
[[https://spdx.org/licenses/GPL-3.0-or-later.html][GNU General Public
License v3.0 or later]] license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skais_mapper-0.1.1.tar.gz (235.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

skais_mapper-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl (859.7 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

skais_mapper-0.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (855.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

skais_mapper-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl (865.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

skais_mapper-0.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (860.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

skais_mapper-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl (825.2 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

skais_mapper-0.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (820.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file skais_mapper-0.1.1.tar.gz.

File metadata

  • Download URL: skais_mapper-0.1.1.tar.gz
  • Upload date:
  • Size: 235.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for skais_mapper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 05783becece2d1eb55d25e0354d8604f65135c16ebcdee5eb5bd6d71b8307917
MD5 a97455ac83ad1c912417bde81a971522
BLAKE2b-256 e08e9fedfb47bdbd6b9e1de9909e494ac6f74ec704c7f60530e77a8785a40fb0

See more details on using hashes here.

File details

Details for the file skais_mapper-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for skais_mapper-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3dbd70e227365d8151390b8c50a15f366500dc971347df272ac73bd3013a69c7
MD5 db1332fdfd5db06935d32375c5e764b2
BLAKE2b-256 9c4012ff674a202b03dae8c33150d2742ea8478ab1b60c44384d442b62b91c09

See more details on using hashes here.

File details

Details for the file skais_mapper-0.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for skais_mapper-0.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2913e05571c84523cf7139e08e944dc70d469567df4765ebda883ad9d96dc1f4
MD5 c8f21beaa663316701159a617deac34d
BLAKE2b-256 5dbf76087a34b3737b4a142f8ded46aaaabac79f4e0bcf86f2ea27f1507c571a

See more details on using hashes here.

File details

Details for the file skais_mapper-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for skais_mapper-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b6fcc13f467cb55dc5a52a5f34d3c4d6e91efa8dac014fccf17653452b90ff4e
MD5 32eafed474c12fd8f31e08d3b9ede704
BLAKE2b-256 756f9011dd3601d81f4167ff5697dece4beb6ffbe1ab4a83eca47211fa4d4da3

See more details on using hashes here.

File details

Details for the file skais_mapper-0.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for skais_mapper-0.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a1ee5a9deb5fe507109c00c4e4bdc6cd1297385261749c691722fdcc1d8cadf3
MD5 533bf3203fe281e6204d766a24cbf296
BLAKE2b-256 8f58f50c3885381d5571f94a5909f20119ca23bbec6156c77a7e3f1984d8288e

See more details on using hashes here.

File details

Details for the file skais_mapper-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for skais_mapper-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d8f8d4210c2b2240719c73bf4d868e942e2d4fda02d9da3e045e67b33cbac4c2
MD5 86ff30dc70533dc5fa44121ee96493bc
BLAKE2b-256 32124e833db1999a72939eb25e7efa79df95ba3b3c2e2ab86650b1f7e9afbb86

See more details on using hashes here.

File details

Details for the file skais_mapper-0.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for skais_mapper-0.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3c9d2b96d7edebfd9527fc2798da4a2471ff710ece6aac5e99dc43d19ada6a6c
MD5 9e04447fa65110c171f7e742df93b957
BLAKE2b-256 b1c6d051ed6b0c58a1018b6bbea29fdbc5eba032d71176ad7fe8bce1bcb2fc28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page