Skip to content

Units of the parcel temperature profile #1773

Answered by dopplershift
DavidWang505 asked this question in Q&A
Discussion options

You must be logged in to vote

Greetings! No such thing as a stupid question. 😆

So the @units.wraps(('=A', '=B'), ('=A', '=B', '=B', None, None)) around the definition of find_intersections uses Pint to say that the first 3 arguments to find_intersections have units of A, B, B, respectively, and returns two values with the units of A and B. wraps also checks to make sure that's correct.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidWang505
Comment options

Answer selected by dopplershift
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