equal
deleted
inserted
replaced
108 """ |
108 """ |
109 seek into the csv table to a section ( section_name match 1st field ) |
109 seek into the csv table to a section ( section_name match 1st field ) |
110 return the matching row without first field |
110 return the matching row without first field |
111 """ |
111 """ |
112 fields = [None] |
112 fields = [None] |
113 while(fields[0] != section_name): |
113 while fields[0] != section_name: |
114 fields = table.pop(0) |
114 fields = table.pop(0) |
115 return fields[1:] |
115 return fields[1:] |
116 |
116 |
117 |
117 |
118 def get_standard_funtions_input_variables(table): |
118 def get_standard_funtions_input_variables(table): |
121 return a { ParameterName: Type, ...} |
121 return a { ParameterName: Type, ...} |
122 """ |
122 """ |
123 variables = find_section("Standard_functions_variables_types", table) |
123 variables = find_section("Standard_functions_variables_types", table) |
124 standard_funtions_input_variables = {} |
124 standard_funtions_input_variables = {} |
125 fields = [True, True] |
125 fields = [True, True] |
126 while(fields[1]): |
126 while fields[1]: |
127 fields = table.pop(0) |
127 fields = table.pop(0) |
128 variable_from_csv = dict([(champ, val) for champ, val in zip(variables, fields[1:]) if champ != '']) |
128 variable_from_csv = dict([(champ, val) for champ, val in zip(variables, fields[1:]) if champ != '']) |
129 standard_funtions_input_variables[variable_from_csv['name']] = variable_from_csv['type'] |
129 standard_funtions_input_variables[variable_from_csv['name']] = variable_from_csv['type'] |
130 return standard_funtions_input_variables |
130 return standard_funtions_input_variables |
131 |
131 |