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

Functions

 extract_all_doses (egslst)
 
 values_close (a, b, max_percent_diff=0.001)
 
 values_close_abs (a, b, max_diff=0.001)
 
 read_csv_spectrum (fname)
 
 doses_approx_equal (d1, d1_unc, d2, d2_unc, max_percent_diff=None, compare_unc=True, max_unc_percent_diff=None)
 
 read3ddose (fname)
 
 compare_3ddose_files (f1, f2, max_percent_diff=None)
 

Variables

str REG_DOSE_UNC_RE = "\s+(\d)+\s+\d+\s+\d+\..*?\s+(.*?)\s+\+/-\s+(.*?)%\s+(.*?)\s+\+/-\s+(.*?)%"
 

Function Documentation

◆ compare_3ddose_files()

eb_tests.utils.compare_3ddose_files (   f1,
  f2,
  max_percent_diff = None 
)

Definition at line 89 of file utils.py.

◆ doses_approx_equal()

eb_tests.utils.doses_approx_equal (   d1,
  d1_unc,
  d2,
  d2_unc,
  max_percent_diff = None,
  compare_unc = True,
  max_unc_percent_diff = None 
)

Definition at line 49 of file utils.py.

◆ extract_all_doses()

eb_tests.utils.extract_all_doses (   egslst)
return all regions and doses from egslst file. This may
include doses from more than one phantom

Definition at line 7 of file utils.py.

◆ read3ddose()

eb_tests.utils.read3ddose (   fname)

Definition at line 65 of file utils.py.

◆ read_csv_spectrum()

eb_tests.utils.read_csv_spectrum (   fname)

Definition at line 33 of file utils.py.

◆ values_close()

eb_tests.utils.values_close (   a,
  b,
  max_percent_diff = 0.001 
)

Definition at line 24 of file utils.py.

◆ values_close_abs()

eb_tests.utils.values_close_abs (   a,
  b,
  max_diff = 0.001 
)

Definition at line 30 of file utils.py.

Variable Documentation

◆ REG_DOSE_UNC_RE

str eb_tests.utils.REG_DOSE_UNC_RE = "\s+(\d)+\s+\d+\s+\d+\..*?\s+(.*?)\s+\+/-\s+(.*?)%\s+(.*?)\s+\+/-\s+(.*?)%"

Definition at line 4 of file utils.py.