Closed l3iggs closed 11 years ago
I cannot access the file, but I guess your file is from a recent version of the Jasco dichroism software and they have changed the file format.
I can try to add support to this new file format when I can have a look at the file.
Thanks for reporting.
2013/8/27 l3iggs notifications@github.com
the error i'm getting is jwslib.read_header(): This is not a .JWS file, four magic bytes are not valid.
My .jws file can be found here: http://marba.stanford.edu/398.jws
— Reply to this email directly or view it on GitHubhttps://github.com/vhernandez/jwsProcessor/issues/2 .
I'm curious to know why you can't access the file, that link I gave should be good. Thank you very much for looking into this. I've emailed the file to the @gmail address listed in your profile here.
By the way: I commented out the magic byte check in your code to see if that would fix things. Then I got some vector length mismatch error or something similar. I commented out the vector length check and the program became unresponsive. So it's not a totally trivial fix.
I have worked with the file you sent me and I have made a little script that can extract data from it. The file format is an entirely different fileformat than the one that is supported my jwsProcessor (jasco software v. 1.5). The new file format is an OLE file (more info here: http://www.openoffice.org/sc/compdocfileformat.pdf). Fortunately there is a little python library that can read these OLE files, OleFileIO_PL, which I have used it to write the script. The library is here: http://www.decalage.info/python/olefileio You can download the script from here: https://www.dropbox.com/s/nkfiswipzrs2abr/oletest.py You will need to install OleFileIO_PL (or simply copy OleFileIO_PL.py in the same directory as the script). I hope that it is useful for you. I am a little bit busy at the moment and won't be able to work on this in a while.
2013/8/28 l3iggs notifications@github.com
By the way: I commented out the magic byte check in your code to see if that would fix things. Then I got some vector length mismatch error or something similar. I commented out the vector length check and the program became unresponsive. So it's not a totally trivial fix.
— Reply to this email directly or view it on GitHubhttps://github.com/vhernandez/jwsProcessor/issues/2#issuecomment-23427351 .
I have updated the code to support the new file format. Could you test the changes?
Works like a charm! Thank you!
the error i'm getting is jwslib.read_header(): This is not a .JWS file, four magic bytes are not valid.
My .jws file can be found here: http://marba.stanford.edu/398.jws