Skip to main content

gala integration for unxt (canonical: unxts.interop.gala)

Project description

unxts.interop.gala

gala integration for unxt.

This is the canonical package (unxts.interop.gala). It provides conversions between gala.units.UnitSystem and unxt.unitsystems.AbstractUnitSystem.

Install

pip install unxts.interop.gala

Usage

import unxts.interop.gala

Public API

unxts.interop.gala exposes two conversion functions:

  • convert_gala_unitsystem_to_unxt_unitsystem
  • convert_unxt_unitsystem_to_gala_unitsystem

These are plum.conversion_methods, registered with plum's dispatch table as a side effect of importing unxts.interop.gala. Prefer plum.convert(usys, ...) over calling either function directly, e.g.:

from plum import convert
import unxt as u
import gala.units as gu

convert(gu.galactic, u.AbstractUnitSystem)
convert(u.unitsystem("galactic"), gu.UnitSystem)

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

unxts_interop_gala-2.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

unxts_interop_gala-2.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unxts_interop_gala-2.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for unxts_interop_gala-2.0.0.tar.gz
Algorithm Hash digest
SHA256 08521ed686b3452c6e6016e068f9a0ac9cf4f3a77573edc89baa79c5098ff31e
MD5 489fbba27fd174f8649f116bfc807902
BLAKE2b-256 c386a1b4b2adbef5525064519669c004b2bc06566656e22717785a8c104028b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for unxts_interop_gala-2.0.0.tar.gz:

Publisher: cd-publish-unxts-interop-gala.yml on GalacticDynamics/unxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file unxts_interop_gala-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for unxts_interop_gala-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3dea23ff7af1291343dfc332e4b01b9c27113cfd7294a01af51b31b0aca96fa
MD5 018c3e2c83663ff6e78a350d9462ea72
BLAKE2b-256 59421995340145fb9e19eda6135f77a83e5c435650401547fd6e50d0eee40055

See more details on using hashes here.

Provenance

The following attestation bundles were made for unxts_interop_gala-2.0.0-py3-none-any.whl:

Publisher: cd-publish-unxts-interop-gala.yml on GalacticDynamics/unxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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