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

Aperta
#2,716 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@atishay-kasliwal ci sta già lavorando.

Dal 24/11/2026.

  • #2719 di @atishay-kasliwal — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
28/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
655
Fork
266
Merge medio
3g 23h
PR unite (30g)
43

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pymc-devs/pytensor

Tutte le issue di pymc-devs/pytensor

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.