-
Hi Dranjan. I've used successfully your module to convert from PYL Binary (little_endian) to ASCII and cleanup some data in the process, but now i want to convert that file sample to Binary (little_endian) again. How can i do that ?
When i try to read the data of that file i always end up with this error that refer to plyfile.py. Does it have a relation with the file encoding that doesn't need to be decoded from Python 3.7 env ?
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Hi @smoluck. Any chance you could post your code, and attach the example file itself? I'd like to try to reproduce the behavior. It's not clear from what you wrote if that error is a Converting from ASCII to binary is exactly like the opposite conversion, you just set the |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
the error returned by PyCharm
|
Beta Was this translation helpful? Give feedback.
-
_Hi Dranjan. Thanks for your feedback. I've found my errors. As i've modified the amount of lines for the data values, i was getting an error too.
Here is the update code that is now working.
|
Beta Was this translation helpful? Give feedback.
-
Ah, right. The input file does need to be opened in binary mode. That might need to be emphasized more in the documentation. |
Beta Was this translation helpful? Give feedback.
_Hi Dranjan.
Thanks for your feedback.
Best regards,_
I've found my errors.
As i've modified the amount of lines for the data values, i was getting an error too.
Here is the update code that is now working.
rb and wb flags have also helped here.