---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
~/Projects/original/oq-engine/openquake/hmtk/parsers/catalogue/csv_catalogue_parser.py in _float_check(self, attribute_array, value, irow, key)
119 if value:
--> 120 attribute_array = np.hstack([attribute_array, float(value)])
121 else:
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/shape_base.py in hstack(tup)
290 if arrs and arrs[0].ndim == 1:
--> 291 return _nx.concatenate(arrs, 0)
292 else:
KeyboardInterrupt:
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-2-8e97bb1f95f1> in <module>()
1 filename = '/Users/mpagani/GDrive/GEM_hazard/Data/Catalogues/extended/Weatherill_Pagani_Garcia_Extended_Global_Earthquake_Catalogue.csv'
2 parser = CsvCatalogueParser(filename)
----> 3 cat = parser.read_file()
~/Projects/original/oq-engine/openquake/hmtk/parsers/catalogue/csv_catalogue_parser.py in read_file(self, start_year, end_year)
79 if key in catalogue.FLOAT_ATTRIBUTE_LIST:
80 catalogue.data[key] = self._float_check(
---> 81 catalogue.data[key], row[key], irow, key)
82 elif key in catalogue.INT_ATTRIBUTE_LIST:
83 catalogue.data[key] = self._int_check(
~/Projects/original/oq-engine/openquake/hmtk/parsers/catalogue/csv_catalogue_parser.py in _float_check(self, attribute_array, value, irow, key)
125 msg = 'Input file format error at line: %d' % (irow+2)
126 msg += ' key: %s' % (key)
--> 127 raise ValueError(msg)
128 return attribute_array
129
ValueError: Input file format error at line: 280760 key: latitude