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 and Pluto (vtk), 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

Now yt.load will be able to read Pluto/Idefix .vtk output files, as well as Idefix .dmp dump files.

Strecthed grids support

yt_idefix 0.12.0 and newer

version 0.12.0 brings experimental native support for streched grids, which is under active development upstream, in yt itself.

Slices should now work seamlessly even with older versions of yt, however yt 4.1 (to be released) will be required to perform projections correctly.

In the meantime, I recommend installing yt from source. At the time of writing, the branch attached to the following pull request is required for projections with stretched grids:

https://github.com/yt-project/yt/pull/2998

yt_idefix 0.11 and older (deprecated)

yt_idefix ships a specialized loader function for datasets with streched grids yt_idefix.load_stretched. This function is only provided as a workaround 4.0.x limitations, but it's highly limited itself:

  • 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.13.2.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

yt_idefix-0.13.2-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yt_idefix-0.13.2.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for yt_idefix-0.13.2.tar.gz
Algorithm Hash digest
SHA256 e9b748d3dddb0473c8adafe2ea9c80bd9a7b04208f8ed13dc5d690daf4f89014
MD5 bf4f47367adf10db8d14238dc4d2ad51
BLAKE2b-256 ff05bae7a703175f3ea6b21e49171c8751292a0e7c9cfa0858d7df9222573330

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: yt_idefix-0.13.2-py3-none-any.whl
  • Upload date:
  • Size: 37.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for yt_idefix-0.13.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a64ea4e8f4a205de0bf55b79029fde2574c83b2061da1b8aeda40c46d6331343
MD5 6993ca3432dd785e1f1d23de45d4eaf0
BLAKE2b-256 7a9dc4f385f2df0fb825d82685d09fb874acc7cc87adf1dc092d9c6d10fa3b5d

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