Skip to content
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

Open
NicolaasvanderVoort opened this issue Feb 1, 2022 · 1 comment
Open

tttr.intensity_trace() crashes kernel #25

NicolaasvanderVoort opened this issue Feb 1, 2022 · 1 comment

Comments

@NicolaasvanderVoort
Copy link

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.

@NicolaasvanderVoort
Copy link
Author

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.
It would be great if an error gets thrown rather than the kernel crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant