znamlab / cottage_analysis

Potentially temporary repository to use DLC to track eye position
MIT License
0 stars 0 forks source link

Refactor fit_rs_of_tuning #48

Closed yiran25 closed 6 months ago

yiran25 commented 7 months ago

https://github.com/znamlab/cottage_analysis/blob/67ec4cc2aa9b1cefaefc008c7e8bd5ea12bfea35/cottage_analysis/analysis/fit_gaussian_blob.py#L350C5-L350C21

refactor to make function more concise. keep input of all models the same.

yiran25 commented 7 months ago

add wrapper function for gaussian_1d to select whether to fit OF or ratio model. use model string to directly call wrapper function using globals() save min_sigma in neurons_df

yiran25 commented 6 months ago

done