LernerLab / GuPPy

Guided Photometry Analysis in Python, a free and open-source FP analysis tool.
GNU General Public License v3.0
63 stars 11 forks source link

time correction file does not exist+bokeh error #19

Closed CeliaRais closed 2 years ago

CeliaRais commented 2 years ago

Hello, Thank you for this great tool! I have been trying to implement it with my data, but I am getting an error message that I am not able to interpret. Everything works fine up to the "Extract timestamps and apply corrections" step, where I get the error message that you can see below in the attached files.

bokeh error (2) bokeh error2 bokeh error 3

When I look at the output folder, the time correction file is called "timeCorrection_CeA.hdf5" (CeA being the region name that I used in the storenames) and not "timeCorrection_channel.hdf5", but this is the same name I get when I do the exact same analysis with the sample data, which works perfectly well until the end. So I am a bit at a loss as to what could have gone wrong.

I am also attaching my csv files, I tried to make them as similar to the sample data as possible but I might have missed something.

signal channel control channel TTL

Thank you in advance for your help!

Best Regards,

Celia

venus-sherathiya commented 2 years ago

First of all, your timestamps should start from zero. Also, may I see the screenshot of your storeslist.csv file and inputParameters.json file ?

CeliaRais commented 2 years ago

The Timestamps are the ones I get from Bonsai, which uses the absolute time of the Neurophotometrics system instead of starting at 0 for each recording, is it important that they both start at 0 for the analysis or do they just need to be consistent within one recording session? (I could change that parameter for future recordings if necessary). I tried to modify this in my files just now and still got the same error message.

I have attached both files below

storeslist input parameters

venus-sherathiya commented 2 years ago

Try not to use control and channel in both the rows while saving storeslist.csv file. So, in your case, just rename your files and use names other than "control" and "signal" in it. Also, I think it should not matter if your timestamps do not start from 0. Let me know what you get after doing changes in the storeslist file

CeliaRais commented 2 years ago

I renamed the files 410 and 470 instead of control_channel and signal_channel and it worked! Thank you for your help!

venus-sherathiya commented 2 years ago

Awesome !! Please reach out to me if you have any other problems in future. Closing this issue now.