mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-23 12:58:03 -05:00
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()
```
16 lines
555 B
Plaintext
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
|