Add still-alive checks for structures
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
The issue provides no file or test path. Start by reproducing the point-cloud example and trace the Python structure handle methods, including add_scalar_quantity() and the removal path. Done means removed structures and quantities raise an informative Python error instead of segfaulting, across the affected structure types.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Right now the following code results in segfault:
import polyscope as ps
import numpy as np
ps.init()
cloud = ps.register_point_cloud("my cloud", np.random.rand(100,3))
ps.remove_point_cloud("my cloud")
cloud.add_scalar_quantity("my scalar", np.random.rand(100)) # boom!
(the same applies for all structures/quantities)
The solution is that add_scalar_quantity() should first check if the underlying point cloud still exists, and if not throw an informative Python error. There are a couple possible ways to implement this; we could check by name, or just set some flag in the python point cloud handle object.
- Ngôn ngữ chính
- C++
- Star
- 53
- Fork
- 25
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 nmwsharp/polyscope-py
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
nmwsharp/polyscope-py#56 ·
-
Imgui Bundle Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
nmwsharp/polyscope-py#44 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
nmwsharp/polyscope-py#41 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
nmwsharp/polyscope-py#39 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
nmwsharp/polyscope-py#36 · 1 reaction ·
Tất cả issue của nmwsharp/polyscope-py
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Đang mởai_reviewed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ydb-platform/ydb#53974 · 3 bình luận ·