Exceptions raised when parsing CODA file with records of type "4"
When parsing a CODA file containing records of type "4" (free communications), the parser will attempt to append those to property 'free_communications' of the coda object - but that property does not exits. I cured this problem (on my local copy) by simply adding a property 'self.free_communications = []' to the coda object.
Then another exception was raised by the parser logic here: "if statement.number_records != i - 1": raise ValueError("Wrong number of records") I have solved this second exception (on my local copy) by changing the above into: if (statement.number_records + len(self.free_communications)) != (i - 1) raise ValueError("Wrong number of records")
For info, yes I encountered "real" CODA files with free communications.