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

Rename SpecificFuelConsumption.GramPerKiloNewtonSecond to GramPerKilonewtonSecond #1491

Merged
merged 4 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions Common/UnitDefinitions/SpecificFuelConsumption.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Name": "SpecificFuelConsumption",
"BaseUnit": "GramPerKiloNewtonSecond",
"BaseUnit": "GramPerKilonewtonSecond",
"XmlDocSummary": "SFC is the fuel efficiency of an engine design with respect to thrust output",
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Thrust-specific_fuel_consumption",
"BaseDimensions": {
Expand Down Expand Up @@ -33,8 +33,8 @@
]
},
{
"SingularName": "GramPerKiloNewtonSecond",
"PluralName": "GramsPerKiloNewtonSecond",
"SingularName": "GramPerKilonewtonSecond",
"PluralName": "GramsPerKilonewtonSecond",
"BaseUnits": {
"L": "Meter",
"T": "Second"
Expand Down
4 changes: 3 additions & 1 deletion Common/UnitEnumValues.g.json
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,9 @@
"GramPerKiloNewtonSecond": 1,
"KilogramPerKilogramForceHour": 2,
"KilogramPerKiloNewtonSecond": 3,
"PoundMassPerPoundForceHour": 4
"PoundMassPerPoundForceHour": 4,
"GramPerKilonewtonSecond": 11,
"KilogramPerKilonewtonSecond": 6
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here:

This maybe a little hack-y, but I think that if we changed these by hand (to the old values) - I think they would stick.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I suggest we do the same here, match the old values.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 730eab1

},
"SpecificVolume": {
"CubicFootPerPound": 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.

8 changes: 4 additions & 4 deletions UnitsNet.Tests/CustomCode/SpecificFuelConsumptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public class SpecificFuelConsumptionTests : SpecificFuelConsumptionTestsBase
// Override properties in base class here
protected override bool SupportsSIUnitSystem => false;

protected override double GramsPerKiloNewtonSecondInOneGramPerKiloNewtonSecond => 1;
protected override double GramsPerKilonewtonSecondInOneGramPerKilonewtonSecond => 1;

protected override double KilogramsPerKiloNewtonSecondInOneGramPerKiloNewtonSecond => 1e-3;
protected override double KilogramsPerKilonewtonSecondInOneGramPerKilonewtonSecond => 1e-3;

protected override double PoundsMassPerPoundForceHourInOneGramPerKiloNewtonSecond => 0.03529827;
protected override double PoundsMassPerPoundForceHourInOneGramPerKilonewtonSecond => 0.03529827;

protected override double KilogramsPerKilogramForceHourInOneGramPerKiloNewtonSecond => 0.03529827;
protected override double KilogramsPerKilogramForceHourInOneGramPerKilonewtonSecond => 0.03529827;
}
}
Loading