Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Discussion: blueapi plan renaming

Đang mở
#1,701 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 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
18/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

The issue is a design discussion, not a settled change. Start with the plan-registration code in blueapi that reads the __name__ of an imported plan, and with the __init__.py re-export pattern shown in the issue. Done would mean a maintainer-agreed approach, such as an explicit registration name or a wrapper, before any implementation begins.

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

Mô tả

On i15-1, we've tried to do

from .data_collection import (
    data_collection as single_temperature_collection,
)

__all__ = ["single_temperature_collection"]

in the hope that we could rename our plan as seen inside blueapi. However, the registered plan name is still data_collection inside blueapi, I'm guessing because blueapi uses the __name__ attribute of the imported object to decide this.

There are use cases when you may want to register a plan under a different name inside blueapi, for example if you want the plan called one thing for internal use as a subplan, but something else when exposed to users.

Having said this, maybe the simplest solution is just to wrap plans when we want to do this. Interested on other people's thoughts

Ngôn ngữ chính
Python
Star
13
Fork
14
Merge trung bình
7 ngày 13 giờ
Pull request đã merge (30 ngày)
6

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 DiamondLightSource/blueapi

Tất cả issue của DiamondLightSource/blueapi

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.