690 Commits

Author SHA1 Message Date
spinnau
cd48615207 Make wrapper for LibreOffice an extension (#1773)
* Make wrapper for LibreOffice an extension

The LibreOffice wrapper is changed to be a real extension for LibreOffice.
Just as with the current solution, Python is used for the calculations in
the background.

* The extension now contains the complete wrapper code. Thus, there is
  no need anymore to use a special prepared LibreOffice template file.

* The wrapper is extended to contain all high-level interface functions
  and includes descriptions for the cell formulas.

* The extension contains a helper function to download and install the
  CoolProp Python package within the extension directory. This function
  can be called from the LibreOffice options menu. On macOS the Python
  certifi package will be used to verify certificates for https downloads.

* Update web documentation for new LibreOffice extension

* Installation and usage instructions

* Create CMake target for building of the LibreOffice wrapper

* Prepare and bundle all files as .oxt extension file
2019-01-11 12:16:08 -07:00
Jorrit Wronski
fe7c8f1805 Feature/recent compilers (#1783)
This fixes many issues: 
- Python packages can be built with XCode 10, closes #1782 
- Handling of CMake options for OSX stdc++ is streamlined
- TR1 warnings from MSVC 2017 have been silenced
- Nightly builds fixed, closes #1778 
- Documentation builds fixed, closes #1762 
- Python source packages are updated with recent Cython, closes #1777
2019-01-11 11:42:55 +01:00
Ian Bell
7479175fc6 Typo in setup.py 2019-01-10 14:27:00 -07:00
Ian Bell
6c46d7d257 A possibly naive solution for 10.14 2019-01-10 14:23:48 -07:00
Ian Bell
ede4fec6f6 Don't force OSX 10.5 compat 2019-01-09 23:36:04 -07:00
Jeff Henning
de465e1cf6 Disambiguate IF97 Fluid Names - Water only (#1770) 2018-12-19 22:55:42 -05:00
Szabolcs Horvát
a1e6b713a7 Free input strings in Mathematica interface (#1761)
* Free input strings in Mathematica interface
2018-11-28 20:58:39 -05:00
Jeff Henning
4b1ace160e Throw sensible error message for single-phase surface tension (#1755) 2018-10-29 09:08:54 +01:00
Jorrit Wronski
e00a31f1ef Use docker to build the Javascript wrapper 2018-10-24 20:04:03 +02:00
Ian Bell
aadea90451 Don't overwrite the passed in fluid string 2018-10-21 17:29:57 +02:00
scls19fr
4d487ac3f0 Update example.py (#1749) 2018-10-19 23:17:03 +02:00
Jeff Henning
34dcb680d4 Show an actual DeprecationWarning if Props() used. (#1743)
* Show an actual DeprecationWarning if Props() used.

* Add warning suppression to Python wrapper docs [ci skip]
2018-10-13 09:23:07 -04:00
Ian Bell
70b717f13d Switch from string to bytes, should ensure ABI compatibility of manylinux builds 2018-10-11 22:15:20 +02:00
Ian Bell
40a6884d25 Make it clear that this is not a zip_safe package 2018-10-03 12:36:35 +02:00
Jorrit Wronski
514ee59e27 Updated external submodules (#1727)
This change is somewhat related to #1604 .

* Catch is now at v2.3.0
* Eigen is now at v3.3.5
* FindMathemaica is now at v3.2.4
* fmtlib (formerly cppformat) is now at v4.1.0 (v5.x.x is not compatible with our code).
* msgpack-c is now at v3.0.1
* pybind11 is now at v2.2.3    
* All the other submodules have been moved to the latest master commit
* All submodules are sorted alphabetically
2018-08-30 10:36:27 +02:00
luzpaz
93f4a986e2 Misc. typos (#1726)
Found via `codespell -i 3 -w -I ../coolprop-word-whitelist.txt` whereby whitelist consists of:
```
cas
formate
hel
nd
te
tim
ue
uint
```
2018-08-14 23:06:49 -06:00
Jorrit Wronski
f316483f4d Ported the changes from #1723 to master 2018-08-13 21:28:08 +02:00
Jorrit Wronski
a23824abd5 getting ready for Python3.7, related to #1604, #1654 and #1309. Please refer to https://github.com/CoolProp/Dockerfiles for details 2018-08-09 12:04:29 +02:00
thorade
39eb5767df E721: isinstance instead of type comparison
this is for #1612
2018-04-17 13:10:03 +02:00
Ian Bell
8b7fb6abd4 Implement get/set_fluid_parameter_double in C++ and python 2018-03-25 17:09:56 -06:00
Ian Bell
c0406b878d Kill manylinux slaves for sure 2018-03-11 19:08:41 -06:00
Ian Bell
04d9360b3d Fix StateContainer print in py36; closes #1406 2018-03-11 13:46:41 -06:00
Ian Bell
79f8b3f777 Dont remove container 2018-03-10 20:21:31 -07:00
Ian Bell
0084bba3f0 Try to not run the ls 2018-03-10 19:50:30 -07:00
Ian Bell
ea75360dc2 version 1.5.2 of the manylinux container should give us python 3.6 builds now. See 90c0fca14e 2018-03-10 19:32:59 -07:00
Ian Bell
517ddd862f Back to 1.5.0 tag 2018-03-10 16:12:08 -07:00
Ian Bell
adb8519ae4 Why is python 3.6 build not happening? 2018-03-10 16:01:01 -07:00
Ian Bell
aaea205704 No more need to kill the image? 2018-03-10 14:44:36 -07:00
Ian Bell
c4ec292a9d Try some more aggressive options to stop the manylinux container 2018-03-10 14:40:21 -07:00
Ian Bell
a3c2d4432f Also show which containers are running 2018-03-10 14:24:27 -07:00
Ian Bell
0dd0c5ceb4 Switch to latest version of manylinux builder - adds python 3.6 support? 2018-03-10 14:21:30 -07:00
Ian Bell
ff95fd5725 If manylinux is hanging, stop it first 2018-03-10 14:11:05 -07:00
Jeff Henning
abcd91a9a7 Update PropsSI() to Parse Imposed Phase Strings on Input Keys (#1660)
* PropsSI enhancement to allow imposed phase on Input key string

* Update PropsSI documentation for imposing phase [skip ci]
2018-03-07 21:51:41 -07:00
xaumex
3387c1006e Mistake in function 'inline_label' in CoolProp/Plots/Common.py (#1656) 2018-02-27 22:19:45 -07:00
Ian Bell
194ab07072 Fix cimport paths for python 3.x; closes #1649 2018-02-23 20:41:33 -07:00
notmyrealhandle
6a57dc70f2 fix inconsistent function declarations between AbstractState.pyx and AbstractState.pxd (#1638) (#1640) 2018-01-30 22:14:14 -07:00
Ian Bell
fdd5de66ac Skip some of the Props calls and go right to the AbstractState 2017-12-19 08:05:41 -07:00
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
fsonnino
cf43ff5e04 Update README.rst (#1571)
* Update README.rst

* Update README.rst

* Update README.rst
2017-10-20 08:54:55 -06:00
Alex
adcf526951 Fixed a small bug with EES wrapper (#1566)
Added 'SI' directive to command string to make propssiz function work. Added a demo call to the EES sample file.
2017-10-20 08:54:04 -06:00
fsonnino
4287ad697d Create compile_only_udf.sh (#1567)
This Script only links the udf with the coolprop library, usefull if the coolprop library is already compiled to save compilation time and do a rapid test of the modified udfs
2017-10-19 08:34:02 -06:00
fsonnino
00e1702322 Create CoolProp_Properties_of_Water.c (#1569)
Fluent udf to call the following thermo physical properties of water :
-Density
-Thermal Conductivity
-Viscosity
-Specific Heat

If the user want's to add other properties it should be done in priority with the following entry variables Temperature and Pressure which gives in the udf the generic following statement :
property=PropsSI((char*)"corresponding_property", (char*)"T", temperature, (char*)"P", pressure, (char*)FLUID);
2017-10-19 08:29:45 -06:00
fsonnino
884cdc076a Create CoolProp_Properties_of_Brine.c (#1570)
This udf call the thermal properties of a mixture incompressible fluid. It calls the following properties :

-Density
-Thermal Conductivity
-Viscosity
-Specific Heat

If the user want's to add other properties it should be done in priority with the following entry variables Temperature and Pressure which gives in the udf the generic following statement :
property=PropsSI((char*)"corresponding_property", (char*)"T", temperature, (char*)"P", pressure, (char*)FLUID);
2017-10-19 08:29:35 -06:00
Dev-iL
ad44738d01 Topic 1497 - deprecating the SWIG wrapper for MATLAB in favor of a python-based alternative. (#1543)
* Replaced the old SWIG-based wrapper with a python-based one.

- `PropsSI.m` is now the entry point.
- Added tests.
- Documentation updated.

* Documentation converted from Markdown to reStructredText

Following https://github.com/CoolProp/CoolProp/issues/1497#issuecomment-324845758.

* Further fixes to documentation.

* Further fixes to documentation #2.

Worked around the indentation issue in the numbered list.

* Added handling of arrays with zero dimensions to matpy

* Added a convenience wrapper for the low-level AbstractState API

- Readme updated accordingly.
- Tests updated accordingly.

* Renamd CoolProps to CoolProp
2017-09-03 10:10:10 -06:00
Jericho
94ed79c0cc fix typos (#1542)
Typos in Julia wrapper
2017-08-28 19:36:41 +02:00