semvec/pypi-packages huggingface dataset:
topas-create-graphs 2.0.3
GUI to plot the results of a topas simulation
Requires Python: >=3.8

# topas-create-graphs

## A script to automatically plot the results of a topas simulation

Works for percentage depth dose (pdd) and dose profiles (dp). Depth dose measurements are assumed to be in the z-direction, dose profiles in the x- or y-directions.
Language is in german.

## Installation

Install using <b>pip install topas-create-graphs</b>. Then, start the GUI by running:

<img src="https://user-images.githubusercontent.com/87897942/149772476-5d950e25-9a60-40a7-a739-c80f763405c9.png"  width="400" height="200" />

## Automatically calculates relevant parameters

| Measurement type | Parameters |         |              |             |                |                 |
|------------------|:----------:|:-------:|:------------:|:-----------:|:--------------:|:---------------:|
|                  |            |         |              |             |                |                 |
| Depth dose       |  Q-Factor  |  z<sub>max</sub>  |              |             |                |                 |
|                  |            |         |              |             |                |                 |
| Dose profile     |    FWHM    | CAX<sub>dev</sub>  | FLAT<sub>Krieger</sub>  | FLAT<sub>stddev</sub>  | Penumbra (L&R) | Integral (L&R)  |

- Q-Factor : Radiation Quality Factor
- z<sub>max</sub> : Depth at Maximum

- FWHM : Full-Width at Half-Maximum
- CAX<sub>dev</sub> : Centre Axis Deviation
- FLAT<sub>Krieger</sub> : Flatness of Dose Plateau (Definitionby Krieger)
- FLAT<sub>stddev</sub> : Flatness of Dose Plateau (Standard Deviation)
- Penumbra (L&R) : Width of Left and Right Penumbra
- Integral (L&R) : Integral below Left and Right Penumbra

### Assumes a ".csv" input file format from a TOPAS Scorer with the following header format:

\# TOPAS Version: {...}  
\# Parameter File: {...}.txt  
\# Results for scorer {...}  
\# Scored in component: {...}  
\# X in {...} bin of {...} cm  
\# Y in 1 {...} of {...} cm  
\# Z in {...} bins of {...} cm  
\# DoseToMedium ( Gy ) : {Sum/Mean}   Standard_Deviation     
Voxel Coordinate X, Voxel Coordinate Y, Voxel Coordinate Z, {Sum/Mean} Value, Standard_Deviation Value   
                 .   
                 .   
                 .   
## Dependencies

Uses the beautiful Azure-ttk dark theme by @rdbende.
Requires python3, numpy, scipy, matplotlib, PIL, cv2, and tkinter.
flex-format 0.2.18
A flexible file format for astronomical (and other) data
Requires Python: >=3.6

Flex
====

The flexible file fomat.

Structure:
 - main folder tar (.gz)
 - contains one (1) header.json file, with Metadata (primary header)
 - contains any number of folders with more data
 - e.g. numpy data, pandas table
 - each folder must contain a header in the form of a header.json file
 - each type of container gets a file in "extension", container type is set in that extensions header.json