Skip to main content

Manticore Data access

Project description

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.

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

manticore_data-2.0.0.tar.gz (22.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: manticore_data-2.0.0.tar.gz
  • Upload date:
  • Size: 22.3 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.0.tar.gz
Algorithm Hash digest
SHA256 3119daddedfa13052e83e1a5e1d59167978c6b50a156e22b264e948c81510df1
MD5 3ed4c5d4f9cad6836f48e6566406302d
BLAKE2b-256 f1654825c94d58b3b1e8463c2575c7a610e423dc2abd097c00d07d2615587f42

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