Skip to main content

A reader, writer and converter for the eqdsk format

Project description

Eqdsk

Hatch project linting - Ruff Downloads Actions status

An EQDSK reader and writer for GEQDSK (more soon), with COCOS identification and conversion.

There is support for writing an eqdsk to a JSON format (which is now preferred).

We have extended the EQDSK standard to optionally allow for the definition of a CoilSet.

Setup

We are pip installable therefore for the most recent release:

pip install eqdsk

or for the most recent commit

pip install git+https://github.com/Fusion-Power-Plant-Framework/eqdsk.git

For a developer setup please see CONTRIBUTING.md

Basic Usage

To read in an eqdsk (json or eqdsk) in its raw state:

from eqdsk import EQDSKInterface

EQDSKInterface.from_file('file.json', no_cocos=True)

To read in an eqdsk file with a known cocos format and convert it to a given cocos format:

EQDSKInterface.from_file('file.eqdsk', from_cocos=11, to_cocos=17)

Alternatively if the direction (clockwise or anticlockwise) and the units of phi (V.s or V.s/rad) are known, the cocos standard will be calculated for you:

EQDSKInterface.from_file('file.eqdsk', clockwise_phi=True, volt_seconds_per_radian=True)

CLI

This package includes a CLI tool for eqdsk exploration.

This can be accessed by running eqdsk in the terminal after installing the package (or in the Hatch cli environment, see CONTRIBUTING.md).

For more information on the CLI tool, run eqdsk --help.

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

eqdsk-0.7.0.tar.gz (280.7 kB view details)

Uploaded Source

Built Distribution

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

eqdsk-0.7.0-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eqdsk-0.7.0.tar.gz
  • Upload date:
  • Size: 280.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for eqdsk-0.7.0.tar.gz
Algorithm Hash digest
SHA256 c3ee247d07a40c50b8c34994f9c3e684b94debe5279ea93d01cebca844a4cdbe
MD5 da3a31d8e5f23ecb8ee97bf4f07d072a
BLAKE2b-256 50867b2e13dff4c28c9300daca90237b48cb663bb37fe2d9558484a3c32cae68

See more details on using hashes here.

Provenance

The following attestation bundles were made for eqdsk-0.7.0.tar.gz:

Publisher: publish.yml on Fusion-Power-Plant-Framework/eqdsk

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

File details

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

File metadata

  • Download URL: eqdsk-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for eqdsk-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8880b656ee51d9c86439d55411dd683941d7eb84551e9c59d49bbc46d6b00ea
MD5 d9950af65cec4d4b03791a5cdd17c62b
BLAKE2b-256 58c6057ff6254b309b7a920c2805b31a50bb5cee798428bee6e5979c24c8eea1

See more details on using hashes here.

Provenance

The following attestation bundles were made for eqdsk-0.7.0-py3-none-any.whl:

Publisher: publish.yml on Fusion-Power-Plant-Framework/eqdsk

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