Variables
submitScan Namespace Reference

Variables

 optimization_name = sys.argv[1]
 PARSE INPUT ARGUMENT #####. More...
 
 configuration = int(sys.argv[2])
 
 optimization = Optimizations.Optimization(optimization_name)
 
string macro_template = "../../macros/NoSnout.mac"
 
int n_scan_points = 30
 Loop over Parameters that were optimized ####. More...
 
 lower_limit = optimization.parameter_lower_limits[par_iter]
 
 upper_limit = optimization.parameter_upper_limits[par_iter]
 
 scan_value = lower_limit+scan_iter*(upper_limit-lower_limit)/n_scan_points
 
string macro_output = "../../macros/Optimizations/"
 
string macro_outputRHC = "../../macros/Optimizations/"
 
 oldmac = open(macro_template)
 
 oldmac_lines = oldmac.readlines()
 
 newmac = open(macro_output, 'w')
 
 newmacRHC = open(macro_outputRHC, 'w')
 
 par_values = optimization.readVariationFromMacros(configuration)
 
list modes = ["FHC"]
 
 output_file = newmac
 
 parameter = optimization.parameter_names[j]
 
 macro_set_stage = optimization.macro_set_stages[j]
 
 value = par_values[j]
 
string prefix = ""
 
 Horn1OCRadius = par_values[optimization.getParameterIndex(prefix+"Horn1OCRadius")];
 
 Horn1ICRadius1 = par_values[optimization.getParameterIndex(prefix+"Horn1ICRadius1")];
 
 Horn1ICRadius2 = par_values[optimization.getParameterIndex(prefix+"Horn1ICRadius2")];
 
 Horn1ICRadius3 = par_values[optimization.getParameterIndex(prefix+"Horn1ICRadius3")];
 
 Horn1ICRadius4 = par_values[optimization.getParameterIndex(prefix+"Horn1ICRadius4")];
 
 Horn1ICLength1 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength1")];
 
 Horn1ICLength2 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength2")];
 
 Horn1ICLength3 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength3")];
 
 Horn1ICLength4 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength4")];
 
 Horn1ICLength5 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength5")];
 
 Horn1ICLength6 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength6")];
 
 Horn1ICLength7 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength7")];
 
 HornARadiusOC = par_values[optimization.getParameterIndex(prefix+"HornARadiusOC")];
 
 HornARadius1 = par_values[optimization.getParameterIndex(prefix+"HornARadius1")];
 
 HornARadius2 = par_values[optimization.getParameterIndex(prefix+"HornARadius2")];
 
 HornALength = par_values[optimization.getParameterIndex(prefix+"HornALength")];
 
 HornAF1 = par_values[optimization.getParameterIndex(prefix+"HornAF1")];
 
 HornBRadiusOC = par_values[optimization.getParameterIndex(prefix+"HornBRadiusOC")];
 
 HornBRadius1 = par_values[optimization.getParameterIndex(prefix+"HornBRadius1")];
 
 HornBRadius2 = par_values[optimization.getParameterIndex(prefix+"HornBRadius2")];
 
 HornBRadius3 = par_values[optimization.getParameterIndex(prefix+"HornBRadius3")];
 
 HornBLength = par_values[optimization.getParameterIndex(prefix+"HornBLength")];
 
 HornBF1 = par_values[optimization.getParameterIndex(prefix+"HornBF1")];
 
 HornBF2 = par_values[optimization.getParameterIndex(prefix+"HornBF2")];
 
 HornBF3 = par_values[optimization.getParameterIndex(prefix+"HornBF3")];
 
 HornBF4 = par_values[optimization.getParameterIndex(prefix+"HornBF4")];
 
 HornBF5 = par_values[optimization.getParameterIndex(prefix+"HornBF5")];
 
 HornCRadiusOC = par_values[optimization.getParameterIndex(prefix+"HornCRadiusOC")];
 
 HornCRadius1 = par_values[optimization.getParameterIndex(prefix+"HornCRadius1")];
 
 HornCRadius2 = par_values[optimization.getParameterIndex(prefix+"HornCRadius2")];
 
 HornCRadius3 = par_values[optimization.getParameterIndex(prefix+"HornCRadius3")];
 
 HornCLength = par_values[optimization.getParameterIndex(prefix+"HornCLength")];
 
 HornCF1 = par_values[optimization.getParameterIndex(prefix+"HornCF1")];
 
 HornCF2 = par_values[optimization.getParameterIndex(prefix+"HornCF2")];
 
 HornCF3 = par_values[optimization.getParameterIndex(prefix+"HornCF3")];
 
 HornCF4 = par_values[optimization.getParameterIndex(prefix+"HornCF4")];
 
 HornCF5 = par_values[optimization.getParameterIndex(prefix+"HornCF5")];
 
 HornBLongPosition = par_values[optimization.getParameterIndex(prefix+"HornBLongPosition")]
 
 HornCLongPosition = par_values[optimization.getParameterIndex(prefix+"HornCLongPosition")]
 
