Skip to content

Commit bfb38c6

Browse files
committed
small fixes in the data; add pascal case of unit name
1 parent 7a041d9 commit bfb38c6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

generator_code/unit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def __init__(
8484
super().__init__({
8585
'name': data['name'],
8686
'base_name': data['base_name'],
87+
'name_pascal': data['name'].replace("_", " ").title().replace(" ", ""),
8788
'unit_id': data['unit_id'],
8889
'literals': data.get('literals', []),
8990
'combinations': data.get('combinations', []),

type data/constants.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"value": 6.02214076e23
55
},
66
{
7-
"name": "waterFreezingPoint",
7+
"name": "water_freezing_point",
88
"value": 273.15
99
}
10-
]
10+
]

type data/units.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
"multiplier": 1e0
281281
},
282282
{
283-
"name": "kilo metre per second",
283+
"name": "kilo metre per hour",
284284
"code_literal": "kmph",
285285
"multiplier": 0.27777777777777777777777777777
286286
}
@@ -297,7 +297,7 @@
297297
"multiplier": 1e0
298298
},
299299
{
300-
"name": "standard gravity",
300+
"name": "standard gravity",
301301
"code_literal": "G",
302302
"multiplier": 9.80665
303303
}

0 commit comments

Comments
 (0)