pytokamap
Quickstart
The example below maps signals from a UDA shot to a Zarr or NetCDF file.
import pytokamap
mapper = pytokamap.load_mapping("uda.jinja", "globals.json")
mapper.to_zarr(30420, "30420.zarr")
mapper.to_netcdf(30420, "30420.nc")
With the following example template mapping file called uda.jinja:
{
{% macro comma(loop) %}
{% if not loop.last %},{% endif %}
{% endmacro %}
"amc/plasma_current": {
"MAP_TYPE": "PLUGIN",
"PLUGIN": "UDA",
"ARGS": {"signal": "ip", "format": "IDA"},
"SCALE": 1000
},
{% for index in range(1, TCAM.N+1) %}
"_xsx/tcam_{{index}}": {
"MAP_TYPE": "PLUGIN",
"PLUGIN": "UDA",
"ARGS": {"signal": "XSX/TCAM/{{ index }}", "format": "IDA"}
},
{% endfor %}
"xsx/tcam": {
"MAP_TYPE": "CUSTOM",
"CUSTOM_TYPE": "COMBINE",
"ARGS": [
{% for index in range(1, TCAM.N+1) %}
"_xsx/tcam_{{index}}"{{ comma(loop) }}
{% endfor %}
]
}
}
And the following globals.json file:
{
"TCAM": {
"N": 3
}
}
Metadata
Release files for pytokamap 2024.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytokamap-2024.0.0.tar.gz | 13.0 kB | Without provenance | Details for pytokamap-2024.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytokamap-2024.0.0-py3-none-any.whl | Python 3 | none | any | Details for pytokamap-2024.0.0-py3-none-any.whl |
Total release size: 26.0 kB
Release files / pytokamap-2024.0.0.tar.gz
| Download URL | pytokamap-2024.0.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c2757accdd5017ccecea7ae97ad2fd20d95186f8f8513905798bf00211d67de
|
|
BLAKE2b-256 checksum How to use checksums |
a0f6c7bce9df7c57d787487ed459a1470fdbe750a2b901b63573c33507624ed7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / pytokamap-2024.0.0-py3-none-any.whl
| Download URL | pytokamap-2024.0.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1123735cc0259c77dfc34d1fa266142b718eed356e4ff9fc9077bfb55e379b18
|
|
BLAKE2b-256 checksum How to use checksums |
72b1ee5376079b54ed3100692714d1daff5a2e11eb66bb9684fa106180e07016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for pytokamap 2024.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.