Skip to content

Recommended use of wraps and check for unitizing float functions with default args #1755

Answered by hgrecco
rkingsbury asked this question in Q&A
Discussion options

You must be logged in to vote
  1. wraps and check are not intendend to be combined. The first is intended to convert a standard function into a unit aware function. The wrapper convert the input into magnitudes of the chosen units which in turn are supplied to the wrapped function. The second only checks that the units or dimensions are right. So wraps converts (implicit check) and magnitud extraction.

  2. I would like to support that case.

  3. The right way would be to make wraps accept dimensions and fix the default value.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hgrecco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1065 on April 27, 2023 03:26.