Open MarijnMostert opened 3 years ago
Hi, I'm also seeing the same error. Is there a definition of the header format so that we can debug?
@NelisW, I am trying to process a .PTW file which works fine with the previous version of ryptw.py. Presumably nothing changed with the .PTW definition, or is it possible that the file which is creating the .PTW file (WiDyVISION 3.9.1, https://new-imaging-technologies.com/software/) is not adhering to the standard file format?
In the event this is an issue with ryptw.py, do you have any idea whether or not this is a quick fix, or should I revert to the old version for the time being?
Hi! I don't know what information is supposed to be contained in the bytes in question, but in previous versions they were simply discarded. I wasn't interested in it either, so the fix (it was a quick fix) to get it working again was commenting out lines 417, 425, and 448. In fact, I commented out line 450 too as there appears to be a typo there as well.
that is definitely one way to fix the problem :-) Let's just hope it doesn't affect anything!
I am having exactly the same problem, with the current version of pyradi (head) Any better solution or any more detail on the underlying issue ?
It seems that this commit introduce the regression cb02dda67f34175a2e3e0ce957c89d715c6475e9 Which is really strange has it seems unrelated. Furthermore, it reverts a nice improvement in reading speed :-(
Since the latests release, I get an error when reading ptw files using ryptw.readPTWHeader(). On line 417, 7 bytes are read and then passed to mybyte(), which checks if it receives only one byte and throws an error otherwise.
This throws an error in this case, but I'm not sure this is intended.
Something similar is done on lines 425 and 448