Closed cocasema closed 2 years ago
Yes! Very good idea! The implementation is elegant too!
Also, you could not have know that NumericOption does eval on the input, cos I forgot to update the docs. Ironically, inputs like "1/3" will now yield exact float values 🤦♂️
(This comes from the usage in modm)
I think it might be a bit more user friendly to allow users specifying units in some lbuild options. An example could be
now it's
which is already way better than what I originally had (failed to RTFM and find out the NumericOption can do basic math)
Even if the existing NumericOption.as_numeric_value modified a bit, it can be used to allow
M
/Mi
multipliers (although w/o units):This will parse
or
Would you find this addition useful ?