A reader, writer and converter for the eqdsk format
Project description
Eqdsk
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) and an IMAS database integration.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eqdsk-0.8.0.tar.gz.
File metadata
- Download URL: eqdsk-0.8.0.tar.gz
- Upload date:
- Size: 289.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20b3a52acdf699bb37f73c821386bfc28b9942694354ba58765832b956c47991
|
|
| MD5 |
b063f077ba79cb408074213780c3fc17
|
|
| BLAKE2b-256 |
4a710a7e7778480fdc3b18d8a04c3c6575177a226ccb8a90743257e398f010f7
|
Provenance
The following attestation bundles were made for eqdsk-0.8.0.tar.gz:
Publisher:
publish.yml on Fusion-Power-Plant-Framework/eqdsk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eqdsk-0.8.0.tar.gz -
Subject digest:
20b3a52acdf699bb37f73c821386bfc28b9942694354ba58765832b956c47991 - Sigstore transparency entry: 962707227
- Sigstore integration time:
-
Permalink:
Fusion-Power-Plant-Framework/eqdsk@6bffb1d5f2df19856f7e6a5873d5287e2b83f576 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/Fusion-Power-Plant-Framework
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6bffb1d5f2df19856f7e6a5873d5287e2b83f576 -
Trigger Event:
release
-
Statement type:
File details
Details for the file eqdsk-0.8.0-py3-none-any.whl.
File metadata
- Download URL: eqdsk-0.8.0-py3-none-any.whl
- Upload date:
- Size: 36.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c62464860d1f902fc5f7a926ffbc537ebcdfbf6edefaba07b8f34e80d8a79a64
|
|
| MD5 |
67ab60e435655d83fb467496eecee34d
|
|
| BLAKE2b-256 |
f7a938180df84d7124dc3a137f1f66e994b0369fa24bf7b416fb4a476ae8fd23
|
Provenance
The following attestation bundles were made for eqdsk-0.8.0-py3-none-any.whl:
Publisher:
publish.yml on Fusion-Power-Plant-Framework/eqdsk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eqdsk-0.8.0-py3-none-any.whl -
Subject digest:
c62464860d1f902fc5f7a926ffbc537ebcdfbf6edefaba07b8f34e80d8a79a64 - Sigstore transparency entry: 962707228
- Sigstore integration time:
-
Permalink:
Fusion-Power-Plant-Framework/eqdsk@6bffb1d5f2df19856f7e6a5873d5287e2b83f576 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/Fusion-Power-Plant-Framework
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6bffb1d5f2df19856f7e6a5873d5287e2b83f576 -
Trigger Event:
release
-
Statement type: