Raise different errors based on the error code returned from the DP Library
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start in src/bindings/PyDP/pydp_lib/algorithm_builder.hpp at the linked handling of absl::StatusOr results. Trace the error codes returned by the DP Library and the Python exception path, then define the distinct exception behavior requested for invalid argument, unimplemented, failed precondition, and internal errors. Done means each listed error type raises a corresponding Python exception.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
In the builder of algorithms or numerical mechanisms, the DP Library returns different error types, i.e., invalid argument, unimplemented, failed precondition, or internal errors. Based on those types, we should raise different exceptions in Python, too.
Are you interested in working on this improvement yourself?
- No, I am not at the moment.
Additional Context
We would basically need to add a case statement based on the error code of the absl::StatusOr in the bindings.
- Ngôn ngữ chính
- Python
- Star
- 550
- Fork
- 142
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenMined/PyDP
-
Type: New Feature :heavy_plus_sign:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Type: Question :grey_question:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
Type: Question :grey_question:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
-
Type: New Feature :heavy_plus_sign:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
-
Support for M1 Mac?Đang mởStatus: Blocked :heavy_multiplication_x: Type: New Feature :heavy_plus_sign:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của OpenMined/PyDP
Issue tương tự
-
Claiming namespace `apoint`Đang mởnamespace operations
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
EclipseFdn/open-vsx.org#13573 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
collective/icalendar#1854 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rancher/rancher-ai-agent#412 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
TUDelftGeodesy/DePSI#134 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
HenriquesLab/rxiv-maker#335 ·