Commit Graph

403 Commits

Author SHA1 Message Date
Ian Bell
396fe0ce4d Added two phase derivative functions to python wrapper
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-02 13:07:08 -05:00
Ian Bell
06003c6ff6 Error if matrix input in PropsSI in python; Closes #387
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-19 21:29:00 -07:00
Jorrit Wronski
57470bc9be Fixed a typo in PropsSI in Python wrapper 2015-01-15 11:56:35 +01:00
Jorrit Wronski
cf4febfebd Almost done, the PGF stuff needs more hacks than expected. 2015-01-13 00:10:54 +01:00
Ian Bell
3c65678a8d Fix python wrapper code
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-07 15:23:16 -07:00
Ian Bell
1693b19a81 Fixed bug in HighLevelAPI.rst by a slightly better error message in PropsSI
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-07 15:15:28 -07:00
Ian Bell
3d68475e6b Merge branch 'master' of https://github.com/coolprop/coolprop 2015-01-04 22:33:37 -05:00
Ian Bell
abac4e57d0 Nicer warning message if constants.so|py|dylib cannot be removed by python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-04 22:33:06 -05:00
Jorrit Wronski
c60ee1d567 This is a preliminary fix for the issue #387 because I need the code. I hope this does not break things for others. 2015-01-04 16:15:04 +01:00
Ian Bell
5db8338ceb Make import of _constant be absolute import for py3.x; See #388
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-04 00:36:07 -05:00
Ian Bell
d0e17c4ce3 Replaced draw_process function. Units need to be fixed; See #351
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 12:29:22 -05:00
Ian Bell
c50a4f6494 Automatically generate the enum keys for Python. Maybe helps with pydev issue; See #367
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 12:09:25 -05:00
Ian Bell
c2047e4162 Define get_mixture_binary_pair_data as extern in DataStructures.h in order to allow linking CoolProp and PDSim
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 11:17:14 -05:00
Jorrit Wronski
6cbfc9efac Added the new include folder to the Python builder 2014-12-19 15:47:58 +01:00
Ian Bell
99810eabf1 Python setup script shows call to cmake build
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 15:47:42 -05:00
Ian Bell
5b50fa934d Log scale densities for consistency Plots
Closes https://github.com/CoolProp/CoolProp/issues/275

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-03 14:22:06 -05:00
Ian Bell
984a8f98d7 Make the REFPROP plots work
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 01:57:00 -05:00
Ian Bell
6eb01dd41b Return a numpy array from PropsSI in python again
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 18:13:21 -05:00
Ian Bell
e43301facb Fix typo in __init__.py
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 17:09:21 -05:00
Ian Bell
9bbcb782d0 Fix python cleanup code
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 17:01:53 -05:00
Ian Bell
bd1e045a32 Make pip install more verbose; remove constants shared library if needed
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 16:47:16 -05:00
Ian Bell
335c615bce Fix error handling in ConsistencyPlot.py; See #370 2014-12-31 20:41:31 +01:00
Ian Bell
5de4f77d58 Bump the minimum temperature just a bit to get consistency plots to all build; See #370 2014-12-31 12:31:27 -05:00
Ian Bell
f8576b1d49 PropsSImulti is integrated into Python wrapper; extract_fractions is exported
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 20:08:35 -05:00
Ian Bell
9958bd47d8 Merge branch 'master' into vectorize_PropsSI 2014-12-30 17:44:55 -05:00
Ian Bell
369fa6c1f2 sdist preparation works again
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 17:44:08 -05:00
Ian Bell
492de3edeb Merge branch 'master' into vectorize_PropsSI 2014-12-30 17:39:35 -05:00
Ian Bell
016bfcfc7e Call the generate constants module script when generating sdist for pypi
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 17:38:37 -05:00
Ian Bell
6bb87e192a Fixed the constant module generation again
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 17:18:45 -05:00
Ian Bell
8df53bc632 Fix bug with enum values that are specified
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 17:14:54 -05:00
Ian Bell
5c87d684de Fix failing py 3.x builds thanks to constants generation script by removing filter call
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 01:32:21 -05:00
Ian Bell
ac42616e60 Fix bug with generate_constants_module.py
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 15:26:45 -05:00
Ian Bell
1a7e411546 Expose the functions first_saturation_deriv and second_saturation_deriv through the cython interface
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-24 14:05:22 -05:00
Ian Bell
3e255e263e Expose gas_constant through python wrapper
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 22:08:27 -05:00
Ian Bell
3c9f9c310a Removed call to set backend to TkAgg
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-27 18:06:20 -05:00
Ian Bell
d4898c3963 Added consistency plots to expensive docs.
Closes https://github.com/CoolProp/CoolProp/issues/235

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-27 12:07:18 -05:00
Ian Bell
e236d44989 Make python build script use g++ for CC and CXX 2014-11-25 21:19:12 +01:00
Jorrit Wronski
38b4348a7f Not all computers have a macversion, of course. 2014-11-25 19:41:08 +01:00
Jorrit Wronski
ba36fd903c Let us hope this fixes #246 ... something similar might have to be done in the cmake config files 2014-11-25 19:33:18 +01:00
Ian Bell
b844cc58a4 setup.py can use default compiler that cmake wants to use
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 14:57:21 -05:00
Ian Bell
92531ec373 PropsSI raises a Type Error if iterables are not all the same length; Returns numpy array if possible
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 00:23:10 -05:00
Ian Bell
4681b9db47 Removed a lot of old tests in python that are already mirrored in Catch tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 00:22:20 -05:00
Ian Bell
eaf6168891 Add mingw cmake support to setup.py - though this doesn't seem to be working. Compiles but crashes.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 21:21:25 -05:00
Ian Bell
e0a4349884 Apply default values for generate update pair to squash warning
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 20:54:06 -05:00
Ian Bell
09bdf671c7 Added generate_update_pair function to python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 13:21:08 -05:00
Ian Bell
e2fc2d87c5 Consistency plots default to building all plots
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 12:06:21 -05:00
Ian Bell
755b0da85b Fix tiny typo to make sphinx happier
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 12:05:54 -05:00
Ian Bell
6f4a4fcc93 getting/setting configuration values from python works
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-18 23:33:32 -05:00
Ian Bell
3046ac559a Evaluate all inputs before doing plotting for consistency plots - ~10x faster !!
Also time the plots

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-12 18:32:59 -05:00
Ian Bell
d517b4d23b Added consistency plot to plotting for python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-11 20:41:49 -05:00