Skip to content

Set of tools aiding optimization of delivered dose (modulator design)

License

Notifications You must be signed in to change notification settings

DataMedSci/ProtonBeamsComposer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProtonBeamsComposer

Under development...

wercker status

Example usage

From the main directory execute line below to generate a SOBP with range 15.0 mm and 15.0 mm spread.

$ python run.py --range 15 --spread 15 --verbose 

Full range and full spread without plots, but with verbose logging:

$ python run.py -r 1 -s 1 -vnf both

Use external file with BP data data\cydos1.dat and generate a range 25.0 mm and spread 11.0 mm SOBP with quiet plotting.

$ python run.py -i data\cydos1.dat -r 25 -s 11 -n

Available parameters for run.py

Required:
-s, --spread [float]
-r, --range [float]

Advanced:
-n, --name [str] (name for output directory)
-f, --full ['range', 'spread', 'both'] (generation options, result based on input file)
-p, --halfmod (use half range as modulation value)
    --smooth (use Savgol filter to smooth input data)
    --window [int, odd] (specify window used by Savgol filter)
-g, --add_to_gott [int] (add this number of peaks to calculated with Gottschalk rule, can be negative)
-k, --peaks [int] (number of peaks in optimization - omits calculation using Gottschalk rule)
-i, --input_bp_file [str] (file with BP data, first two columns should contain domain and values respectively)
-d, --delimiter [str] (delimiter used in BP file)

Logging etc.:
-v, --verbose (DEBUG logging level)
-q, --quiet (do not print anything below WARNING level)
-o, --no-plot (disable showing most of the plots)

About

Set of tools aiding optimization of delivered dose (modulator design)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages