Data demonstration #122
-
Hi there, after implementing the free_water task; , I tried to show the data but I couldn't find how to do it in the terminal with both the blink and the free water tasks, I am getting an error related to plot parameters even though I don't need to plot and no instruction in the code to plot any data (please find attached a screenshot for the error); yet I am blocked because of the error related to the plot parameters, I tried also to show the data using HDF viewer but it didn't work; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
It looks like there are a few errors in that screenshot -- the first two are from not having a subject selected in the subject list in the gui (the list next to the start/stop button) when pressing start/stop button. the second is from a misspecified It sounds like you are talking about two different things though, the To get the trial data, yes you would use Subject.get_trial_data(). That would look like from autopilot.core.subject import Subject
# instantiate the subject class with the subject id/name of the subject
# it should find the .h5 file automatically, but you can also pass the directory, etc
# see the docs page for more instantiation params
sub = Subject('subject_id')
# return data from the most recent step in the training protocol
last_step = sub.get_trial_data()
# get all data from all steps
all_data = sub.get_trial_data('all') from there you could use pandas DataFrame plotting methods or whatever method you choose. Does that help? lmk if i missed your question :) |
Beta Was this translation helpful? Give feedback.
It looks like there are a few errors in that screenshot -- the first two are from not having a subject selected in the subject list in the gui (the list next to the start/stop button) when pressing start/stop button.
the second is from a misspecified
PLOT
dictionary in the task - this is documented here: https://docs.auto-pi-lot.com/en/main/guide/task.html#plot. In this case it's sort of odd because a preceding line checks if thePLOT
dictionary is empty, which is the typical way to specify a plotless task, and returns quietly. So the dictionary must have something in it, but not have adata
subdictionary. I just modified the behavior of the code here 9a8c0e6 so that if there is nodata
k…