Skip to content
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

Make DataContainer name, unit and category attributes optional #288

Open
psomhorst opened this issue Jul 25, 2024 · 0 comments
Open

Make DataContainer name, unit and category attributes optional #288

psomhorst opened this issue Jul 25, 2024 · 0 comments
Assignees

Comments

@psomhorst
Copy link
Contributor

psomhorst commented Jul 25, 2024

When creating a data container, you have to supply a name, unit and category. Often, these are not necessary, but they make code quite verbose. Often, the name and category are (mostly) a copy-paste of the label. A lot of types of data don't require a unit.

Especially when creating a lot of data containers in a file, the three extra lines per data container add up.

I propose making the name default to a (capitalised?) copy of label, the unit default to None and the category default to "other".

@psomhorst psomhorst self-assigned this Jul 25, 2024
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

No branches or pull requests

1 participant