Skip to main content

Tomotok

Framework for tomographic inversion of fusion plasmas focusing on inversion methods based on discretisation. Structured as a namespace package to ease implementation on different experiments and for various diagnostics.

Core

The documentation for the Core can be found on this link.

The Core package of Tomotok implements various discretization algorithm that are used for tomography of tokamak plasma. It is required by specific packages that can create automated database access for a given fusion experimental device and ease the routine tomography computation. Together with the Core package, simple GUI for result analysis is distributed.

Inversions

The algorithms take numpy.ndarrays or scipy.sparse matrix objects as input to be able to run independently on the rest of the package in order to promote interoperability with other codes (e.g. ToFu)

Currently implemented algorithms:

  • Minimum Fisher Regularisation for sparse matrices using scipy.sparse.linalg.spsolve
  • Minimum Fisher Regularisation for sparse matrices using cholesky decomposition from scikit.sparse
  • SVD linear algebraic inversion for dense matrices
  • GEV linear algebraic inversion with optimization for sparse matrices
  • Biorthogonal Basis decomposition for dense matrices
  • Biorthogonal Basis decomposition optimized for sparse matrices (scipy, cholmod)

Auxiliary features

Apart from the main inversion methods some auxiliary features are also included. In order to make routine computation of inversions a database interface was designed using template classes. These can load signals, detector view geometry and magnetic flux reconstruction in format usually used for tokamak data.

Simple synthetic diagnostic framework is also implemented. It can be used for testing the implemented algorithms. It uses regular rectangular nodes and assumption of toroidal symmetry as it is the simplest case often used for inversions of tokamak plasma radiation.

Implemented auxiliary features:

  • Template classes for automated database interface
  • Geometry matrix computation using numerical integration and single line of sight approximation
  • Smoothing matrix computation, both isotropic and anisotropic (based on magnetic flux surfaces)
  • Simple phantom model generators (isotropic and anisotropic)
  • Other tools for processing

Graphical user interface

Simple graphical user interface for visualisation and post-processing of tomography results is included in the Core package. It is based on modular system of windows. It uses main window to spawn child windows for analysis to customize displayed information based on user needs.

Citing the Code

"J. Svoboda, J. Cavalier, O.Ficker, M. Imrisek, J. Mlynar and M. Hron, Tomotok: python package for tomography of tokamak plasma radiation, Journal of Instrumentation 16.12 (2021): C12015." DOI

Release files for tomotok 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tomotok 1.3.1
File Size Uploaded
tomotok-1.3.1.tar.gz 91.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tomotok 1.3.1
File Interpreter ABI Platform
tomotok-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 178.9 kB

Release files / tomotok-1.3.1.tar.gz

Download URL tomotok-1.3.1.tar.gz
Size 91.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1b7d568dedfa1ebad89deea50c1363c67f141e9804454cd4d7859d49a623a485
BLAKE2b-256 checksum
How to use checksums
f130dea6193b5b789147e5a46763647d0339c483cf6c2e2aa7cbfed12e947b48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.8

Release files / tomotok-1.3.1-py3-none-any.whl

Download URL tomotok-1.3.1-py3-none-any.whl
Size 87.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb7102df16bd9a25846c8297cd734c6bdb2bb3f6fe98d2a4dfa2c543fd9faa62
BLAKE2b-256 checksum
How to use checksums
c80810aacc1414a7f081eea110768572223d50cb977ee41a12a23cf5af7bdcde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.8

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page