-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't read HydraHarpV2T3 header #35
Comments
@Tomkaehst, thanks for the report. Please provide the example data file so I can look into it. |
Hi @tritemio , you can find an example file here: https://upload.uni-jena.de/data/5caa54291eaf20.02785906/Coumarin6_in_EtOH_2_1.ptu In the meantime, I tried to comment out the ANSIString assignment to |
@Tomkaehst, right, the
This is not properly encoded in UTF-8. In fact, if you try to decode it as UTF8 you get the error you reported for The byte is printed as We can ask python, what is the correct byte encoding for μ in UTF8: >>> 'μ'.encode()
b'\xce\xbc' Asking google I found this:
And if I try to decode this in python: >>> b'\xc2\xb5'.decode()
'µ' this is a kind of slanted µ, (in the notebooks looks slanted but here on github no, so it is font-dependent). Bottomline, I think PicoQuant here saved a broken string here... or maybe they are not using the UTF8 but some ancient encoding. Let me try, they are from Germany, so let's try >>> print(s.rstrip(b'\0').decode('latin1'))
LAS X 2.0.1.14392
Pinhole: 58.69 µm
Objective: HC FLUOTAR L 25.0 WATER
Image Format: 512 x 512
Scan Speed: 100 Hz
Zoom: 1.4
Frame Average: 100
Direction: Unidirectional
WLL
LaserLine 488: 75.0
Laser Shutter: Open
Laser (WLL, WLL) On 70.0
Laser (Argon, visible) Off 0.0
Laser (IR, MP) On
Laser (IR2, FSOPO) On
MFP Filter: Substrate
Polarization Filter: NF 488
Notch Filter: Empty
X1-Port: Mirror
Scan Mode: xyt
ZPosition: -1.60 µm
Time Cycle Count: 25 ; Cycle Time: 600.0 s ; Complete Time: 14916.0 s
Spectral detection range
SP PMT 1: 500...550nm
FLIM Detector: Intern
Acquisition Mode: Frame Repetition 100 Bingo, string decoded. Bottomline: PQ uses here |
Thank you very much for the quick response @tritemio ! |
Closed by #36 |
Hello phconvert developers,
I'm trying to read a .ptu file from a PicoQuant HydraHarp2 (record type: 16843524) using load_ptu() and get this error in _ptu_read_tag()
Using the readPTU script from PicoQuants Github page I had a similar error and resolved it by changing the encoding from utf-8 to utf-16. This did not help this time.
Does anyone know what might cause the issue?
Thanks in advance,
Tom
The text was updated successfully, but these errors were encountered: