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.

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.7.0.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

yt_idefix-0.7.0-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yt_idefix-0.7.0.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for yt_idefix-0.7.0.tar.gz
Algorithm Hash digest
SHA256 e791934b7a9251be2919dfcbeae1f1244a0d57f8e01435d7c20d7dfab278ceb9
MD5 981f5b34b03d8a709c333f837b01757d
BLAKE2b-256 4bb9bb4e4f6c539db9a3415053fe6c7bae6e7c50b9b9911e472dea6e5c18350c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yt_idefix-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for yt_idefix-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3335968d4d349e09eb7bc3849b5c8163f94f9a3dfdfd687e9497eb2e2abe2d80
MD5 15cf2ebceec5a27a0eaa493aebfead66
BLAKE2b-256 5d727130c60800f030a713dbfc3e7fd0a948504318f431eda2632dbb841928ab

See more details on using hashes here.

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