<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 gold scale by Shim 2001.  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(0., 0.34, 18)
print(eta)
shim_au = eos.gold.Shim2002()
shim_au.print_equations()
shim_au.print_equations()
shim_au.print_parameters()
v0 = 67.84742110765599
shim_au.three_r
v = v0 * (1.-eta) 
temp = 3000.
p = shim_au.cal_p(v, temp * np.ones_like(v))<jupyter_output><empty_output><jupyter_text><jupyter_code>print('for T = ', temp)
for eta_i, p_i in zip(eta, p):
    print("{0: .3f} {1: .2f}".format(eta_i, p_i))
v = shim_au.cal_v(p, temp * np.ones_like(p), min_strain=0.6)
print(1.-(v/v0))<jupyter_output>[0.   0.02 0.04 0.06 0.08 0.1  0.12 0.14 0.16 0.18 0.2  0.22 0.24 0.26
 0.28 0.3  0.32 0.34]
{'fraction_non_alphanumeric': 0.1395139513951395, 'fraction_numerical': 0.08730873087308731, 'mean_word_length': 5.2824858757062145, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '55070', 'license': 'Apache-2.0', 'n_tokens_mistral': 540, 'n_tokens_neox': 483, 'n_words': 103, 'path': 'examples/6_p_scale_test_Shim_Au.ipynb', 'repo_name': 'SHDShim/pytheos', 'size': '1111'}