New units element? #6784
Replies: 6 comments 12 replies
-
As a teacher of physics courses, this would be great. We have some engineers working with us on a shared question bank on PrairieLearn that are forced to use imperial units (probably because they're still prevalent in the real world and the standards body requires questions of that sort). Since there's no way to force a specific variant for individual courses/assessments (I think that's coming right 🤞🏽) we often have two different versions of questions. Sometimes we can compromise and then we build Frankenstein questions like this (one part in imperial units, and one in SI units): This way engineering students are exposed to Imperial units, and I can make sure students know how to convert from silly units to proper units. Anyway, long story short, I'd find this useful integrated with the number-input element! |
Beta Was this translation helpful? Give feedback.
-
A question I had while implementing: Is there a use case for questions with unit agnostic grading? So for example, students could submit their answers in feet or meters and have their answer automatically converted to meters and compared to the reference solution. |
Beta Was this translation helpful? Give feedback.
-
Thank you!! is there a news item I could share with others ? |
Beta Was this translation helpful? Give feedback.
-
Update: ah yes I see it in #7302 |
Beta Was this translation helpful? Give feedback.
-
Since the element was merged in #6790, going to go ahead and close this discussion. Can be reopened if there are issues related to this element that warrant greater back and forth. |
Beta Was this translation helpful? Give feedback.
-
There was a previously proposed unit input element: #4801
It has a lot of code changes, but most of those can actually be removed by adding an external dependency (see https://pint.readthedocs.io/en/stable/) instead of having the code changes be present internally.
However, the element as described in the PR has very similar semantics to the existing
pl-number-input
element, so I'm wondering whether it's worth making this an add-on to the that existing element. What are people's thoughts on this?Associated draft PR is here: #6790
Beta Was this translation helpful? Give feedback.
All reactions