Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.03 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.03 KB

topas-merge-simulations

Python script to combine the statistical results of a TOPAS simulation that was split up into multiple batches

At the top of the script, specify:

  • the name of the output file
  • the input files in a list
  • the number of histories used for each file (in order)

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
.
.
.

Works using Python3, but written without any external dependencies.