Skip to content

Commit a84780d

Browse files
authored
💚FluidResistance: Remove duplicate, invalid base units (#1511)
Removing all base units except for the base unit and one more trivial variant.
1 parent 4892a08 commit a84780d

File tree

2 files changed

+20
-90
lines changed

2 files changed

+20
-90
lines changed

Common/UnitDefinitions/FluidResistance.json

Lines changed: 3 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
{
1313
"SingularName": "PascalSecondPerLiter",
1414
"PluralName": "PascalSecondsPerLiter",
15-
"BaseUnits": {
16-
"M": "Kilogram",
17-
"L": "Meter",
18-
"T": "Second"
19-
},
2015
"FromUnitToBaseFunc": "{x} * 1e3",
2116
"FromBaseToUnitFunc": "{x} / 1e3",
2217
"Localization": [
@@ -36,7 +31,7 @@
3631
"BaseUnits": {
3732
"M": "Kilogram",
3833
"L": "Meter",
39-
"T": "Second"
34+
"T": "Minute"
4035
},
4136
"FromUnitToBaseFunc": "{x} * 6e4",
4237
"FromBaseToUnitFunc": "{x} / 6e4",
@@ -55,7 +50,7 @@
5550
"SingularName": "PascalSecondPerMilliliter",
5651
"PluralName": "PascalSecondsPerMilliliter",
5752
"BaseUnits": {
58-
"M": "Kilogram",
53+
"M": "Gram",
5954
"L": "Meter",
6055
"T": "Second"
6156
},
@@ -75,11 +70,6 @@
7570
{
7671
"SingularName": "PascalMinutePerMilliliter",
7772
"PluralName": "PascalMinutesPerMilliliter",
78-
"BaseUnits": {
79-
"M": "Kilogram",
80-
"L": "Meter",
81-
"T": "Second"
82-
},
8373
"FromUnitToBaseFunc": "{x} * 6e7",
8474
"FromBaseToUnitFunc": "{x} / 6e7",
8575
"Localization": [
@@ -121,7 +111,7 @@
121111
"BaseUnits": {
122112
"M": "Kilogram",
123113
"L": "Meter",
124-
"T": "Second"
114+
"T": "Minute"
125115
},
126116
"FromUnitToBaseFunc": "{x} * 60",
127117
"FromBaseToUnitFunc": "{x} / 60",
@@ -139,11 +129,6 @@
139129
{
140130
"SingularName": "PascalSecondPerCubicCentimeter",
141131
"PluralName": "PascalSecondsPerCubicCentimeter",
142-
"BaseUnits": {
143-
"M": "Kilogram",
144-
"L": "Meter",
145-
"T": "Second"
146-
},
147132
"FromUnitToBaseFunc": "{x} * 1e6",
148133
"FromBaseToUnitFunc": "{x} / 1e6",
149134
"Localization": [
@@ -160,11 +145,6 @@
160145
{
161146
"SingularName": "PascalMinutePerCubicCentimeter",
162147
"PluralName": "PascalMinutesPerCubicCentimeter",
163-
"BaseUnits": {
164-
"M": "Kilogram",
165-
"L": "Meter",
166-
"T": "Second"
167-
},
168148
"FromUnitToBaseFunc": "{x} * 6e7",
169149
"FromBaseToUnitFunc": "{x} / 6e7",
170150
"Localization": [
@@ -181,11 +161,6 @@
181161
{
182162
"SingularName": "DyneSecondPerCentimeterToTheFifth",
183163
"PluralName": "DyneSecondsPerCentimeterToTheFifth",
184-
"BaseUnits": {
185-
"M": "Kilogram",
186-
"L": "Meter",
187-
"T": "Second"
188-
},
189164
"FromUnitToBaseFunc": "{x} * 1e5",
190165
"FromBaseToUnitFunc": "{x} / 1e5",
191166
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Vascular_resistance",
@@ -203,11 +178,6 @@
203178
{
204179
"SingularName": "MillimeterMercurySecondPerLiter",
205180
"PluralName": "MillimeterMercurySecondsPerLiter",
206-
"BaseUnits": {
207-
"M": "Kilogram",
208-
"L": "Meter",
209-
"T": "Second"
210-
},
211181
"FromUnitToBaseFunc": "{x} * 1.33322368e5",
212182
"FromBaseToUnitFunc": "{x} / 1.33322368e5",
213183
"Localization": [
@@ -224,11 +194,6 @@
224194
{
225195
"SingularName": "MillimeterMercuryMinutePerLiter",
226196
"PluralName": "MillimeterMercuryMinutesPerLiter",
227-
"BaseUnits": {
228-
"M": "Kilogram",
229-
"L": "Meter",
230-
"T": "Second"
231-
},
232197
"FromUnitToBaseFunc": "{x} * 7.99934208e6",
233198
"FromBaseToUnitFunc": "{x} / 7.99934208e6",
234199
"Localization": [
@@ -245,11 +210,6 @@
245210
{
246211
"SingularName": "MillimeterMercurySecondPerMilliliter",
247212
"PluralName": "MillimeterMercurySecondsPerMilliliter",
248-
"BaseUnits": {
249-
"M": "Kilogram",
250-
"L": "Meter",
251-
"T": "Second"
252-
},
253213
"FromUnitToBaseFunc": "{x} * 1.33322368e8",
254214
"FromBaseToUnitFunc": "{x} / 1.33322368e8",
255215
"Localization": [
@@ -266,11 +226,6 @@
266226
{
267227
"SingularName": "MillimeterMercuryMinutePerMilliliter",
268228
"PluralName": "MillimeterMercuryMinutesPerMilliliter",
269-
"BaseUnits": {
270-
"M": "Kilogram",
271-
"L": "Meter",
272-
"T": "Second"
273-
},
274229
"FromUnitToBaseFunc": "{x} * 7.99934208e9",
275230
"FromBaseToUnitFunc": "{x} / 7.99934208e9",
276231
"Localization": [
@@ -287,11 +242,6 @@
287242
{
288243
"SingularName": "MillimeterMercurySecondPerCubicCentimeter",
289244
"PluralName": "MillimeterMercurySecondsPerCubicCentimeter",
290-
"BaseUnits": {
291-
"M": "Kilogram",
292-
"L": "Meter",
293-
"T": "Second"
294-
},
295245
"FromUnitToBaseFunc": "{x} * 1.33322368e8",
296246
"FromBaseToUnitFunc": "{x} / 1.33322368e8",
297247
"Localization": [
@@ -308,11 +258,6 @@
308258
{
309259
"SingularName": "MillimeterMercuryMinutePerCubicCentimeter",
310260
"PluralName": "MillimeterMercuryMinutesPerCubicCentimeter",
311-
"BaseUnits": {
312-
"M": "Kilogram",
313-
"L": "Meter",
314-
"T": "Second"
315-
},
316261
"FromUnitToBaseFunc": "{x} * 7.99934208e9",
317262
"FromBaseToUnitFunc": "{x} / 7.99934208e9",
318263
"Localization": [
@@ -329,11 +274,6 @@
329274
{
330275
"SingularName": "MillimeterMercurySecondPerCubicMeter",
331276
"PluralName": "MillimeterMercurySecondsPerCubicMeter",
332-
"BaseUnits": {
333-
"M": "Kilogram",
334-
"L": "Meter",
335-
"T": "Second"
336-
},
337277
"FromUnitToBaseFunc": "{x} * 133.322368",
338278
"FromBaseToUnitFunc": "{x} / 133.322368",
339279
"Localization": [
@@ -350,11 +290,6 @@
350290
{
351291
"SingularName": "MillimeterMercuryMinutePerCubicMeter",
352292
"PluralName": "MillimeterMercuryMinutesPerCubicMeter",
353-
"BaseUnits": {
354-
"M": "Kilogram",
355-
"L": "Meter",
356-
"T": "Second"
357-
},
358293
"FromUnitToBaseFunc": "{x} * 7.99934208e3",
359294
"FromBaseToUnitFunc": "{x} / 7.99934208e3",
360295
"Localization": [
@@ -371,11 +306,6 @@
371306
{
372307
"SingularName": "WoodUnit",
373308
"PluralName": "WoodUnits",
374-
"BaseUnits": {
375-
"M": "Kilogram",
376-
"L": "Meter",
377-
"T": "Second"
378-
},
379309
"FromUnitToBaseFunc": "{x} * 7.99934208e6",
380310
"FromBaseToUnitFunc": "{x} / 7.99934208e6",
381311
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Vascular_resistance",

UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs

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

0 commit comments

Comments
 (0)