Jorrit Wronski
cc180db2f9
Use docker cp instead of volumes to fix uid issues, more a hack than a fix.
2017-12-19 09:20:43 +01:00
Ian Bell
357a92aae3
Fix some unicode string handling issues
2017-12-16 17:07:25 -07:00
Matthis Thorade
19a4875879
More autopep8 ( #1621 )
...
* autopep8 rule-groups E101,W1,W2,W3
* autopep8 with rule group E3 (blank lines)
autopep8 --in-place --recursive --max-line-length=200 --exclude="externals" --select="E101,E3,W1,W2,W3" .
* tabs and space W191
* autopep8 aggressive
2017-12-13 14:43:41 +01:00
Matthis Thorade
526cb198a4
autopep8 whitespace ( #1613 )
...
* autopep8 whitespace only:
--select="E101,W1,W2"
* revert single file: web2py_online.py
Should this be a .py file at all?
* revert file Tickets/1443.py because the diff looked strange:
maybe there is an encoding problem?
* Rename web2py_online.py to web2py_online.rst
2017-12-12 08:32:38 -07:00
Ian Bell
62fda6f174
Add ability to specify the departure functions as JSON
2017-11-15 00:16:25 -07:00
Jeff Henning
d59c18728b
Added Python wrapper CMake generator for vc14 for when default is higher ( #1591 )
2017-11-10 21:42:06 -05:00
Howard Cheung
3e1978be98
Change for compiler directive name in Cython 0.26 ( #1527 )
...
Cython 0.26 changes its compiler directive name from `embed_signature` to `embedsignature`. Hence an if-statement is added to facilitate compilation of Python wrappers using the new compiler directive name when Cython 0.26 is used. `_profiling_enabled` variable is also handled slightly more elegant.
2017-07-25 10:37:20 +02:00
Jorrit Wronski
6924b8d6b7
Added the new docker image for manylinux wheels
2017-03-10 21:55:30 +01:00
Jorrit Wronski
7a1ee42b27
More testing of the plotting functions
2017-03-10 13:48:29 +01:00
Jorrit Wronski
22f6a3b81d
This seems to be the most sane handling of the guess values
2017-03-10 12:14:02 +01:00
Jorrit Wronski
686ca2ec00
The guesses do not help much here, unfortunately
2017-03-10 11:29:09 +01:00
Jorrit Wronski
3a33e0a048
An optimistic approach towards using the guess values
2017-03-10 11:19:41 +01:00
Jorrit Wronski
5b198f2e9e
Added more hacks to handle the critical point
2017-03-10 09:49:04 +01:00
Jorrit Wronski
bf73e006c0
Added the guesses to the line tracer
2017-03-10 09:29:18 +01:00
Ian Bell
3471e910d0
Expose get_fluid_constant to AbstractState and to python; closes #1394
2017-01-18 19:31:56 -07:00
Ian Bell
85e8be705c
Implement set_binary_interaction_string for REFPROP backend to allow for setting departure function ( #1358 )
2016-11-29 17:58:14 -05:00
Jorrit Wronski
0dac175dae
one more update of the manylinux builders to handle #1324
2016-11-18 16:57:23 +01:00
Jorrit Wronski
3905f380e0
Moved the MSVC handling to functions and changed the default for static libraries to dynamic linking, see #1316
2016-11-08 11:01:01 +01:00
Ian Bell
71dc450e10
Fix python windows builds; closes #1319
2016-11-06 12:38:52 -07:00
Ian Bell
b7aa899f1a
Fix that get_config_string and get_config_double returns nothing in python; closes #1307
2016-10-31 20:23:54 -06:00
Ian Bell
4895d593f2
Fix spinodal functions
2016-10-23 22:08:06 -06:00
Ian Bell
42e74fab5d
Remove void in build_spinodal definition
2016-10-23 20:42:34 -06:00
Ian Bell
365bcb7e18
Update pybind11 wrapper code and build files
2016-10-22 17:22:17 -06:00
Ian Bell
49c6932fda
Add preprocessor macro around pybind11 module instantiation to protect it
2016-10-21 18:51:42 -06:00
Ian Bell
94242e224b
Add a pybind11 wrapper interface file for low-level interface
2016-10-21 18:46:59 -06:00
Ian Bell
7893a7f7d9
Make spinodal accessible to python
...
See plot:
```
import CoolProp, numpy as np, matplotlib.pyplot as plt
CP = CoolProp.CoolProp
AS = CP.AbstractState('HEOS','Methane&Ethane')
AS.set_mole_fractions([0.5,0.5])
# The spinodal
AS.build_spinodal()
sp = AS.get_spinodal_data()
plt.plot(sp.tau, sp.delta, label='spinodal')
# The phase envelope
AS.build_phase_envelope("none")
pe = AS.get_phase_envelope_data()
plt.plot(AS.T_reducing()/np.array(pe.T), np.array(pe.rhomolar_vap)/AS.rhomolar_reducing(), label='phase envelope')
plt.show()
```
2016-10-13 20:48:10 -06:00
Jorrit Wronski
3a72d8cf02
Might have fixed the CMake issues in #1247
2016-09-30 00:16:48 +02:00
Ian Bell
5fc1d9f51a
Add the ability to set limits in Consistency plots ( #1234 )
2016-09-16 10:14:30 -06:00
Ian Bell
9a9e7ecc54
Fix path to which cppformat is copied
2016-08-30 18:38:55 -06:00
Ian Bell
1d64b31fa0
Update setup.py for new location of cppformat
2016-08-28 00:51:02 -06:00
Ian Bell
f6b8467249
A few improvements to consistency plots
2016-08-23 22:54:44 -06:00
Ian Bell
47bd64343a
Add some more debugging to consistency plots, disable psuedo-pure in two-phase region
2016-08-23 22:32:18 -06:00
Ian Bell
ee040062c7
Add 4th order alphar derivatives to python; closes #1184
2016-08-11 21:42:47 -06:00
Ian Bell
2c598fe33a
Add mole fractions to phase envelopes in python and C++; closes #1164
2016-08-10 19:54:20 -06:00
Ian Bell
ab744e1c0d
Add evaluation of excess properties in python; closes #1071
2016-07-12 19:46:05 -06:00
Jorrit Wronski
89cac55f86
Removing a single unused import fixes #1094
2016-07-12 16:32:40 +02:00
Ian Bell
ccc4568cbd
Re-implement fundamental derivative of gas dynamics; closes #1145
2016-07-09 17:13:44 -06:00
Jorrit Wronski
3632f76e9a
handling of the critical point for the plots seems to done, closes #1118
2016-06-09 16:45:51 +02:00
Jorrit Wronski
209474a7e2
Bug in the copy operation for mixtures
2016-06-09 16:18:39 +02:00
Jorrit Wronski
af5104a830
Bug in the copy operation for mixtures
2016-06-09 16:18:38 +02:00
Jorrit Wronski
1a0259a744
Change the factory method to accept more strings, closes #1120
2016-06-09 16:18:38 +02:00
Jorrit Wronski
7c0d3ebe37
Included a manual copy of the abstract state object and exposed the backend name to Python
2016-06-09 16:18:38 +02:00
Jorrit Wronski
809998aecb
Added a real state object for the critical state
2016-06-09 16:18:38 +02:00
Ian Bell
8c9b1a5e9b
Added Helmholtz energy throughout the API as output parameter; closes #1086
2016-06-05 15:56:37 -06:00
Ian Bell
758c5e0177
Merge branch 'master' of https://github.com/coolprop/coolprop
2016-06-01 20:30:05 -06:00
Ian Bell
e8c90e40e3
Fix typo in python wrapper of acentric factor; closes #1084
2016-06-01 20:29:14 -06:00
Jorrit Wronski
6d669dc607
make the manylinux scripts executable
2016-05-27 13:38:56 +02:00
Jorrit Wronski
272003fff3
Fixed a conflict of Bash variable names
2016-05-27 11:33:39 +02:00
Jorrit Wronski
08fd0997aa
Changed the docker scripts
2016-05-27 10:25:21 +02:00
Jorrit Wronski
662e10f8fe
Fixed the manylinux builder, closes #1061
2016-05-25 20:40:20 +02:00