Slice Probe and ProbeGroup by stable identifiers, not positional integers
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- backend-api-design, data
Direzione di ricerca
Start by reviewing get_slice and the Probe and ProbeGroup APIs, then read the linked discussions and PRs #429 and #446. The work is complete when a stable-identifier-based public selection API and the ProbeGroup identifier behavior have been agreed and implemented for both object types.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently get_slice's argument is array-based: selection is positional indices or a boolean mask. I think this is a bad pattern, and I'd like to either change it or add a method that doesn't rely on it, select_contacts, mirroring SpikeInterface's select_channels. I think this should be the blessed public API for sub-selecting contacts of both Probe and ProbeGroup.
Why? Our libraries merge results from different sources (the recording, the probe, and probably headstage information later), and a positional index keeps an implicit "position i here is position j there" map that collides when those sources are combined and goes stale the moment one of them is sliced or reordered. That is how users get bitten, see the reorder-on-attach case in SpikeInterface #4565. The standard solution in the field is to do what databases do: identify a record by a stable primary key rather than by its position. That is, we create object identifiers that are independent of the internal representation.
Using that in SpikeInterface, for example, would solve the metadata propagation bugs related to slicing, grouping and aggregating #4545, #4546, and #4547. It would also remove the need to solve the annotation feature on the array-like slicing, which does not have natural semantics #446.
Finally, I think it is semantically appropriate for the domain. Probes are not arrays, and we should not have a method that assumes they are.
Note that if you think this idea is good we would require #429 (auto-generate contact_ids when not explicitly set). The ProbeGroup unique identifier is an implementation detail that we can discuss if we think this idea is sound.
- Lingua principale
- Python
- Stelle
- 85
- Fork
- 49
- Merge medio
- 13h 47m
- PR unite (30g)
- 3
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SpikeInterface/probeinterface
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
SpikeInterface/probeinterface#469 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
SpikeInterface/probeinterface#465 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 48/100
SpikeInterface/probeinterface#452 · 1 commento ·
-
question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
SpikeInterface/probeinterface#449 · 7 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
SpikeInterface/probeinterface#444 ·
Tutte le issue di SpikeInterface/probeinterface
Issue simili
-
triage/confirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100