float new_beam_size = 1.7
 
 temp = optimization.macro_commands[j].replace("SigmaX","SigmaY")
 

Variable Documentation

submitScan.configuration = int(sys.argv[2])

Definition at line 12 of file submitScan.py.

submitScan.Horn1ICLength1 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength1")];

Definition at line 99 of file submitScan.py.

submitScan.Horn1ICLength2 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength2")];

Definition at line 100 of file submitScan.py.

submitScan.Horn1ICLength3 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength3")];

Definition at line 101 of file submitScan.py.

submitScan.Horn1ICLength4 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength4")];

Definition at line 102 of file submitScan.py.

submitScan.Horn1ICLength5 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength5")];

Definition at line 103 of file submitScan.py.

submitScan.Horn1ICLength6 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength6")];

Definition at line 104 of file submitScan.py.

submitScan.Horn1ICLength7 = par_values[optimization.getParameterIndex(prefix+"Horn1ICLength7")];

Definition at line 105 of file submitScan.py.

submitScan.Horn1ICRadius1 = par_values[optimization.getParameterIndex(prefix+"Horn1ICRadius1")];

Definition at line 95 of file submitScan.py.

submitScan.Horn1ICRadius2 = par_values[optimization.getParameterIndex(prefix+"Horn1ICRadius2")];

Definition at line 96 of file submitScan.py.

submitScan.Horn1ICRadius3 = par_values[optimization.getParameterIndex(prefix+"Horn1ICRadius3")];

Definition at line 97 of file submitScan.py.

submitScan.Horn1ICRadius4 = par_values[optimization.getParameterIndex(prefix+"Horn1ICRadius4")];

Definition at line 98 of file submitScan.py.

submitScan.Horn1OCRadius = par_values[optimization.getParameterIndex(prefix+"Horn1OCRadius")];

Definition at line 94 of file submitScan.py.

submitScan.HornAF1 = par_values[optimization.getParameterIndex(prefix+"HornAF1")];

Definition at line 128 of file submitScan.py.

submitScan.HornALength = par_values[optimization.getParameterIndex(prefix+"HornALength")];

Definition at line 127 of file submitScan.py.

submitScan.HornARadius1 = par_values[optimization.getParameterIndex(prefix+"HornARadius1")];

Definition at line 125 of file submitScan.py.

submitScan.HornARadius2 = par_values[optimization.getParameterIndex(prefix+"HornARadius2")];

Definition at line 126 of file submitScan.py.

submitScan.HornARadiusOC = par_values[optimization.getParameterIndex(prefix+"HornARadiusOC")];

Definition at line 124 of file submitScan.py.

submitScan.HornBF1 = par_values[optimization.getParameterIndex(prefix+"HornBF1")];

Definition at line 134 of file submitScan.py.

submitScan.HornBF2 = par_values[optimization.getParameterIndex(prefix+"HornBF2")];

Definition at line 135 of file submitScan.py.

submitScan.HornBF3 = par_values[optimization.getParameterIndex(prefix+"HornBF3")];

Definition at line 136 of file submitScan.py.

submitScan.HornBF4 = par_values[optimization.getParameterIndex(prefix+"HornBF4")];

Definition at line 137 of file submitScan.py.

submitScan.HornBF5 = par_values[optimization.getParameterIndex(prefix+"HornBF5")];

Definition at line 138 of file submitScan.py.

submitScan.HornBLength = par_values[optimization.getParameterIndex(prefix+"HornBLength")];

Definition at line 133 of file submitScan.py.

submitScan.HornBLongPosition = par_values[optimization.getParameterIndex(prefix+"HornBLongPosition")]

Definition at line 152 of file submitScan.py.

submitScan.HornBRadius1 = par_values[optimization.getParameterIndex(prefix+"HornBRadius1")];

Definition at line 130 of file submitScan.py.

submitScan.HornBRadius2 = par_values[optimization.getParameterIndex(prefix+"HornBRadius2")];

