{"action":"created","issue":{"url":"https://api.github.com/repos/CoolProp/CoolProp/issues/622","labels_url":"https://api.github.com/repos/CoolProp/CoolProp/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/CoolProp/CoolProp/issues/622/comments","events_url":"https://api.github.com/repos/CoolProp/CoolProp/issues/622/events","html_url":"https://github.com/CoolProp/CoolProp/issues/622","id":71019245,"number":622,"title":"TTSE Water Param bug","user":{"login":"11718pauld","id":10331330,"avatar_url":"https://avatars.githubusercontent.com/u/10331330?v=3","gravatar_id":"","url":"https://api.github.com/users/11718pauld","html_url":"https://github.com/11718pauld","followers_url":"https://api.github.com/users/11718pauld/followers","following_url":"https://api.github.com/users/11718pauld/following{/other_user}","gists_url":"https://api.github.com/users/11718pauld/gists{/gist_id}","starred_url":"https://api.github.com/users/11718pauld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/11718pauld/subscriptions","organizations_url":"https://api.github.com/users/11718pauld/orgs","repos_url":"https://api.github.com/users/11718pauld/repos","events_url":"https://api.github.com/users/11718pauld/events{/privacy}","received_events_url":"https://api.github.com/users/11718pauld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-26T06:30:04Z","updated_at":"2015-04-28T01:23:02Z","closed_at":null,"body":"Just did a `git pull` and [build](http://www.coolprop.org/coolprop/wrappers/Python/index.html#python) and with reference to, https://github.com/CoolProp/CoolProp/issues/621\r\n\r\nSomething like this,\r\n```python\r\nimport CoolProp.CoolProp as CPpy\r\nimport numpy as np\r\nimport CoolProp.constants as CPc\r\n\r\nlen = 100\r\nst = CPpy.AbstractState('TTSE&HEOS','Water')\r\nh = np.linspace(900e3,1100e3,len)\r\np = np.linspace(2.8e6,2.9e6,len)\r\n\r\n\r\nfor i in range(1, len):\r\n    st.update(CPc.HmassP_INPUTS, h[i], p[i])\r\n    rho = st.keyed_output(CPc.iDmass)\r\n    t = st.keyed_output(CPc.iT)\r\n    #eta = st.keyed_output(CPc.iviscosity)\r\n    x = st.keyed_output(CPc.iQ)\r\n    if (np.isnan(rho) or np.isinf(rho) or np.isnan(t) or np.isinf(t) or\r\n        np.isnan(x) or np.isinf(x)):\r\n        print('%f %f %f %f %f' % (h[i], p[i], rho, t, x))\r\n    else:\r\n        continue\r\n```\r\nyields\r\n```python\r\n902020.202020 2801010.101010 852.327019 484.047755 -inf\r\n904040.404040 2802020.202020 851.771352 484.491490 -inf\r\n906060.606061 2803030.303030 851.214734 484.934953 -inf\r\n908080.808081 2804040.404040 850.657163 485.378146 -inf\r\n910101.010101 2805050.505051 850.098641 485.821068 -inf\r\n912121.212121 2806060.606061 849.539167 486.263720 -inf\r\n914141.414141 2807070.707071 848.978740 486.706101 -inf\r\n916161.616162 2808080.808081 848.417363 487.148211 -inf\r\n918181.818182 2809090.909091 847.855033 487.590051 -inf\r\n920202.020202 2810101.010101 847.291751 488.031620 -inf\r\n922222.222222 2811111.111111 846.727387 488.472832 -inf\r\n924242.424242 2812121.212121 846.162193 488.913850 -inf\r\n926262.626263 2813131.313131 845.596023 489.354581 -inf\r\n928282.828283 2814141.414141 845.028878 489.795027 -inf\r\n930303.030303 2815151.515152 844.460757 490.235187 -inf\r\n932323.232323 2816161.616162 843.891662 490.675060 -inf\r\n934343.434343 2817171.717172 843.321591 491.114648 -inf\r\n936363.636364 2818181.818182 842.750545 491.553949 -inf\r\n938383.838384 2819191.919192 842.178524 491.992965 -inf\r\n940404.040404 2820202.020202 841.605528 492.431694 -inf\r\n942424.242424 2821212.121212 841.031556 492.870137 -inf\r\n944444.444444 2822222.222222 840.456609 493.308295 -inf\r\n946464.646465 2823232.323232 839.880539 493.746072 -inf\r\n948484.848485 2824242.424242 839.303621 494.183640 -inf\r\n950505.050505 2825252.525253 838.725701 494.620906 -inf\r\n952525.252525 2826262.626263 838.146779 495.057869 -inf\r\n954545.454545 2827272.727273 837.566856 495.494530 -inf\r\n956565.656566 2828282.828283 836.985931 495.930889 -inf\r\n958585.858586 2829292.929293 836.404005 496.366945 -inf\r\n960606.060606 2830303.030303 835.821077 496.802699 -inf\r\n962626.262626 2831313.131313 835.237148 497.238151 -inf\r\n964646.464646 2832323.232323 834.652217 497.673300 -inf\r\n966666.666667 2833333.333333 834.066284 498.108146 -inf\r\n968686.868687 2834343.434343 833.479184 498.542594 -inf\r\n970707.070707 2835353.535354 832.891242 498.976828 -inf\r\n972727.272727 2836363.636364 832.302269 499.410743 -inf\r\n974747.474747 2837373.737374 831.712265 499.844338 -inf\r\n976767.676768 2838383.838384 831.121230 500.277613 -inf\r\n978787.878788 2839393.939394 830.529163 500.710569 -inf\r\n980808.080808 2840404.040404 829.936066 501.143205 -inf\r\n982828.282828 2841414.141414 829.341937 501.575521 -inf\r\n984848.484848 2842424.242424 828.746776 502.007518 -inf\r\n986868.686869 2843434.343434 828.150585 502.439195 -inf\r\n988888.888889 2844444.444444 827.553363 502.870552 -inf\r\n990909.090909 2845454.545455 826.955109 503.301590 -inf\r\n992929.292929 2846464.646465 nan nan -inf\r\n```"},"comment":{"url":"https://api.github.com/repos/CoolProp/CoolProp/issues/comments/96870228","html_url":"https://github.com/CoolProp/CoolProp/issues/622#issuecomment-96870228","issue_url":"https://api.github.com/repos/CoolProp/CoolProp/issues/622","id":96870228,"user":{"login":"ibell","id":1859947,"avatar_url":"https://avatars.githubusercontent.com/u/1859947?v=3","gravatar_id":"","url":"https://api.github.com/users/ibell","html_url":"https://github.com/ibell","followers_url":"https://api.github.com/users/ibell/followers","following_url":"https://api.github.com/users/ibell/following{/other_user}","gists_url":"https://api.github.com/users/ibell/gists{/gist_id}","starred_url":"https://api.github.com/users/ibell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibell/subscriptions","organizations_url":"https://api.github.com/users/ibell/orgs","repos_url":"https://api.github.com/users/ibell/repos","events_url":"https://api.github.com/users/ibell/events{/privacy}","received_events_url":"https://api.github.com/users/ibell/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T01:23:02Z","updated_at":"2015-04-28T01:23:02Z","body":"When you provide PH, please give some information about where on the fluid surface your inputs are."}}