-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temperature delta base dimensions? #777
Comments
Oops, I just now remembered that I'm on an older version of UnitsNet- so, there might be something new by now... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@angularsen, @tmilnthorp - hey guys- could you please tell me if you know of any reason for the TemperatureDelta quantity not having defined BaseDimensions. If it is a bug- then I will gladly fix it- so that can I move on with a PR for adding those operator tests that I mentioned up top. |
@tmilnthorp is probably best suited to answer this, I'm not really sure. The idea with I'm not sure there is a way to multiply or divide two quantities, where the expected result is a TemperatureDelta? In a way, I think TemperatureDelta is not really a separate quantity as much as it just represents a different (relative) scale of Temperature. If so, then maybe it shouldn't have |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
For the record- there is the TemperatureDelta operator *(LapseRate left, Length right) |
As a prelude to #709 I figure I'd run a test of the currently defined operators and see if there is mismatch between the dimensions of the operands and the result. To my great satisfaction- it found the faulty operator for Density / Mass (which I had previously annotated as obsolete- and completely forgotten about). The only other problem was with the TemperatureDelta which has no defined BaseDimensions- thus failing the dimensions multiplication (though I assume the operators are correct). Was there a reason for it not having the Temperature dimension defined?
Here is the test (I'd put it in the GeneratedQuantityCodeTests):
The text was updated successfully, but these errors were encountered: