Skip to content
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

Add KelvinPerMinute to TemperatureChangeRateUnit #1429

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Common/UnitDefinitions/TemperatureChangeRate.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@
"Abbreviations": [ "°C/min" ]
}
]
},
{
"SingularName": "DegreeKelvinPerMinute",
"PluralName": "DegreesKelvinPerMinute",
"FromUnitToBaseFunc": "({x} / 60) - 273.15",
"FromBaseToUnitFunc": "({x} + 273.15) * 60",
"Prefixes": [],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "K/min" ]
}
]
}
]
}
3 changes: 2 additions & 1 deletion Common/UnitEnumValues.g.json
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,8 @@
"KilodegreeCelsiusPerSecond": 7,
"MicrodegreeCelsiusPerSecond": 8,
"MillidegreeCelsiusPerSecond": 9,
"NanodegreeCelsiusPerSecond": 10
"NanodegreeCelsiusPerSecond": 10,
"DegreeKelvinPerMinute": 20
},
"TemperatureDelta": {
"DegreeCelsius": 1,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions UnitsNet.Tests/CustomCode/TemperatureChangeRateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class TemperatureChangeRateTests : TemperatureChangeRateTestsBase

protected override double DegreesCelsiusPerMinuteInOneDegreeCelsiusPerSecond => 60;

protected override double DegreesKelvinPerMinuteInOneDegreeCelsiusPerSecond => 16449;

[Fact]
public void TemperatureChangeRateMultipliedWithTimeSpanEqualsTemperatureDelta()
{
Expand Down
Loading