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

csv file #66

Closed samjadot closed 6 months ago

samjadot commented 7 months ago

Good morning, The CSV file containing the timestamps of the events I want to analyse is not readable by the program. Nothing happens when I press "open storename GUI" but when this csv file is not there it works. Here is what is written in the terminals :raise KeyError(f"{list(labels[mask])} not found in axis") KeyError: "['Time(s)'] not found in axis". Thanks for your help FU.csv here the file CSV that i use.

venus-sherathiya commented 6 months ago

The csv file is not according to the format which GuPPy wants. If your csv file has TTL timestamps, it should look like the sample file I attached here. There should be one column with column name as "timestamps" and this column will have all the TTL timestamps in it. Sample_TTL.csv

samjadot commented 6 months ago

i thanks a lot it works but I'm blocked again after I've done step 2: Open Storenames GUI and save storenames, I tried to do step 3 but I'm stuck again here is what is displayed on the terminal :IndexError: list index out of range ['405A', '465A', 'Cam1', 'FU'] Thank you very much

samjadot commented 6 months ago

here is the code Capture d’écran 2024-02-06 à 11 10 14

venus-sherathiya commented 6 months ago

Can I please see the screenshot of your raw data folder ?

samjadot commented 6 months ago

Here is the photo of my CSV file with the timing of the different events that I want analyzed. it is an odor test where I present different urine to the mouse. That only includes the times for female urines to first understand how guppy works. Thanks Capture d’écran 2024-02-07 à 11 02 27 Capture d’écran 2024-02-07 à 11 02 39 Capture d’écran 2024-02-07 à 10 55 05

venus-sherathiya commented 6 months ago

I want to see the folder screenshot where your raw data is present. Does it have '.tev' file in it ? Also, when you open the store names GUI in step 2, please follow the instructions which are written on the left. If you do not follow it, it will throw an error.

samjadot commented 6 months ago

here is thanks a lot. ![Uploading Capture d’écran 2024-02-08 à 08.59.30.png…]()

samjadot commented 6 months ago

It is ok it'is work now. Thank you for your help.:)

venus-sherathiya commented 6 months ago

Awesome !! Issue resolved