BUG: XTensorVariable.stack/.unstack methods reject keyword dims (x.stack(z=[...])) that the stack/unstack functions accept

Abierto
#2,716 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@atishay-kasliwal ya está trabajando en esto.

Desde el 24/11/2026.

  • #2719 de @atishay-kasliwal — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
28/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
api

Línea de trabajo

Start from the XTensorVariable.stack and XTensorVariable.unstack methods and compare their signatures with the module-level stack/unstack functions the issue says already accept keyword dims; the gap is in how the methods pass their arguments through. Read the call that x.stack(z=[...]) reaches and make it accept the same keyword form as the functions and as xarray's DataArray.stack. Done looks like x.stack(z=[...]) and the matching unstack call behaving like their function counterparts, with a test covering the keyword form.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

xarray's DataArray.stack(z=[...]) works so xtensor should too

Lenguaje dominante
Python
Estrellas
655
Forks
266
Merge medio
3 d 23 h
PR fusionados (30 d)
43

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pymc-devs/pytensor

Todos los issues de pymc-devs/pytensor

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.