Skip to main content

veloce

veloce_logo

arXiv

Welcome to veloce, the velocity power spectrum covariance emulator! We use an emulator based on neural networks to accelerate the prediction of covariance matrices for different cosmologies in the context of supernovae studies. If you are interested and want to know more, check out the paper, raise an issue or contact Davide Piras.

Installation

To use the emulator and/or sample your supernovae posterior, follow these steps:

  1. (optional) conda create -n veloce python=3.11 jupyter ipython=8.20 (create a custom conda environment with python 3.11)

  2. (optional) conda activate veloce (activate it)

  3. Install the package:

     pip install velocemu
     python -c 'import velocemu'
    

    or alternatively, clone the repository and install it:

     git clone https://github.com/dpiras/veloce.git
     cd veloce
     pip install . 
     python -c 'import velocemu'
    

Usage

Cloning the repository will also give you access to all Jupyter notebooks, which include information on how to generate a single element of the covariance, use the emulator, and sample the posterior.

Trained models

You can find the available models in this folder, which will be updated when new models become available. Currently, we provide the model that leads to the final results of the paper, namely the nonlinear case with fixed $\sigma_{\rm u}$, but more models are in production. If you are interested in other models, please reach out or contact Davide Piras. Also note that it should be straightforward for you to train your own models using CosmoPower, and then add them under velocemu/trained_models.

Contributing and contacts

Feel free to fork this repository to work on it; otherwise, please raise an issue or contact Davide Piras.

Citation

If you use veloce, please cite the corresponding paper:

 @ARTICLE{Piras25,
      author = {{Piras}, Davide and {Sorrenti}, Francesco and {Durrer}, Ruth and {Kunz}, Martin},
      title = "{Anchors no more: Using peculiar velocities to constrain $H_0$ and the primordial Universe without calibrators}",
      journal = {arXiv e-prints},
      year = 2025,
      month = apr,
      eid = {arXiv:2504.10453},
      pages = {arXiv:2504.10453},
      doi = {10.48550/arXiv.2504.10453},
      archivePrefix = {arXiv},
      eprint = {2504.10453},
      primaryClass = {astro-ph.CO},
      adsurl = {https://ui.adsabs.harvard.edu/abs/2025arXiv250410453P},
 }

License

veloce is released under the GPL-3 license (see LICENSE) subject to the non-commercial use condition.

 veloce
 Copyright (C) 2025 Davide Piras & contributors

 This program is released under the GPL-3 license (see LICENSE.txt), subject to a non-commercial use condition.

Metadata

Release files for velocemu 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for velocemu 0.1.1
File Size Uploaded Provenance Actions
velocemu-0.1.1.tar.gz 5.0 MB Without provenance Details for velocemu-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for velocemu 0.1.1
File Interpreter ABI Platform Actions
velocemu-0.1.1-py3-none-any.whl Python 3 none any Details for velocemu-0.1.1-py3-none-any.whl

Total release size: 10.0 MB

Release files / velocemu-0.1.1.tar.gz

Download URL velocemu-0.1.1.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
7bba4a95fdb0cdf995bbcadeeff734d32fe4fdc5a907691b2567ad4e35774cc6
BLAKE2b-256 checksum
How to use checksums
96d3f031f215412b36c93cc04b1c41eb77bb6d31d829c29298d8a1ae37f70f19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / velocemu-0.1.1-py3-none-any.whl

Download URL velocemu-0.1.1-py3-none-any.whl
Size 5.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3563d8ad093dedbcc7ba94ffe8a76724ed1acbd751c9dcf983f535cee2184e1d
BLAKE2b-256 checksum
How to use checksums
db6e0ceef0b0a49892e24fb1385f62a9ca67ecc450c1e797efc898e64c6a75b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Security for velocemu 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

0.1.1 This release

2 release files No 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