From a72d94ecfb411ece933db6e9cbe401de5bae168f Mon Sep 17 00:00:00 2001
From: Emanuele Laface <emanuele.laface@esss.se>
Date: Mon, 3 Aug 2020 17:09:19 +0200
Subject: [PATCH] Accurate setpoint for H4 curve

---
 PythonServer/screens/ts2_helevpres.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PythonServer/screens/ts2_helevpres.py b/PythonServer/screens/ts2_helevpres.py
index c00dcc4..2b0d45e 100755
--- a/PythonServer/screens/ts2_helevpres.py
+++ b/PythonServer/screens/ts2_helevpres.py
@@ -13,11 +13,11 @@ def p2t(p):
     # This formula uses the Table 3 of ITS-90 from NIST paper: https://www.nist.gov/system/files/documents/pml/div685/grp01/ITS-90_metrologia.pdf
     if not numpy.isreal(p):  # If pressure is not a number
         return "N/A"
-    if p < 1.14734339635:  # This formula is valid only for Temperature > 1.25 K
+    if p < 1.14734339634282:  # This formula is valid only for Temperature > 1.25 K
         return "N/A"
-    if p > 1960.1653287485129335:  # 'This formula is valid only for Temperature < 5 K'
+    if p > 1960.16532874851:  # 'This formula is valid only for Temperature < 5 K'
         return "N/A"
-    if p <= 50.4181515759834:
+    if p <= 50.4181:
         P = p * 100  # From mbar to Pascal
         A = [
             1.392408,
-- 
GitLab