Add still-alive checks for structures
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 38/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C++
- Sterne
- 53
- Forks
- 25
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nmwsharp/polyscope-py
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
nmwsharp/polyscope-py#56 ·
-
Imgui Bundle Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
nmwsharp/polyscope-py#44 · 1 Kommentar ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
nmwsharp/polyscope-py#41 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 25/100
nmwsharp/polyscope-py#39 ·
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
nmwsharp/polyscope-py#36 · 1 Reaktion ·
Alle Issues in nmwsharp/polyscope-py
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
ros2/message_filters#338 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
subsurface/subsurface#4984 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
google-ai-edge/LiteRT-LM#3739 ·