dlr-gtlab / gtlab-core

GTlab Core Framework
https://www.gtlab.de
Other
7 stars 2 forks source link

💡 [REQUEST] - Add IntProperty option to have only odd or even values #1227

Open jensschmeink opened 3 months ago

jensschmeink commented 3 months ago

Summary

Originally posted in https://gitlab.dlr.de/gtlab/gtlab-issuetracking/-/issues/32

It would be handy to force the value to be either odd or even. Would make some error handling unnecessary and make user experience better.

Improvements

In some use cases there might be only sensefull even (or odd) values

Drawbacks

Change of the interface might be necessary

Current workarounds

checks in the code and hints for the user to use a correct value