compas-dev / compas-dev/compas

Better logging feedback (more assertions)

Open
#1,216 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.