diff --git a/sources/ptm/contents/code/main.py b/sources/ptm/contents/code/main.py index 1393808..541a952 100644 --- a/sources/ptm/contents/code/main.py +++ b/sources/ptm/contents/code/main.py @@ -47,6 +47,17 @@ def getTemp(temp, unit): temp = str(round(((float(temp) * 9.0 / 5.0) + 32.0), 1)) elif (unit == "Kelvin"): temp = str(round((float(temp) + 273.15), 1)) + elif (unit == "Reaumur"): + temp = str(round((float(temp) * 0.8), 1)) + elif (unit == "cm^-1"): + kelvin = round((float(temp) + 273.15), 1) + temp = str(round((kelvin * 0.695), 1)) + elif (unit == "kJ/mol"): + kelvin = round((float(temp) + 273.15), 1) + temp = str(round((kelvin * 8.31), 1)) + elif (unit == "kcal/mol"): + kelvin = round((float(temp) + 273.15), 1) + temp = str(round((kelvin * 1.98), 1)) return temp diff --git a/sources/ptm/contents/ui/advanced.ui b/sources/ptm/contents/ui/advanced.ui index 394a0e0..3ca7142 100644 --- a/sources/ptm/contents/ui/advanced.ui +++ b/sources/ptm/contents/ui/advanced.ui @@ -207,6 +207,11 @@ $m - uptime minutes without zero Kelvin + + + Reaumur + +