AllenInstitute / MIES

Multichannel Igor Electrophysiology Suite
https://alleninstitute.github.io/MIES/user.html
Other
21 stars 6 forks source link

Add SF-operation to set array values #2128

Open t-b opened 1 month ago

t-b commented 1 month ago

Use case:

trange = [0, inf]
sel = select(channels(AD), sweeps())
dat = data($trange, $sel)
ep = epochs(E0, $sel)

setarray($ep, cols, [0 - 50], newValue)
setarray($ep, row, [0 - 50], newValue)
setarray($ep, row, *, newValue)

It would work on all datasets.

mop(setarray, could also be used to avoid polluting the namespace.