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
fcs-corr troubleshooting #5
Comments
Is there a sample file for .timech file? I have raw data that has channel and time stamp but I want to see exact format of .timech file if you have. Thank you very much! |
I don't have one off hand but it's quite straightforward to generate one. For instance, import numpy as np
# Here are a few events, represented as (timestamp, channel number) pairs
events = [
(10, 0),
(30, 0),
(55, 1),
(73, 0),
(74, 1)
]
events = np.array(events, dtype='u8,u1')
events.tofile('test.timech')
# or how about some random Poissonian events (all on channel 0):
n = 1000000 # one million events
interarrivals = np.random.exponential(1000, size=n)
times = np.cumsum(interarrivals).round().astype('u8')
events = np.vstack([times, np.zeros(n, dtype='u1')])
events.tofile('poissonian.timech') |
Thank you, bgamari, for real fast response. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After install photon-tools as describe in your git hub page I found some troubleshooting. In fact, if I execute “$ fcs-corr --min-lag=1e-6 --max-lag=1 myfile.timetag” an error appears :”Favia threw an error: exit code 1”
“sorry, option ALT+’\x7f’ not yet implemented.\n”
I tested Favia program in many ways but just help function work…
My setup was a Raspberry pi3
Thanks for advice
J.Seb
The text was updated successfully, but these errors were encountered: