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

Đang mở
#2,716 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@atishay-kasliwal đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #2719 của @atishay-kasliwal — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
28/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
655
Fork
266
Merge trung bình
3 ngày 23 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pymc-devs/pytensor

Tất cả issue của pymc-devs/pytensor

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.