<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 Jamieson 1983.  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.225, 46)
print(eta)
jamieson_aul = eos.gold.Jamieson1982L()
jamieson_auh = eos.gold.Jamieson1982H()
jamieson_aul.print_equations()
jamieson_auh.print_equations()
jamieson_aul.print_parameters()
jamieson_auh.print_parameters()
v0 = 67.84747902176544
jamieson_aul.three_r
jamieson_auh.three_r
v = v0 * (1.-eta) 
temp = 1500.
p = jamieson_auh.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 = jamieson_auh.cal_v(p, temp * np.ones_like(p), min_strain=0.6)
print(1.-(v/v0))<jupyter_output>[0.    0.005 0.01  0.015 0.02  0.025 0.03  0.035 0.04  0.045 0.05  0.055
 0.06  0.065 0.07  0.075 0.08  0.085 0.09  0.095 0.1   0.105 0.11  0.115
 0.12  0.125 0.13  0.135 0.14  0.145 0.15  0.155 0.16  0.165 0.17  0.175
 0.18  0.185 0.19  0.195 0.2   0.205 0.21  0.215 0.22  0.225]
{'fraction_non_alphanumeric': 0.1336116910229645, 'fraction_numerical': 0.14613778705636743, 'mean_word_length': 4.406015037593985, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '126701', 'license': 'Apache-2.0', 'n_tokens_mistral': 775, 'n_tokens_neox': 644, 'n_words': 135, 'path': 'examples/6_p_scale_test_Jamieson_Au.ipynb', 'repo_name': 'SHDShim/pytheos', 'size': '1437'}