Skip to content

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

License

Notifications You must be signed in to change notification settings

sebasj13/TopasMergeSimulations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages