-
Notifications
You must be signed in to change notification settings - Fork 14
Different format for symbol? #5
Copy link
Copy link
Open
Description
Ran into an issue where some symbols cannot be processed, throwing this error:
Traceback (most recent call last):
File "/Users/kennethlimcp/Desktop/read-ms/ms2txt/metastock/files.py", line 23, in dump
self.load_columns()
File "/Users/kennethlimcp/Desktop/read-ms/ms2txt/metastock/files.py", line 46, in load_columns
assert(len(lines) == self.stock.fields)
AssertionError
Processing FTBM (fileNo 2)
('Error while converting symbol', u'FTBM')
Dumping the info gives: (8, 7, ['"DATE",0,0', '"OPEN",5,5', '"HIGH",5,5', '"LOW",5,5', '"CLOSE",5,5', '"VOL",0,0', '"OI",0,0', '\x1a'])
It seems like there is an extra column with data '\x1a' that is causing the length assertion.
Any idea what that might be?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels