Skip to main content

GUSTEAU-Translate

PyPI Supported Python Versions

Ruff

Demo translation software for Project GUSTEAU

View the documentation at https://gusteau-translate.readthedocs.io.

See the GUSTEAU specification at https://gusteau-spec.readthedocs.io.

Supported by the National Science Foundation through Award 2513426.

Requirements

Supported Python Versions is required. Python versions outside this range may work, but their usage is not supported, and at least some features are >Python 3.13.

Python packages

  • numpy - required for core routines
  • h5py - required for reading and saving snapshot data
  • swiftsimio - required for cosmological unit conversion
  • tomlkit - required for reading toml-based style files
  • ruamel-yaml - required for reading yaml-based style files
  • pydantic - required for validating translations
  • natsort - required for correctly handling multipart files
  • packingcubes - required for sorting the data and generating the packingcubes structure. Note that packingcubes is lazily imported in python 3.15+, so while it is not yet an optional package, it will be in the future.

Example Usage

GUSTEAU-Translate has a CLI via the alchemize command1:

alchemize -t style INPUT OUTPUT

which will translate the INPUT HDF5 snapshot using the specified style(see below), saving a GUSTEAU formatted snapshot to OUTPUT. The output file will be then validated against the GUSTEAU specification.

You can optionally skip the validation or translation steps by passing --to/--translate-only or --vo/--validate-only, if, e.g., you are testing GUSTEAU creation directly.

NOTE: Multipart input files that do not use virtual datasets should be specified via a psuedo-glob pattern. For example, if you have snapshot_XXX.0.hdf5, snapshot_XXX.1.hdf5, etc., you would specify the input file as snapshot_XXX (notice no .0, .hdf5).

Mulitpart output files can be specified via the --num-partfiles option, which will produce $num_partfiles + 1 outputs. The output files will look like output.hdf5, output.0.hdf5, output.1.hdf5, etc. output.hdf5 will contain virtual datasets comprised of the datasets in the partfiles.

As always, you can specify --help to get the available options.

Including packingcubes

You can additionally run the packingcubes software as part of the translation pipeline via -p/--packingcubes. This will spatially sort the data (currently all particle groups listed in /Header.ParticleNames in the output file) and save the ParticleCubes/PackedTree information at the same time it translates it.

This adds a little bit of time to the startup (for the initial cubing) and will use more memory while running. The contribution to the final snapshot size should be pretty minimal though; an EAGLE snapshot was actually smaller in GUSTEAU format.

Available Styles

The current available styles are

  • swift-eagle - for converting SWIFT-style snapshots2
  • illustrisTNG - for converting IllustrisTNG-style snapshots
  1. gusteau-alchemize and gusteau-translate also map to the same command. ↩

  2. This style was built off of the snapshots from the EAGLE simulation as found at CAMELS and so is based on SWIFT v1.0.0 ↩

Metadata

Release files for gusteau-translate 0.1.2

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

Source distribution (sdist)

Source distribution for gusteau-translate 0.1.2
File Size Uploaded Provenance Actions
gusteau_translate-0.1.2.tar.gz 125.4 kB With provenance Details for gusteau_translate-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gusteau-translate 0.1.2
File Interpreter ABI Platform Actions
gusteau_translate-0.1.2-py3-none-any.whl Python 3 none any Details for gusteau_translate-0.1.2-py3-none-any.whl

Total release size: 219.9 kB

Release files / gusteau_translate-0.1.2.tar.gz

Download URL gusteau_translate-0.1.2.tar.gz
Size 125.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b155ce44b0e87fff00822ebb54fbf13f818741c12832f32656705728355204f2
BLAKE2b-256 checksum
How to use checksums
f1854175c4c4b56a717b51541cd103a1d613659895c802320d73635f81069bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / gusteau_translate-0.1.2-py3-none-any.whl

Download URL gusteau_translate-0.1.2-py3-none-any.whl
Size 94.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df438fcc21f37c26c97462a0b40b4f521b194abf5478abff8de65009a7b0e92d
BLAKE2b-256 checksum
How to use checksums
2339cad3bb0b9fc4f5f50068ae0b4ce4a70a58792eeee444940630739ed5badc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for gusteau-translate 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gusteau_translate-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

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.2 This release

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