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

Extend inferParameters for all experiments #282

Open k1o0 opened 4 years ago

k1o0 commented 4 years ago

Is your feature request related to a problem? Please describe. exp.inferParameters could be adapted to functions as the NewExpFactory in MControl. In other words inferParameters could infer the parameters of any custom experiment, not just Signals ones.

Describe the solution you'd like

  1. inferParameters should check the class of the file called. If just a function it should assume it's an expDef. It should then try to call a basic params file or prompt the user for one (the user could also provide a set of previous params)
  2. For signals expDefs, it should call a new function that does what inferParameters currently does, e.g. exp.signalsParams, to find params from the expDef. It could add on SignalsExp parameters such as screen background color and exp panel function. These are then used along the way (e.g. services, configureSignalsExp, ExpPanel.live). These extra params can be hidden from SignalsExp using a setdiff calling signalsExpParameters with no args.