Skip to content

Commit db4bf72

Browse files
Merge pull request #26 from SalvadorBrandolin/main
release 2.0.5
2 parents c28e03f + 22053e7 commit db4bf72

21 files changed

+494
-128
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exclude requirements-dev.txt
1111
exclude *.svg
1212
exclude binder.ipynb
1313
exclude reminder.md
14+
exclude _build
1415

1516
recursive-exclude dist *
1617
recursive-exclude tests *

README.md

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
[![PyPI
88
version](https://badge.fury.io/py/ugropy.svg)](https://badge.fury.io/py/ugropy)
99

10-
`ugropy` is a `Python` library to obtain subgroups from different
11-
thermodynamic group contribution models using both the name or the SMILES
12-
representation of a molecule. If the name is given, the library uses the
10+
`ugropy` is a `Python` library to obtain subgroups from different thermodynamic
11+
group contribution models using both the name or the SMILES representation of a
12+
molecule. If the name is given, the library uses the
1313
[PubChemPy](https://github.com/mcs07/PubChemPy) library to obtain the SMILES
1414
representation from PubChem. In both cases, `ugropy` uses the
1515
[RDKit](https://github.com/rdkit/rdkit) library to search the functional groups
@@ -18,17 +18,23 @@ in the molecule.
1818
`ugropy` is in an early development stage, leaving issues of examples of
1919
molecules that `ugropy` fails solving the subgroups of a model is very helpful.
2020

21+
`ugropy` is tested for `Python` 3.10, 3.11 and 3.12 on Linux, Windows and Mac
22+
OS.
23+
2124
## Try ugropy now
2225
You can try ugropy from its
2326
[Binder](https://mybinder.org/v2/gh/ipqa-research/ugropy/main). Open the
2427
binder.ipynb file to explore the basic features.
2528

26-
## Models supported v2.0.0
29+
## Models supported v2.0.5
2730
- Classic liquid-vapor UNIFAC
2831
- Predictive Soave-Redlich-Kwong (PSRK)
2932
- Joback
3033

3134
## Writers
35+
`ugropy` allows you to convert the obtained functional groups or estimated
36+
properties to the input format required by the following thermodynamic
37+
libraries:
3238

3339
- [Clapeyron.jl](github.com/ClapeyronThermo/Clapeyron.jl)
3440
- [Thermo](https://github.com/CalebBell/thermo)
@@ -118,7 +124,7 @@ writers.to_clapeyron(
118124
unifac_groups=[g.unifac.subgroups for g in grps],
119125
psrk_groups=[g.psrk.subgroups for g in grps],
120126
joback_objects=[g.joback for g in grps],
121-
path="./database"
127+
path="database"
122128
)
123129
```
124130
Obtain the [Caleb Bell's Thermo](https://github.com/CalebBell/thermo) subgroups
@@ -141,22 +147,3 @@ grps = [Groups(n) for n in names]
141147
```
142148
pip install ugropy
143149
```
144-
145-
## Refereces
146-
147-
[1] http://www.ddbst.com/published-parameters-unifac.html
148-
149-
[2] Joback, K. G., & Reid, R. C. (1987). ESTIMATION OF PURE-COMPONENT
150-
PROPERTIES FROM GROUP-CONTRIBUTIONS. Chemical Engineering Communications,
151-
57(1–6), 233–243. https://doi.org/10.1080/00986448708960487
152-
153-
[3] Joback, K. G. (1989). Designing molecules possessing desired physical
154-
property values [Thesis (Ph. D.), Massachusetts Institute of Technology].
155-
https://dspace.mit.edu/handle/1721.1/14191
156-
157-
[4] Bondi, A. (1966). Estimation of Heat Capacity of Liquids. Industrial &
158-
Engineering Chemistry Fundamentals, 5(4), 442–449.
159-
https://doi.org/10.1021/i160020a001
160-
161-
[5] Rowlinson, J. S., & Swinton, F. (2013). Liquids and liquid mixtures:
162-
Butterworths monographs in chemistry. Butterworth-Heinemann

docs/requirements.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
setuptools
2+
13
Sphinx
24
sphinx_rtd_theme
35

46
nbsphinx
57
sphinx_copybutton
8+
sphinxcontrib-bibtex
69

710
ipykernel
811
ipython
912

1013
matplotlib
11-
sphinxcontrib-bibtex
1214

13-
thermo >= 0.2.27
15+
thermo >= 0.2.27
16+
toml

docs/source/README.rst

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
.. figure:: ../../logo.svg
1+
.. figure:: logo.svg
22
:alt: logo
33

44
|Binder| |License| |Python 3.10+| |Docs| |PyPI version|
55

6-
ugropy
7-
======
8-
96
``ugropy`` is a ``Python`` library to obtain subgroups from different
107
thermodynamic group contribution models using both the name or the
118
SMILES representation of a molecule. If the name is given, the library
@@ -18,14 +15,17 @@ the functional groups in the molecule.
1815
of molecules that ``ugropy`` fails solving the subgroups of a model is
1916
very helpful.
2017

18+
``ugropy`` is tested for ``Python`` 3.10, 3.11 and 3.12 on Linux,
19+
Windows and Mac OS.
20+
2121
Try ugropy now
2222
==============
2323

2424
You can try ugropy from its
2525
`Binder <https://mybinder.org/v2/gh/ipqa-research/ugropy/main>`__. Open
2626
the binder.ipynb file to explore the basic features.
2727

28-
Models supported v2.0.0
28+
Models supported v2.0.5
2929
=======================
3030

3131
- Classic liquid-vapor UNIFAC
@@ -35,6 +35,10 @@ Models supported v2.0.0
3535
Writers
3636
=======
3737

38+
``ugropy`` allows you to convert the obtained functional groups or
39+
estimated properties to the input format required by the following
40+
thermodynamic libraries:
41+
3842
- `Clapeyron.jl <github.com/ClapeyronThermo/Clapeyron.jl>`__
3943
- `Thermo <https://github.com/CalebBell/thermo>`__
4044

@@ -131,7 +135,7 @@ input files.
131135
unifac_groups=[g.unifac.subgroups for g in grps],
132136
psrk_groups=[g.psrk.subgroups for g in grps],
133137
joback_objects=[g.joback for g in grps],
134-
path="./database"
138+
path="database"
135139
)
136140
137141
Obtain the `Caleb Bell’s Thermo <https://github.com/CalebBell/thermo>`__
@@ -158,27 +162,6 @@ Installation
158162

159163
pip install ugropy
160164

161-
Refereces
162-
=========
163-
164-
[1] http://www.ddbst.com/published-parameters-unifac.html
165-
166-
[2] Joback, K. G., & Reid, R. C. (1987). ESTIMATION OF PURE-COMPONENT
167-
PROPERTIES FROM GROUP-CONTRIBUTIONS. Chemical Engineering
168-
Communications, 57(1–6), 233–243.
169-
https://doi.org/10.1080/00986448708960487
170-
171-
[3] Joback, K. G. (1989). Designing molecules possessing desired
172-
physical property values [Thesis (Ph. D.), Massachusetts Institute of
173-
Technology]. https://dspace.mit.edu/handle/1721.1/14191
174-
175-
[4] Bondi, A. (1966). Estimation of Heat Capacity of Liquids. Industrial
176-
& Engineering Chemistry Fundamentals, 5(4), 442–449.
177-
https://doi.org/10.1021/i160020a001
178-
179-
[5] Rowlinson, J. S., & Swinton, F. (2013). Liquids and liquid mixtures:
180-
Butterworths monographs in chemistry. Butterworth-Heinemann
181-
182165
.. |Binder| image:: https://mybinder.org/badge_logo.svg
183166
:target: https://mybinder.org/v2/gh/ipqa-research/ugropy/main
184167
.. |License| image:: https://img.shields.io/badge/License-MIT-blue.svg

docs/source/conf.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,24 @@
88
import os
99
import pathlib
1010
import sys
11+
import toml
1112

1213
CURRENT_PATH = pathlib.Path(os.path.abspath(os.path.dirname(__file__)))
1314
UGROPY_PATH = CURRENT_PATH.parent.parent
1415

1516
sys.path.insert(0, str(UGROPY_PATH))
1617

18+
# Get release from pyproject
19+
pyproject_path = UGROPY_PATH / "pyproject.toml"
20+
with open(pyproject_path, "r") as f:
21+
pyproject_toml = toml.load(f)
22+
23+
project_version = pyproject_toml["project"]["version"]
1724

1825
project = "ugropy"
1926
copyright = "2023, Salvador Eduardo Brandolín"
2027
author = "Salvador Eduardo Brandolín"
21-
release = "2.0.0"
28+
release = project_version
2229

2330
# -- General configuration ---------------------------------------------------
2431
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@@ -33,7 +40,7 @@
3340
"sphinx.ext.autosummary",
3441
"nbsphinx",
3542
"sphinx_copybutton",
36-
# "sphinxcontrib.bibtex",
43+
"sphinxcontrib.bibtex",
3744
]
3845

3946
templates_path = ["_templates"]
@@ -44,6 +51,8 @@
4451
# =============================================================================
4552
autodoc_member_order = "bysource"
4653

54+
bibtex_bibfiles = ["refs.bib"]
55+
4756
# =============================================================================
4857
# NUMPY DOC
4958
# =============================================================================

docs/source/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
tutorial/tutorial
1313
modules
1414

15+
References
16+
==========
17+
18+
.. bibliography::
19+
:style: unsrt
20+
:cited:
1521

1622

1723
Indices and tables

0 commit comments

Comments
 (0)