Commits
179 179 | blparam_dic['lthre'] = ['0.'] * 4 + ['3.', '', '', '0.'] |
180 180 | blparam_dic['ledge'] = [0] * 4 + [10, 50, '', 0] |
181 181 | blparam_dic['redge'] = [0] * 4 + [10, 50, '', 0] |
182 182 | blparam_dic['chavg'] = [0] * 4 + [4, '', '', 0] |
183 183 | blparam_dic['btype'] = ['poly'] + ['chebyshev'] * 2 + \ |
184 184 | ['poly', 'chebyshev', 'poly'] + ['cspline'] * 2 |
185 185 | blparam_dic['order'] = [0, 0, 1, 1, 2, 2, '', ''] |
186 186 | blparam_dic['npiec'] = [0] * 6 + [1] * 2 |
187 187 | blparam_dic['nwave'] = [[]] * 3 + [''] * 2 + [[]] * 3 |
188 188 | |
189 - | ### helper functions for tests ### |
189 + | # |
190 + | # helper functions for tests |
191 + | # |
190 192 | def _createBlparamFile(self, file, param_order, val, option=''): |
191 193 | nspec = 8 |
192 194 | f = open(file, 'w') |
193 195 | assert(len(param_order) == len(val.keys())) |
194 196 | for key in val.keys(): |
195 197 | assert(len(val[key]) == nspec) |
196 198 | for i in range(nspec): |
197 199 | do_write = True |
198 200 | s = '' |
199 201 | for key in param_order: |