Slice Probe and ProbeGroup by stable identifiers, not positional integers
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- backend-api-design, data
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 86
- Forks
- 49
- Merge medio
- 9 h 43 min
- PR fusionados (30 d)
- 2
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SpikeInterface/probeinterface
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
SpikeInterface/probeinterface#469 · 2 comentarios ·
-
probe plotting feature requestAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
SpikeInterface/probeinterface#465 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 48/100
SpikeInterface/probeinterface#452 · 1 comentario ·
-
question
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
SpikeInterface/probeinterface#449 · 7 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
SpikeInterface/probeinterface#444 ·
Todos los issues de SpikeInterface/probeinterface
Issues similares
-
Action calls retired claude-3-5-haiku-20241022, generating failing API requests for every userAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
-
enhancement P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Toloka/tolokaforge#1776 ·
Los mantenedores suelen responder en 1 día
-
[bug] 本地会话日志回退在事件循环上同步读取 sessions/*.jsonl,长会话下阻塞同 loop 请求Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
TencentCloud/Octop#1622 ·
Los mantenedores suelen responder en 1 día
-
arch area:fleet priority:p3 severity:low track:hosted-product
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día