<type 'list'>
items to iterate over: ['sequence_1d_199_10_fv1c.npy', 'sequence_1d_229_10_fv1c.npy', 'sequence_1k_319_10_fv1c.npy', 'sequence_1l_369_10_fv1c.npy', 'sequence_1b_49_10_fv1c.npy', 'sequence_1d_258_9_fv1c.npy', 'sequence_1k_359_10_fv1c.npy', 'sequence_2b_469_10_fv1c.npy', 'sequence_1c_69_10_fv1c.npy', 'sequence_2b_499_10_fv1c.npy', 'sequence_2c_559_10_fv1c.npy', 'sequence_1l_418_9_fv1c.npy', 'sequence_3a_668_10_fv1c.npy', 'sequence_1b_18_9_fv1c.npy', 'sequence_2b_489_10_fv1c.npy', 'sequence_3a_569_10_fv1c.npy', 'sequence_2b_488_9_fv1c.npy', 'sequence_1b_48_9_fv1c.npy', 'sequence_1k_309_10_fv1c.npy', 'sequence_1c_118_9_fv1c.npy', 'sequence_2b_479_10_fv1c.npy', 'sequence_1k_339_10_fv1c.npy', 'sequence_2c_509_10_fv1c.npy', 'sequence_1c_119_10_fv1c.npy', 'sequence_1k_318_9_fv1c.npy', 'sequence_3a_687_9_fv1c.npy', 'sequence_1l_409_10_fv1c.npy', 'sequence_1k_329_10_fv1c.npy', 'sequence_3a_688_10_fv1c.npy', 'sequence_1l_428_9_fv1c.npy', 'sequence_1k_348_9_fv1c.npy', 'sequence_1b_9_10_fv1c.npy', 'sequence_1l_398_9_fv1c.npy', 'sequence_2b_459_10_fv1c.npy', 'sequence_1d_139_10_fv1c.npy', 'sequence_2c_528_9_fv1c.npy', 'sequence_2c_549_10_fv1c.npy', 'sequence_2c_548_9_fv1c.npy', 'sequence_3a_587_9_fv1c.npy', 'sequence_2b_478_9_fv1c.npy', 'sequence_1c_88_9_fv1c.npy', 'sequence_1d_259_10_fv1c.npy', 'sequence_1k_308_9_fv1c.npy', 'sequence_1k_328_9_fv1c.npy', 'sequence_1l_378_9_fv1c.npy', 'sequence_1l_388_9_fv1c.npy', 'sequence_1b_38_9_fv1c.npy', 'sequence_2c_529_10_fv1c.npy', 'sequence_1d_129_10_fv1c.npy', 'sequence_2b_498_9_fv1c.npy', 'sequence_1c_79_10_fv1c.npy', 'sequence_2b_458_9_fv1c.npy', 'sequence_3a_628_10_fv1c.npy', 'sequence_1l_368_9_fv1c.npy']
---------------------------------------------------------------------------
ParserError Traceback (most recent call last)
<ipython-input-1-7f53d57c15bc> in <module>()
25 #csv_path = "~/Documents/thesis_generator/results/devin/crack_growth_sequence" + suffix + ".csv"
26 sequence_lengths = {} #save sequence lengths as a dict. or maybe a json?
---> 27 header_names = (pd.read_csv(raw_path + str([file for file in items][0]))).columns.values #headers were only saved on the 1st csv in the series.. my bad.
28
29 file = [file for file in items][1]
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
653 skip_blank_lines=skip_blank_lines)
654
--> 655 return _read(filepath_or_buffer, kwds)
656
657 parser_f.__name__ = name
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds)
409
410 try:
--> 411 data = parser.read(nrows)
412 finally:
413 parser.close()
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in read(self, nrows)
1003 raise ValueError('skipfooter not supported for iteration')
1004
-> 1005 ret = self._engine.read(nrows)
1006
1007 if self.options.get('as_recarray'):
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.pyc in read(self, nrows)
1746 def read(self, nrows=None):
1747 try:
-> 1748 data = self._reader.read(nrows)
1749 except StopIteration:
1750 if self._first_chunk:
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.read (pandas/_libs/parsers.c:10862)()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_low_memory (pandas/_libs/parsers.c:11138)()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_rows (pandas/_libs/parsers.c:11884)()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._tokenize_rows (pandas/_libs/parsers.c:11755)()
pandas/_libs/parsers.pyx in pandas._libs.parsers.raise_parser_error (pandas/_libs/parsers.c:28765)()
ParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file.