brainstorm3 icon indicating copy to clipboard operation
brainstorm3 copied to clipboard

Add bad channel using partial name

Open Edouard2laire opened this issue 1 year ago • 1 comments

Hello,

In nirs, sometime it can be useful to mark a detector, or a source as bad as we know from the acquisition that this detector or source was not well placed. Currently, to remove S1, for example, we have to write S1D1WL680, S1D1WL830, S1D2WL680, S1D2WL830, ... to list all the channels containing S1 which is awful :)

This allows to write S1 to remove all the channels using S1; or D1 for all the channels using D1; even S1D1 (instead of S1D1WL830, S1D1WL680).

This is however a bad fix as writing S1 would also remove S10. I'll try to find a better solution; unless you have an idea :)

Edouard

Edouard2laire avatar May 28 '24 23:05 Edouard2laire

@Edouard2laire, an idea would be to be able use regular expressions in the channel name field to select the channels to remove e.g.:

regexp "^S1(?=D)" Any channel using S1, not including S10 regexp "^S1(?=D)D1(?=W)" Any channel using S1D1, no including S10 nor D10 regexp "^S\d*(?=D)D1(?=W) Any channel using D1 regardless of the Source

  • These examples require to have the format S%dD%dWL%d

While regular expressions are very useful, writing them and reading their syntax may take more time that typing the name of the channels. This may be also challenging when sharing codes with others.

rcassani avatar Jun 03 '24 15:06 rcassani

Here is a working solution. This allows us to find channels using 'S1', 'D1' or WL830 or HbO or any combination So that S1D1 returns all the channels involving S1D1.

Edouard2laire avatar Nov 19 '24 20:11 Edouard2laire