Files
CoolProp/.gitmodules
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

16 lines
555 B
Plaintext

[submodule "externals/Catch"]
path = externals/Catch
url = https://github.com/philsquared/Catch
[submodule "externals/Eigen"]
path = externals/Eigen
url = https://github.com/RLovelett/eigen.git
[submodule "externals/REFPROP-headers"]
path = externals/REFPROP-headers
url = https://github.com/CoolProp/REFPROP-headers.git
[submodule "externals/FindMathematica"]
path = externals/FindMathematica
url = https://github.com/sakra/FindMathematica
[submodule "externals/msgpack-c"]
path = externals/msgpack-c
url = https://github.com/msgpack/msgpack-c