cortex-lab / Rigbox

A MATLAB toolbox for running behavioral neuroscience experiments and managing data
GNU General Public License v3.0
33 stars 16 forks source link

expPanelFun should be a fullpath #291

Open k1o0 opened 4 years ago

k1o0 commented 4 years ago

Describe the bug Currently expPanelFun (added by inferParameters) is just the name. If there is a panel of the same name in the path, that one is loaded, instead of the one in the folder of your expDef. Also fileFunction should be used in case the panel isn't on the path:

https://github.com/cortex-lab/Rigbox/blob/cd888f0ae2653ac78651243b22d566ab67a6fb60/%2Beui/ExpPanel.m#L138-L141

Expected behavior Should be a full path to ensure the correct panel class is instantiated.