EGS Brachy
An egs++ user code for rapid brachytherapy calculations
Loading...
Searching...
No Matches
Functions | Variables
eb_tests.phsp_scoring.test Namespace Reference

Functions

 compare_results (egslst, inp_name)
 

Variables

str EGSINP = "phsp_score.egsinp"
 
int TIME_LIMIT_S_PER_MHZ = 10/2993.
 
tuple SOURCE_WEIGHTS = (1., 9.)
 
tuple MAX_E = (0.05, 0.025,)
 
int NHIST = 1000
 
float RM = 0.511
 
dict EXPECTED
 

Detailed Description

A test that generates an IAEAphsp source with egs_brachy and then checks
the IAEA file to make sure it was created correctly.

Function Documentation

◆ compare_results()

eb_tests.phsp_scoring.test.compare_results (   egslst,
  inp_name 
)

Definition at line 29 of file test.py.

Variable Documentation

◆ EGSINP

str eb_tests.phsp_scoring.test.EGSINP = "phsp_score.egsinp"

Definition at line 13 of file test.py.

◆ EXPECTED

dict eb_tests.phsp_scoring.test.EXPECTED
Initial value:
1= {
2 'num_e': NHIST*SOURCE_WEIGHTS[0]/sum(SOURCE_WEIGHTS),
3 'num_p': NHIST*SOURCE_WEIGHTS[1]/sum(SOURCE_WEIGHTS),
4 'max_energy': 0.05,
5 'num_orig': NHIST,
6}

Definition at line 21 of file test.py.

◆ MAX_E

tuple eb_tests.phsp_scoring.test.MAX_E = (0.05, 0.025,)

Definition at line 17 of file test.py.

◆ NHIST

int eb_tests.phsp_scoring.test.NHIST = 1000

Definition at line 18 of file test.py.

◆ RM

float eb_tests.phsp_scoring.test.RM = 0.511

Definition at line 19 of file test.py.

◆ SOURCE_WEIGHTS

tuple eb_tests.phsp_scoring.test.SOURCE_WEIGHTS = (1., 9.)

Definition at line 16 of file test.py.

◆ TIME_LIMIT_S_PER_MHZ

int eb_tests.phsp_scoring.test.TIME_LIMIT_S_PER_MHZ = 10/2993.

Definition at line 14 of file test.py.