Skip to content

Commit 0628c3c

Browse files
authored
🔥 Remove obsolete Molarity units (#1174)
Remove duplicate, obsolete units with plural naming instead of singular naming. - MolesPerCubicMeter - MolesPerLiter (plus prefixes)
1 parent 1ee74f8 commit 0628c3c

File tree

8 files changed

+317
-376
lines changed

8 files changed

+317
-376
lines changed

Common/UnitDefinitions/Molarity.json

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,13 @@
11
{
22
"Name": "Molarity",
3-
"BaseUnit": "MolesPerCubicMeter",
3+
"BaseUnit": "MolePerCubicMeter",
44
"XmlDocSummary": "Molar concentration, also called molarity, amount concentration or substance concentration, is a measure of the concentration of a solute in a solution, or of any chemical species, in terms of amount of substance in a given volume. ",
55
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Molar_concentration",
66
"BaseDimensions": {
77
"L": -3,
88
"N": 1
99
},
1010
"Units": [
11-
{
12-
"SingularName": "MolesPerCubicMeter",
13-
"PluralName": "MolesPerCubicMeter",
14-
"ObsoleteText": "Use the singular unit instead.",
15-
"SkipConversionGeneration": true,
16-
"AllowAbbreviationLookup": false,
17-
"BaseUnits": {
18-
"L": "Meter",
19-
"N": "Mole"
20-
},
21-
"FromUnitToBaseFunc": "{x}",
22-
"FromBaseToUnitFunc": "{x}",
23-
"Prefixes": [],
24-
"Localization": [
25-
{
26-
"Culture": "en-US",
27-
"Abbreviations": [ "mol/m³" ]
28-
}
29-
]
30-
},
31-
{
32-
"SingularName": "MolesPerLiter",
33-
"PluralName": "MolesPerLiter",
34-
"ObsoleteText": "Use the singular unit instead.",
35-
"SkipConversionGeneration": true,
36-
"AllowAbbreviationLookup": false,
37-
"BaseUnits": {
38-
"L": "Decimeter",
39-
"N": "Mole"
40-
},
41-
"FromUnitToBaseFunc": "{x} / 1e-3",
42-
"FromBaseToUnitFunc": "{x} * 1e-3",
43-
"Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Centi", "Deci" ],
44-
"Localization": [
45-
{
46-
"Culture": "en-US",
47-
"Abbreviations": [ "mol/L", "M" ]
48-
}
49-
]
50-
},
5111
{
5212
"SingularName": "MolePerCubicMeter",
5313
"PluralName": "MolesPerCubicMeter",

UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs

Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Units/MolarityUnit.g.cs

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)