Skip to main content

An extension module for yt, adding a frontend for Idefix

Project description

yt_idefix

PyPI PyPI yt-project

CI pre-commit.ci status Code style: black Imports: isort

A maturing yt frontend for Idefix, packaged as an extension for yt. This frontend is a candidate for integration in the core yt code base.

Starting from version 0.8.0, Pluto vtk files are also supported by this frontend.

Installation

pip install yt_idefix

Usage

After importing yt itself, make sure to activate the extension

import yt
import yt_idefix

Single dump files as well as time series can be loaded directly with yt.load, e.g.,

ds = yt.load("dump.0054.dmp")
ts = yt.load("dump.00??.dmp")

For vtk files, with yt < 4.0.2, a specialized loader function is provided

ds = yt_idefix.load("data.0042.vtk")

With yt >= 4.0.2 (not released yet), this workaround will not be necessary and yt.load will be usable directly.

Strecthed grids support

yt_idefix comes a specialized loader function for datasets with streched grids yt_idefix.load_stretched. This function is experimental. Here are its known limitations.

  • no field magic (no aliasing, or dimensionalization, or automatic derived field generation)
  • no lazy loading (all data has to reside in memory)
  • projections are not supported
  • only supports vtk outputs (not dumps)

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

yt_idefix-0.10.0.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

yt_idefix-0.10.0-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file yt_idefix-0.10.0.tar.gz.

File metadata

  • Download URL: yt_idefix-0.10.0.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for yt_idefix-0.10.0.tar.gz
Algorithm Hash digest
SHA256 316750091d5c70994d82a04fcd7528ec5de1a76c76d0600bff6ecbd0e289d01b
MD5 c374920c1b063b8e6d3e66d6573f5766
BLAKE2b-256 8457a52c409f9dc1bcac1aa07283a7934caab10576155d545a6abb4a45090f85

See more details on using hashes here.

Provenance

File details

Details for the file yt_idefix-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: yt_idefix-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for yt_idefix-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f21075aebf82780a0774d8964cf7f732671dac6f143aa0d61b6b1732611e6911
MD5 683aaf4274ae8ce739a243d2dddf3429
BLAKE2b-256 5ea3d2b0296a2076d37d3f36c3b6b682cdc01f31b7e63a80fe13c4fbeb4ec93f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page