compas-dev / compas-dev/compas
Better logging feedback (more assertions)
Open
- Dominant language
- Python
- Stars
- 386
- Forks
- 122
- Avg merge
- 11d 46m
- Merged PRs (30d)
- 1
Description
# Feature Request
As a user, I want the terminal logging to be more informational for easier debugging and tracing.
such output, and many others, are hard to trace the bug as a general user:
```bash
File "C:\Users\zaczz\miniconda3\envs\compas-dev\lib\site-packages\compas\datastructures\halfedge\halfedge.py", line 439, in add_face
if u not in self.halfedge[v]:
KeyError: 3
```
while developers can make this more informational by using logging tools like [loguru](https://loguru.readthedocs.io/en/stable/) and enumerating possible exceptions during the development.
also, I would suggest more rigorous type hint.
Contributor guide
Assessment
This issue has not been assessed yet.