aolabNeuro / aolabNeuro/analyze

electrode position filtering

Aperta
#272 0 commenti 0 reazioni 1 assegnatario Rivendicata da @resatomo Vedi su GitHub
enhancement high priority
Lingua principale
Python
Stelle
7
Fork
0
Merge medio
22h 29m
PR unite (30g)
2

Descrizione

patrick wrote a function to select an ROI based on electrode coordinates. might be useful to add here.

```
def get_data_in_bounds(data, acq_channels, elec_pos, min_x, min_y, max_x, max_y):
positions = np.argwhere(
(elec_pos[:, 0] >= min_x) &
(elec_pos[:, 0] <= max_x) &
(elec_pos[:, 1] >= min_y) &
(elec_pos[:, 1] <= max_y)
)
data_idx = acq_channels[positions] - 1
return data[:, :, data_idx[:, 0]]
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.