Skip to main content

Code to compute the covariance matrix for the 3x2pt photometric survey in harmonic and real space.

Project description

Spaceborne


Documentation Status

Quickstart

For detailed instructions on how to install and use Spaceborne, please refer to the documentation.

To install the code, we recommend using a dedicated Conda environment. Clone the repository, then checkout the latest release (e.g. v2025.05.1) with

git checkout <latest_version_tag>

and run

conda env create -f environment.yaml
conda activate spaceborne
pip install .

As the code is evolving quite quickly at the moment, please make sure to check for new releases periodically

🐍 note: using mamba instead of conda in the first line will significantly speed up the environment creation. To install mamba, run conda install mamba in your base environment.

Spaceborne leverages julia for computationally intensive tasks. We recommend installing julia via juliaup:

curl -fsSL https://install.julialang.org | sh  # Install juliaup
juliaup default 1.10                           # Install Julia version 1.10

Then, install the required Julia packages:

julia -e 'using Pkg; Pkg.add("LoopVectorization"); Pkg.add("YAML"); Pkg.add("NPZ")'

Running the Code

All the available options and configurations can be found, along with their explanation, in the config.yaml file. To run Spaceborne with the configuration specified in the Spaceborne/config.yaml file, simply execute the following command:

python main.py

If you want to use a configuration file with a different name and/or location, you can instead run with

python main.py --config=<path_to_config_file>

for example:

python main.py --config="path/to/my/config/config.yaml"

To display the plots generated by the code, add the --show-plots flag:

python main.py --config="path/to/my/config/config.yaml" --show-plots

Additionally, in the config.yaml file you can set save_figs: True to save the figures in the <output_folder>/figs path.

Using Docker 🐋

If you find issues with the installation, you can happily disregard the above instructions and run the code through Docker. To do this, install Docker Desktop or the Docker engine; then, in the root of the cloned repository (again, remember to checkout the latest release), run:

docker-compose up --build

Note that the --build flag is only needed the first time you run the code (or if you modify the environment.yaml or Dockerfile, which is discouraged). For subsequent runs, simply do:

docker-compose up

Finally, to stop the container, do

docker-compose down

That's it! The container will use your local config.yaml file and output to the directories specified in your configuration, just as if you were running locally.


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

spaceborne-2025.7.0.tar.gz (125.2 kB view details)

Uploaded Source

Built Distributions

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

spaceborne-2025.7.0-py3-none-any.whl (132.3 kB view details)

Uploaded Python 3

spaceborne-2025.7.0-py2.py3-none-any.whl (137.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spaceborne-2025.7.0.tar.gz.

File metadata

  • Download URL: spaceborne-2025.7.0.tar.gz
  • Upload date:
  • Size: 125.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for spaceborne-2025.7.0.tar.gz
Algorithm Hash digest
SHA256 4558f97d2917df524c8cc304493133e4d26321cac6bc51addd9ebedb1799d073
MD5 65f2f47cd6c7a421bec2b209db0f5e62
BLAKE2b-256 b035796252882868c8c5b3aa521e9bc1445548810dca2e1fbd3c6ed6acac7c4b

See more details on using hashes here.

File details

Details for the file spaceborne-2025.7.0-py3-none-any.whl.

File metadata

  • Download URL: spaceborne-2025.7.0-py3-none-any.whl
  • Upload date:
  • Size: 132.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for spaceborne-2025.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c3cd5e404cad916dbb168628bcaabe12d71d93e2a31e21b4ba18d27e500eb4
MD5 290c573138bcd859f6f7d21ed82a30d9
BLAKE2b-256 3f37c15f1a100093e5b7e0c4ef2310b9fe311c40ee36eebfa9367a900bb30882

See more details on using hashes here.

File details

Details for the file spaceborne-2025.7.0-py2.py3-none-any.whl.

File metadata

  • Download URL: spaceborne-2025.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 137.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for spaceborne-2025.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9d166fd7d83afb117f47f9f14140b52a60c47b7cc471f3d51054da22a70db532
MD5 afb5c00d2b6d5edf0be8aec9b8cd2b5d
BLAKE2b-256 5e44a7458e32cf0ea37ef420825753aadce0eccb814d21813cc3a5022386aad0

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