12 Commits

Author SHA1 Message Date
Ian Bell
8a1ce06f62 Writing to single-phase tabular tables works now using msgpack-c
Packed data can be read back into python using something like

``` python
import json
import msgpack
import numpy as np
import matplotlib.pyplot as plt

with open(r'C:\Users\Belli\Documents\Code\coolprop-v5-new\dev\codelite\Debug\single_phase.bin','rb') as fp:
    i, matrices = msgpack.load(fp)
    T,h,p,rho = np.array(matrices['T']), np.array(matrices['hmolar']), np.array(matrices['p']), np.array(matrices['rhomolar'])
    T[np.logical_or(np.isnan(T),np.isinf(T))] = np.nan
    rho[np.logical_or(np.isnan(rho),np.isinf(rho))] = np.nan
    h[np.logical_or(np.isnan(h),np.isinf(h))] = np.nan
    p[np.logical_or(np.isnan(p),np.isinf(p))] = np.nan

    plt.scatter(T, np.log(p), c = rho, linewidths = 0)
    plt.show()
```
2015-02-21 17:34:27 -07:00
Ian Bell
399b046832 Add mathematica external and first cut at CMake integration
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 21:40:24 -05:00
Ian Bell
132b0ab5dd Fix RPVersion function call again
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-19 17:20:36 -06:00
Ian Bell
f7edca335f Revert Eigen submodule due to bug.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-19 16:05:58 -06:00
Jorrit Wronski
fd7a5a7bf0 Updated the external submodules 2014-12-18 11:35:42 +01:00
Jorrit Wronski
a1d2a2a9be Added the external REFPROP header and removed the constants from the cpp file, replaced tabs with 4 spaces 2014-12-18 11:28:23 +01:00
Ian Bell
7b17d579b6 Updated eigen submodule
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-26 15:05:42 +02:00
Ian Bell
df17eaf6cc python wrapper builds with vs2008 (fixed bug in Eigen)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 11:37:17 +02:00
jowr
3b6173bf83 Updated externals 2014-08-01 16:42:13 +02:00
Ian Bell
01cf51b979 Updated Catch submodule
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-26 01:33:22 +02:00
Ian Bell
62448d8357 Uppercase eigen external folder
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-26 01:30:48 +02:00
Ian bell
7099c5b8fb Added updated nice wrapper for EES
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-15 22:16:39 +02:00