Skip to content

Commit 8df3039

Browse files
authored
Merge pull request #33 from WRPSoft/main
Pressure conversion added
2 parents b65f3e5 + c2e39b5 commit 8df3039

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,36 @@ The following units and their abbreviations can be used (each table can only con
425425
</tr>
426426
</table>
427427

428+
<table>
429+
<tr>
430+
<th>Subject</th>
431+
<th>Unit</th>
432+
<th>Abbreviation</th>
433+
<th rowspan="14" align="center"><img src="assets/Pressure.ico" alt="Pressure Logo"></th>
434+
</tr>
435+
<tr>
436+
<td rowspan="14" align="center">Pressure</td>
437+
<td>bar</td>
438+
<td>bar</td>
439+
</tr>
440+
<tr>
441+
<td>psi</td>
442+
<td>psi</td>
443+
</tr>
444+
<tr>
445+
<td>atm</td>
446+
<td>atm</td>
447+
</tr>
448+
<tr>
449+
<td>Pa</td>
450+
<td>pa</td>
451+
</tr>
452+
<tr>
453+
<td>kPa</td>
454+
<td>kpa</td>
455+
</tr>
456+
</table>
457+
428458
### Problems, errors and feature requests
429459

430460
Open an issue in this repo.

assets/Pressure.ico

137 KB
Binary file not shown.

plugin/units.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,4 +447,13 @@
447447
"x * 0.00000000000000000710542735760100185871124267578125",
448448
], # 2^50
449449
],
450+
"Pressure": [
451+
# Base
452+
["bar", _("bar"), _("bar"), "x * 1", "x * 1"],
453+
# All below convert to / from base
454+
["psi", _("psi"), _("psi"), "x / 14.5038", "x * 14.5038"],
455+
["atm", _("atm"), _("atm"), "x * 1.01325", "x / 1.01325"],
456+
["pa", _("Pa"), _("Pa"), "x / 100000", "x * 100000"],
457+
["kpa", _("kPa"), _("kPa"), "x / 100", "x * 100"],
458+
],
450459
}

0 commit comments

Comments
 (0)