Skip to content
Snippets Groups Projects
Commit a72d94ec authored by Emanuele Laface's avatar Emanuele Laface
Browse files

Accurate setpoint for H4 curve

parent 6316ab9a
No related branches found
No related tags found
No related merge requests found
Pipeline #39273 passed
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment