From 9fe478b7b9c6f3cdc99449a592644ea9da6e114c Mon Sep 17 00:00:00 2001 From: Zach Baird <22378936+zmeri@users.noreply.github.com> Date: Thu, 29 Apr 2021 10:57:04 +0300 Subject: [PATCH] update example --- docs/README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.rst b/docs/README.rst index c62f145..5563f04 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -37,7 +37,7 @@ Example t = 320 # K p = 101325 # Pa den = pcsaft_den(t, p, x, pyargs, phase='liq') - print('Density of toluene at {} K:'.format(t), den, 'mol m^-3') + print('Density of toluene at {} K: {} mol m^-3'.format(t, den)) # Water using default 2B association scheme x = np.asarray([1.]) @@ -51,7 +51,7 @@ Example s = np.asarray([2.7927 + 10.11*np.exp(-0.01775*t) - 1.417*np.exp(-0.01146*t)]) # temperature dependent sigma is used for better accuracy pyargs = {'m':m, 's':s, 'e':e, 'e_assoc':eAB, 'vol_a':volAB} den = pcsaft_den(t, p, x, pyargs, phase='liq') - print('Density of water at {} K:'.format(t), den, 'mol m^-3') + print('Density of water at {} K: {} mol m^-3'.format(t, den)) # Water using 4C association scheme x = np.asarray([1.]) @@ -66,7 +66,7 @@ Example s = np.asarray([2.7927 + 10.11*np.exp(-0.01775*t) - 1.417*np.exp(-0.01146*t)]) # temperature dependent sigma is used for better accuracy pyargs = {'m':m, 's':s, 'e':e, 'e_assoc':eAB, 'vol_a':volAB, 'assoc_scheme':assoc_schemes} den = pcsaft_den(t, p, x, pyargs, phase='liq') - print('Density of water at {} K:'.format(t), den, 'mol m^-3') + print('Density of water at {} K: {} mol m^-3'.format(t, den)) Dependencies ------------