Skip to content

Add measurement labels with new label_format option #794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dstotz
Copy link
Contributor

@dstotz dstotz commented May 5, 2025

Adds a new label_format option that can be used to specify an option to allow for displaying measurements of a part instead of or in addition to the generators provided label. Made description the default option to preserve existing behavior.

Example of new behavior

image
image
image

Adds a new label_format option that can be used to specify an option to allow for displaying measurements of a part instead of or in addition to the generators provided label. Made description the default option to preserve existing behavior.
@dstotz
Copy link
Contributor Author

dstotz commented May 5, 2025

Wasn't sure what the best formatting here would be for the measurements. Do you have an opinion on if it should be a clamped float like current, rounded to the 2nd or 3rd decimal, or even potentially an integer if it's a round number?

ex alternative format int(n) if n == int(n) else round(n, 3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant