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

fcs-corr troubleshooting #5

Open
lejeanseb opened this issue Jul 26, 2018 · 3 comments
Open

fcs-corr troubleshooting #5

lejeanseb opened this issue Jul 26, 2018 · 3 comments

Comments

@lejeanseb
Copy link

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

@ywsong2
Copy link

ywsong2 commented Jul 26, 2018

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!
-Song

@bgamari
Copy link
Owner

bgamari commented Jul 26, 2018

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')

@ywsong2
Copy link

ywsong2 commented Jul 26, 2018

Thank you, bgamari, for real fast response.
I will try out with my raw data that I collected by PicoHarp 300. :) Thanks again.
-Song

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

3 participants