Merge pull request #23 from mwalzer/feature/issue20
[fix] suggestion to fix #20
chahuistle authored 6 years ago
GitHub committed 6 years ago
1275 | 1275 | # set the first data output node to the first file format |
1276 | 1276 | |
1277 | 1277 | # check if there are formats that have not been registered yet... |
1278 | output = "" | |
1278 | output = list() | |
1279 | 1279 | for format_name in param.restrictions.formats: |
1280 | 1280 | if not format_name in supported_file_formats.keys(): |
1281 | output += " " + str(format_name) | |
1281 | output.append(str(format_name)) | |
1282 | 1282 | |
1283 | 1283 | # warn only if there's about to complain |
1284 | 1284 | if output: |
1285 | warning("Parameter " + param.name + " has the following unsupported format(s):" + output, 1) | |
1285 | warning("Parameter " + param.name + " has the following unsupported format(s):" + ','.join(output), 1) | |
1286 | data_format = ','.join(output) | |
1286 | 1287 | |
1287 | 1288 | formats = get_supported_file_types(param.restrictions.formats, supported_file_formats) |
1288 | 1289 | try: |