Definition at line 131 of file submitScan.py.

submitScan.HornBRadius3 = par_values[optimization.getParameterIndex(prefix+"HornBRadius3")];

Definition at line 132 of file submitScan.py.

submitScan.HornBRadiusOC = par_values[optimization.getParameterIndex(prefix+"HornBRadiusOC")];

Definition at line 129 of file submitScan.py.

submitScan.HornCF1 = par_values[optimization.getParameterIndex(prefix+"HornCF1")];

Definition at line 146 of file submitScan.py.

submitScan.HornCF2 = par_values[optimization.getParameterIndex(prefix+"HornCF2")];

Definition at line 147 of file submitScan.py.

submitScan.HornCF3 = par_values[optimization.getParameterIndex(prefix+"HornCF3")];

Definition at line 148 of file submitScan.py.

submitScan.HornCF4 = par_values[optimization.getParameterIndex(prefix+"HornCF4")];

Definition at line 149 of file submitScan.py.

submitScan.HornCF5 = par_values[optimization.getParameterIndex(prefix+"HornCF5")];

Definition at line 150 of file submitScan.py.

submitScan.HornCLength = par_values[optimization.getParameterIndex(prefix+"HornCLength")];

Definition at line 145 of file submitScan.py.

submitScan.HornCLongPosition = par_values[optimization.getParameterIndex(prefix+"HornCLongPosition")]

Definition at line 153 of file submitScan.py.

submitScan.HornCRadius1 = par_values[optimization.getParameterIndex(prefix+"HornCRadius1")];

Definition at line 142 of file submitScan.py.

submitScan.HornCRadius2 = par_values[optimization.getParameterIndex(prefix+"HornCRadius2")];

Definition at line 143 of file submitScan.py.

submitScan.HornCRadius3 = par_values[optimization.getParameterIndex(prefix+"HornCRadius3")];

Definition at line 144 of file submitScan.py.

submitScan.HornCRadiusOC = par_values[optimization.getParameterIndex(prefix+"HornCRadiusOC")];

Definition at line 141 of file submitScan.py.

submitScan.lower_limit = optimization.parameter_lower_limits[par_iter]

Definition at line 26 of file submitScan.py.

string submitScan.macro_output = "../../macros/Optimizations/"

Definition at line 38 of file submitScan.py.

string submitScan.macro_outputRHC = "../../macros/Optimizations/"

Definition at line 39 of file submitScan.py.

submitScan.macro_set_stage = optimization.macro_set_stages[j]

Definition at line 76 of file submitScan.py.

string submitScan.macro_template = "../../macros/NoSnout.mac"

Definition at line 15 of file submitScan.py.

list submitScan.modes = ["FHC"]

Definition at line 54 of file submitScan.py.

int submitScan.n_scan_points = 30

Loop over Parameters that were optimized ####.

Definition at line 18 of file submitScan.py.

float submitScan.new_beam_size = 1.7

Definition at line 223 of file submitScan.py.

submitScan.newmac = open(macro_output, 'w')

Definition at line 48 of file submitScan.py.

submitScan.newmacRHC = open(macro_outputRHC, 'w')

Definition at line 49 of file submitScan.py.

submitScan.oldmac = open(macro_template)

Definition at line 45 of file submitScan.py.

submitScan.oldmac_lines = oldmac.readlines()

Definition at line 46 of file submitScan.py.

submitScan.optimization = Optimizations.Optimization(optimization_name)

Definition at line 14 of file submitScan.py.

submitScan.optimization_name = sys.argv[1]

PARSE INPUT ARGUMENT #####.

Definition at line 11 of file submitScan.py.

submitScan.output_file = newmac

Definition at line 60 of file submitScan.py.

submitScan.par_values = optimization.readVariationFromMacros(configuration)

Definition at line 51 of file submitScan.py.

submitScan.parameter = optimization.parameter_names[j]

Definition at line 75 of file submitScan.py.

submitScan.prefix = ""

Definition at line 88 of file submitScan.py.

submitScan.scan_value = lower_limit+scan_iter*(upper_limit-lower_limit)/n_scan_points

Definition at line 35 of file submitScan.py.

submitScan.temp = optimization.macro_commands[j].replace("SigmaX","SigmaY")

Definition at line 227 of file submitScan.py.

submitScan.upper_limit = optimization.parameter_upper_limits[par_iter]

Definition at line 27 of file submitScan.py.

submitScan.value = par_values[j]

Definition at line 79 of file submitScan.py.