-
Notifications
You must be signed in to change notification settings - Fork 1
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
tttr.intensity_trace() crashes kernel #25
Comments
Addendum: I learned that for any non-legal function input the kernel crashed. E.g. when I try to write a .ptu file to disk but not giving the correct inputs. |
I'm having a similar issue where creating a For picoquant tttr files, I know you can check like this, not sure for other formats: def is_pqtttr(fpath: PathLike) -> bool:
with open(fpath, "rb") as f:
magic = f.read(8).rstrip(b"\0")
return magic == b"PQTTTR" |
I improved the checks for the supported data types. i) the file extension (see: #43) |
Dear Thomas,
ffile = r'path\to\some\file.ptu trace = tttrlib.TTTR(ffile) trace.intensity_trace()
causes a kernel crash (python 3.7).
Giving an argument to intensity_trace resolves this issue.
trace.intensity_trace(1)
According to the docs, the time_window_length argument is a keyword argument, so I was not expecting this issue.
It is mostly a problem because you can crash the kernel when you don't expect it. I can send you the .ptu file that goes with this.
The text was updated successfully, but these errors were encountered: