Commit af5458a4 authored by Marko Kuder's avatar Marko Kuder

changed PC-AXIS to PCAXIS to conform to published datasets

parent add32e1f
......@@ -81,7 +81,7 @@ def sniff_file_format(filepath, log):
format_ = {'format': 'JSON'}
# is it some specific CSV, e.g. PC-AXIS?
elif is_pcaxis(buf, log):
format_ = {'format': 'PC-AXIS'}
format_ = {'format': 'PCAXIS'}
# is it CSV?
elif is_csv(buf, log):
format_ = {'format': 'CSV'}
......@@ -104,7 +104,7 @@ def sniff_file_format(filepath, log):
format_ = {'format': 'JSON'}
# is it some specific CSV, e.g. PC-AXIS?
elif is_pcaxis(buf, log):
format_ = {'format': 'PC-AXIS'}
format_ = {'format': 'PCAXIS'}
# is it CSV?
elif is_csv(buf, log):
format_ = {'format': 'CSV'}
......@@ -207,7 +207,7 @@ def is_csv(buf, log):
return _is_spreadsheet(table_set, 'CSV', log)
def is_pcaxis(buf, log):
return buf.contains('AXIS-VERSION')
return 'AXIS-VERSION' in buf
def is_psv(buf, log):
'''If the buffer is a PSV file then return True.'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment