<jupyter_start><jupyter_text>For high dpi displays.<jupyter_code>%config InlineBackend.figure_format = 'retina'<jupyter_output><empty_output><jupyter_text>0. General note This example compares pressure calculated from `pytheos` and original publication for the platinum scale by Dorogokupets 2015.  1. Global setup<jupyter_code>import matplotlib.pyplot as plt
import numpy as np
from uncertainties import unumpy as unp
import pytheos as eos<jupyter_output><empty_output><jupyter_text>3. Compare<jupyter_code>eta = np.linspace(1., 0.70, 7)
print(eta)
dorogokupets2015_pt = eos.platinum.Dorogokupets2015()
help(eos.platinum.Dorogokupets2015)
dorogokupets2015_pt.print_equations()
dorogokupets2015_pt.print_equations()
dorogokupets2015_pt.print_parameters()
v0 = 60.37930856339099
dorogokupets2015_pt.three_r
v = v0 * (eta) 
temp = 3000.
p = dorogokupets2015_pt.cal_p(v, temp * np.ones_like(v))
print('for T = ', temp)
for eta_i, p_i in zip(eta, p):
    print("{0: .3f} {1: .2f}".format(eta_i, p_i))<jupyter_output>for T =  3000.0
 1.000  20.72+/-0.00
 0.950  36.00+/-0.01
 0.900  57.33+/-0.01
 0.850  86.89+/-0.01
 0.800  127.75+/-0.01
 0.750  184.28+/-0.02
 0.700  262.84+/-0.02<jupyter_text>The table is not given in this publication.<jupyter_code>v = dorogokupets2015_pt.cal_v(p, temp * np.ones_like(p), min_strain=0.6)
print((v/v0))<jupyter_output>[1.   0.95 0.9  0.85 0.8  0.75 0.7 ]
{'fraction_non_alphanumeric': 0.1349206349206349, 'fraction_numerical': 0.12842712842712842, 'mean_word_length': 5.056768558951965, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '501023', 'license': 'Apache-2.0', 'n_tokens_mistral': 722, 'n_tokens_neox': 594, 'n_words': 116, 'path': 'examples/6_p_scale_test_Dorogokupets2015_Pt.ipynb', 'repo_name': 'SHDShim/pytheos', 'size': '1386'}