-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
From #2565 (comment):
We would like to have a convenience SF operation ivscc_apfrequency which does basically
sel = select(selsweeps(), selstimset("*rheo*", "*supra*"), selvis(all))
selexpA = select(selexp("*.10A.*"), $sel, selchannels(AD0), selrange(E1))
selexpB = select(selexp("*.10B.*"), $sel, selchannels(AD0), selrange(E1))
selDAA = select(selexp("*.10A.*"), $sel, selchannels(DA0), selrange(E1))
selDAB = select(selexp("*.10B.*"), $sel, selchannels(DA0), selrange(E1))
freqA = apfrequency(data($selexpA))
currentA = max(data($selDAA))
currentANorm = $currentA - extract($currentA, 0)
freqB = apfrequency(data($selexpB))
currentB = max(data($selDAB))
currentBNorm = $currentB - extract($currentB, 0)
$freqA
vs
$currentA - extract($currentA, 0)
with
$freqB
vs
$currentB - extract($currentB, 0)
with
avg([$freqA, $freqB], sweepgroup)
vs
avg([$currentANorm, $currentBNorm], sweepgroup)
internally.
The only arguments it should take are related to plotting:
- offset for each axis: min, max, none
- percentage option for each axis, with it turned on we would span the data range from 0% to 100%
If I understand the above example correct, we would selexpXXX, selDAXXX, freqXXX, currentXXX for each experiment. @timjarsky Does that make sense?