Skip to content

Commit b4c78f4

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 0f4574e + 622b575 commit b4c78f4

File tree

8 files changed

+18
-15
lines changed

8 files changed

+18
-15
lines changed

Build/UnitsNet.Signed.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.Signed</id>
5-
<version>3.48.1</version>
5+
<version>3.49.0</version>
66
<title>Units.NET (signed)</title>
77
<authors>Andreas Gullberg Larsen</authors>
88
<owners>Andreas Gullberg Larsen</owners>
@@ -22,4 +22,4 @@
2222
<file src="Artifacts\Bin\Src-signed\AnyCPU_Release\**\UnitsNet.dll" target="lib" />
2323
<file src="UnitsNet\**\*.cs" exclude="UnitsNet\**\obj\**\*.cs" target="src" />
2424
</files>
25-
</package>
25+
</package>

Build/UnitsNet.WindowsRuntimeComponent.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.WindowsRuntimeComponent</id>
5-
<version>3.48.0</version>
5+
<version>3.49.0</version>
66
<title>Units.NET - Windows Runtime Component</title>
77
<authors>Andreas Gullberg Larsen</authors>
88
<owners>Andreas Gullberg Larsen</owners>
@@ -22,4 +22,4 @@
2222
<file src="Artifacts\Bin\Src-unsigned\AnyCPU_Release\uap10.0\UnitsNet.*" target="lib/uap10.0" />
2323
<file src="UnitsNet\**\*.cs" exclude="UnitsNet\**\obj\**\*.cs" target="src" />
2424
</files>
25-
</package>
25+
</package>

Build/UnitsNet.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet</id>
5-
<version>3.48.0</version>
5+
<version>3.49.0</version>
66
<title>Units.NET</title>
77
<authors>Andreas Gullberg Larsen</authors>
88
<owners>Andreas Gullberg Larsen</owners>
@@ -22,4 +22,4 @@
2222
<file src="Artifacts\Bin\Src-unsigned\AnyCPU_Release\**\UnitsNet.dll" target="lib" />
2323
<file src="UnitsNet\**\*.cs" exclude="UnitsNet\**\obj\**\*.cs" target="src" />
2424
</files>
25-
</package>
25+
</package>

UnitsNet.Tests/CustomCode/PressureTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class PressureTests : PressureTestsBase
5959

6060
protected override double PoundsForcePerSquareFootInOnePascal => 0.0208854342;
6161

62-
protected override double PoundsForcePerSquareInchInOnePascal => 0.000145037738;
62+
protected override double PoundsForcePerSquareInchInOnePascal => 0.000145037737730209;
6363

6464
protected override double PsiInOnePascal => 1.450377*1E-4;
6565

UnitsNet/GeneratedCode/Enums/PressureUnit.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public enum PressureUnit
6969
Pascal,
7070
PoundForcePerSquareFoot,
7171
PoundForcePerSquareInch,
72+
[System.Obsolete("Deprecated due to github issue #215, please use PoundForcePerSquareInch instead")]
7273
Psi,
7374
TechnicalAtmosphere,
7475
TonneForcePerSquareCentimeter,

UnitsNet/GeneratedCode/UnitClasses/Pressure.g.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public double KilopoundsForcePerSquareFoot
243243
/// </summary>
244244
public double KilopoundsForcePerSquareInch
245245
{
246-
get { return (_pascals*0.000145037725185479) / 1e3d; }
246+
get { return (_pascals*0.000145037737730209) / 1e3d; }
247247
}
248248

249249
/// <summary>
@@ -323,12 +323,13 @@ public double PoundsForcePerSquareFoot
323323
/// </summary>
324324
public double PoundsForcePerSquareInch
325325
{
326-
get { return _pascals*0.000145037725185479; }
326+
get { return _pascals*0.000145037737730209; }
327327
}
328328

329329
/// <summary>
330330
/// Get Pressure in Psi.
331331
/// </summary>
332+
[System.Obsolete("Deprecated due to github issue #215, please use PoundForcePerSquareInch instead")]
332333
public double Psi
333334
{
334335
get { return _pascals/(6.89464975179*1e3); }
@@ -516,7 +517,7 @@ public static Pressure FromKilopoundsForcePerSquareFoot(double kilopoundsforcepe
516517
/// </summary>
517518
public static Pressure FromKilopoundsForcePerSquareInch(double kilopoundsforcepersquareinch)
518519
{
519-
return new Pressure((kilopoundsforcepersquareinch*6894.75788951576) * 1e3d);
520+
return new Pressure((kilopoundsforcepersquareinch*6894.75729316836) * 1e3d);
520521
}
521522

522523
/// <summary>
@@ -596,7 +597,7 @@ public static Pressure FromPoundsForcePerSquareFoot(double poundsforcepersquaref
596597
/// </summary>
597598
public static Pressure FromPoundsForcePerSquareInch(double poundsforcepersquareinch)
598599
{
599-
return new Pressure(poundsforcepersquareinch*6894.75788951576);
600+
return new Pressure(poundsforcepersquareinch*6894.75729316836);
600601
}
601602

602603
/// <summary>

UnitsNet/GeneratedCode/UnitSystem.Default.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ private static readonly ReadOnlyCollection<UnitLocalization> DefaultLocalization
15981598
new CulturesForEnumValue((int) PressureUnit.PoundForcePerSquareInch,
15991599
new[]
16001600
{
1601-
new AbbreviationsForCulture("en-US", "lb/in²"),
1601+
new AbbreviationsForCulture("en-US", "psi", "lb/in²"),
16021602
}),
16031603
new CulturesForEnumValue((int) PressureUnit.Psi,
16041604
new[]

UnitsNet/Scripts/UnitDefinitions/Pressure.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
{
163163
"SingularName": "Psi",
164164
"PluralName": "Psi",
165+
"ObsoleteText": "Deprecated due to github issue #215, please use PoundForcePerSquareInch instead",
165166
"FromUnitToBaseFunc": "x*6.89464975179*1e3",
166167
"FromBaseToUnitFunc": "x/(6.89464975179*1e3)",
167168
"Localization": [
@@ -210,13 +211,13 @@
210211
{
211212
"SingularName": "PoundForcePerSquareInch",
212213
"PluralName": "PoundsForcePerSquareInch",
213-
"FromUnitToBaseFunc": "x*6894.75788951576",
214-
"FromBaseToUnitFunc": "x*0.000145037725185479",
214+
"FromUnitToBaseFunc": "x*6894.75729316836",
215+
"FromBaseToUnitFunc": "x*0.000145037737730209",
215216
"Prefixes": [ "Kilo" ],
216217
"Localization": [
217218
{
218219
"Culture": "en-US",
219-
"Abbreviations": [ "lb/in²" ],
220+
"Abbreviations": [ "psi", "lb/in²" ],
220221
"AbbreviationsWithPrefixes": [ "kipf/in²" ]
221222
}
222223
]

0 commit comments

Comments
 (0)