Brody-Lab / jbreda_animal_training

Repository for the ingestion, cleaning and visualization of behavioral experiments
0 stars 0 forks source link

Integrate FixationGrower read in for trials table #51

Closed jess-breda closed 1 month ago

jess-breda commented 2 months ago

The current fetch_trials_df_from_dj is written specifically with DMS2 data in mind. Theese are the things that need to be changed.

This issue focuses on only the read-in of the data. There will be a second issue with creating specific visualizations given this new trials df. Perhaps a class.

jess-breda commented 1 month ago

This ended up being much simpler than anticipated. There was no specific catch case for the protocol and the only reason the function didn't work as is was due to the column types being set in pandas. I made the judgement call to remove these column types and allow them to be taken care of by the plotting functions. If there is a column that is repeatedly changed for plotting, it can be taken care of within the append_and_clean_protocol_dfs in create_trials_df.py.

The only significant addition I made was to add the protocol name (e.g. FixationGrower or DMS2) to the trials table. This will allow for protocol specific logic to be implemented more easily.