[fix] suggestion to fix #20
walzer
6 years ago
1281 | 1281 | # set the first data output node to the first file format |
1282 | 1282 | |
1283 | 1283 | # check if there are formats that have not been registered yet... |
1284 | output = "" | |
1284 | output = list() | |
1285 | 1285 | for format_name in param.restrictions.formats: |
1286 | 1286 | if not format_name in supported_file_formats.keys(): |
1287 | output += " " + str(format_name) | |
1287 | output.append(str(format_name)) | |
1288 | 1288 | |
1289 | 1289 | # warn only if there's about to complain |
1290 | 1290 | if output: |
1291 | warning("Parameter " + param.name + " has the following unsupported format(s):" + output, 1) | |
1291 | warning("Parameter " + param.name + " has the following unsupported format(s):" + ','.join(output), 1) | |
1292 | data_format = ','.join(output) | |
1292 | 1293 | |
1293 | 1294 | formats = get_supported_file_types(param.restrictions.formats, supported_file_formats) |
1294 | 1295 | try: |