Skip to main content

Manticore Data Module

A Python module for loading and managing data from an S3 bucket.

ATTENTION (April 30th 2026): BACKEND CHANGED. PLEASE UPDATE TO MANTICORE_DATA >=1.8.0

Overview

The manticore_data module is designed to load and manage data from an S3 bucket. It provides functionalities for handling different types of data products such as velocity fields, monofonic data, submit scripts, and whitenoise data.

Installation

To install the module, clone the repository and install the required dependencies:

pip install git+https://git.aquila-consortium.org/Aquila-Consortium/manticore_data/

Usage

Initialization

First, import the module and initialize the ManticoreDataLoader class. The campaign generation is chosen once, in the constructor, and the loader is bound to it for its whole lifetime — no method takes a generation argument. Create a second loader to read a different generation.

from manticore_data import ManticoreDataLoader, ManticoreGeneration

loader = ManticoreDataLoader(ManticoreGeneration.Local)

Loading Data

To load Halo catalog data from the S3 bucket:

data = loader.get_soap_catalog_files(resolution=1024, snapshot_number=70)

To retrieve a file element of the main chain:

mcmc = loader.get_product_files("chain", as_file_objects=True)

Be aware that these files are about 400 MB big each.

One

Configuration

The module uses a Settings class to manage configuration settings. You can configure the mirror URL and cache directory by modifying the .env file or setting environment variables.

from manticore_data.settings import settings

print(settings.manticore_data_mirror)
print(settings.cache_dir)

Cache management

To clear the cache entirely:

from manticore_data import ManticoreFile

ManticoreFile.clear_cache()

To get information on the cache

ManticoreFile.get_cache_info()

License

This project is licensed under the GPL License - see the LICENSE file for details.

Download files

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

Source Distribution

manticore_data-2.0.1.tar.gz (22.4 kB view details)

Uploaded Source

File details

Details for the file manticore_data-2.0.1.tar.gz.

File metadata

  • Download URL: manticore_data-2.0.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for manticore_data-2.0.1.tar.gz
Algorithm Hash digest
SHA256 a9a2ffc7e9b6ba43fc9961cefaccca98dbda64bd99a20b63db07218f9cc8cf49
MD5 a99fa6edf59da68d178c3f976442e16d
BLAKE2b-256 2a43eb006e7f9a122da7ad0b15eec73cba551eba890ad6fca7b9292b77000d08

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.1 This release

1 file

2.0.0

1 file

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