dwaithe / FCS_scanning_correlator

GNU General Public License v3.0
5 stars 5 forks source link

Loading .ptu file leads to crash with error - "utf-8 codec can't decode byte 0xb5 in position 38: invalid start byte" #6

Closed lauracmurphy closed 3 years ago

lauracmurphy commented 3 years ago

Hi @dwaithe,

Having an issue that when I load .ptu into either 1_15 and 1_16, the software immediately crashes and I get the following error messsage.

unicodedecodeerror 'utf-8' codec can't decode byte 0xb5 in position 38: invalid start byte

I don't get the error in 1_13.

Happy to provide an example file if you want. I've been trying with files from a Leica SP5 using Symphotime 2.4.4874.

dwaithe commented 3 years ago

Hi Laura, Your files are TCSPC .ptu files, whereas the scanning software is for intensity carpets. It shouldn't crash the software though! I will look into that and write a sensible message to the user. You most likely need my FCS point software to analyse your files: https://github.com/dwaithe/FCS_point_correlator p.s. 1_13 FCS_scanning would not have worked with the .ptu files. Are you sure you were exporting them as that before?

lauracmurphy commented 3 years ago

Sorry, I actually used the correct software, just put the error in the wrong repo! Sorry. Will close this since I don't know if this would crash and then re-open in the correct repo.

dwaithe commented 3 years ago

Hi Laura, There was a 'weird' character in your metadata which was causing the problems. I've fixed it now, so hopefully it will be tolerant to those characters in the future. Here is a direct link to the new release: https://drive.google.com/file/d/1cvlqRe1kdefo1dcgJeTdwUJ6Kk9t-_Fq/view?usp=sharing I will update the website shortly. Thanks for pointing it out! Best, Dom.

lauracmurphy commented 3 years ago

Perfect thanks so much Dominic!