Add still-alive checks for structures
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C++
- Stelle
- 53
- Fork
- 25
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nmwsharp/polyscope-py
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
nmwsharp/polyscope-py#56 ·
-
Imgui Bundle Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
nmwsharp/polyscope-py#44 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
nmwsharp/polyscope-py#41 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
nmwsharp/polyscope-py#39 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
nmwsharp/polyscope-py#36 · 1 reazione ·
Tutte le issue di nmwsharp/polyscope-py
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Apertaai_reviewed
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ydb-platform/ydb#53974 · 3 commenti ·