|
ARTEMIS
|
Functions | |
| def | listToString (finalstring) |
Variables | |
| list | data = [(line.strip()).split() for line in myfile] |
| open text file and read data ##### More... | |
| list | d_lists = data[0:3] |
| derivative data ##### More... | |
| list | d_str = [val for sublist in d_lists for val in sublist] |
| list | d_float = [float(i) for i in d_str] |
| list | dx = d_float[0] |
| list | dy = d_float[1] |
| list | dz = d_float[2] |
| list | dx1 = dx/2 |
| list | dy1 = dy/2 |
| list | dz1 = dz/2 |
| list | coordinate_data = data[3:] |
| coordinate data ##### More... | |
| list | ExString = [] |
| list | EyString = [] |
| list | EzString = [] |
| x_lo = coordinate[0] | |
| testing coordinates to find a normal ##### More... | |
| x_hi = coordinate[3] | |
| y_lo = coordinate[1] | |
| y_hi = coordinate[4] | |
| z_lo = coordinate[2] | |
| z_hi = coordinate[5] | |
| string | datastring = f"(x >= {x_lo} - ({dx1})) * (x <= {x_hi} + ({dx1})) * (y >= {y_lo} - ({dy1})) * (y <= {y_hi} + ({dy1})) * (z >= {z_lo} - ({dz1})) * (z <= {z_hi} + ({dz1})) + " |
| def | x = listToString(ExString)[:-3] |
| Formats datastring to remove "+" at the end of the string #####. More... | |
| def | y = listToString(EyString)[:-3] |
| def | z = listToString(EzString)[:-3] |
| def Excitation_Flag_Generator.listToString | ( | finalstring | ) |
| list Excitation_Flag_Generator.coordinate_data = data[3:] |
coordinate data #####
| list Excitation_Flag_Generator.d_float = [float(i) for i in d_str] |
| list Excitation_Flag_Generator.d_lists = data[0:3] |
derivative data #####
| list Excitation_Flag_Generator.d_str = [val for sublist in d_lists for val in sublist] |
| list Excitation_Flag_Generator.data = [(line.strip()).split() for line in myfile] |
open text file and read data #####
formatting text file for extracting data #####
| string Excitation_Flag_Generator.datastring = f"(x >= {x_lo} - ({dx1})) * (x <= {x_hi} + ({dx1})) * (y >= {y_lo} - ({dy1})) * (y <= {y_hi} + ({dy1})) * (z >= {z_lo} - ({dz1})) * (z <= {z_hi} + ({dz1})) + " |
| list Excitation_Flag_Generator.dx = d_float[0] |
| list Excitation_Flag_Generator.dx1 = dx/2 |
| list Excitation_Flag_Generator.dy = d_float[1] |
| list Excitation_Flag_Generator.dy1 = dy/2 |
| list Excitation_Flag_Generator.dz = d_float[2] |
| list Excitation_Flag_Generator.dz1 = dz/2 |
| list Excitation_Flag_Generator.ExString = [] |
| list Excitation_Flag_Generator.EyString = [] |
| list Excitation_Flag_Generator.EzString = [] |
| def Excitation_Flag_Generator.x = listToString(ExString)[:-3] |
Formats datastring to remove "+" at the end of the string #####.
| Excitation_Flag_Generator.x_hi = coordinate[3] |
| Excitation_Flag_Generator.x_lo = coordinate[0] |
testing coordinates to find a normal #####
| def Excitation_Flag_Generator.y = listToString(EyString)[:-3] |
| Excitation_Flag_Generator.y_hi = coordinate[4] |
| Excitation_Flag_Generator.y_lo = coordinate[1] |
| def Excitation_Flag_Generator.z = listToString(EzString)[:-3] |
| Excitation_Flag_Generator.z_hi = coordinate[5] |
| Excitation_Flag_Generator.z_lo = coordinate[2] |