Skip to content

Commit

Permalink
Merge pull request #28 from ipqa-research/27-get-rid-of-problematic-s…
Browse files Browse the repository at this point in the history
…tructures

27 get rid of problematic structures
  • Loading branch information
SalvadorBrandolin authored Oct 20, 2024
2 parents 7c75a8f + 010886e commit f93f355
Show file tree
Hide file tree
Showing 235 changed files with 76,473 additions and 9,439 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.vscode
docs/source/tutorial/database
docs/source/tutorial/figure.svg

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo](logo.png)

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ipqa-research/ugropy/main)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ipqa-research/ugropy/blob/main/docs/source/tutorial/easy_way.ipynb)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://tldrlegal.com/license/mit-license)
![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-blue)
[![Docs](https://img.shields.io/badge/docs%20-%20green?style=flat&label=Sphinx&link=https%3A%2F%2Fipqa-research.github.io%2Fugropy%2Findex.html)](https://salvadorbrandolin.github.io/ugropy/)
Expand All @@ -22,11 +22,9 @@ molecules that `ugropy` fails solving the subgroups of a model is very helpful.
OS.

# Try ugropy now
You can try ugropy from its
[Binder](https://mybinder.org/v2/gh/ipqa-research/ugropy/main). Open the
binder.ipynb file to explore the basic features.
You can try `ugropy` without installing it by clicking on the Colab badge.

# Models supported v2.0.7
# Models implemented
- Classic liquid-vapor UNIFAC
- Predictive Soave-Redlich-Kwong (PSRK)
- Joback
Expand Down Expand Up @@ -93,19 +91,15 @@ print(f"{limonene.joback.vapor_pressure(176 + 273.15)} bar")
Visualize your results! (The next code creates the `ugropy` logo)

```Python
from IPython.display import SVG

mol = Groups("CCCC1=C(COC(C)(C)COC(=O)OCC)C=C(CC2=CC=CC=C2)C=C1", "smiles")

svg = mol.unifac.draw(
mol.unifac.draw(
title="ugropy",
width=800,
height=450,
title_font_size=50,
legend_font_size=14
)

SVG(svg)
```

Write down the [Clapeyron.jl](https://github.com/ClapeyronThermo/Clapeyron.jl)
Expand All @@ -132,15 +126,15 @@ Obtain the [Caleb Bell's Thermo](https://github.com/CalebBell/thermo) subgroups
```python
from ugropy import unifac

names = ["hexane", "2-butanone"]
names = ["hexane", "ethanol"]

grps = [Groups(n) for n in names]

[writers.to_thermo(g.unifac.subgroups, unifac) for g in grps]
```

```
[{1: 2, 2: 4}, {1: 1, 2: 1, 18: 1}]
[{1: 2, 2: 4}, {1: 1, 2: 1, 14: 1}]
```

## Installation
Expand Down
381 changes: 0 additions & 381 deletions binder.ipynb

This file was deleted.

2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ ipython

matplotlib

pytest

thermo >= 0.2.27
toml
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
# =============================================================================
# EXTRA CONF
# =============================================================================
# nbsphinx
nbsphinx_execute = "always"

autodoc_member_order = "bysource"

bibtex_bibfiles = ["refs.bib"]
Expand Down Expand Up @@ -72,10 +75,8 @@
"""Configuration Module."""
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
7 changes: 7 additions & 0 deletions docs/source/constants.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
constants
=========

.. automodule:: ugropy.constants
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/core/checks.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Checks
======

.. automodule:: ugropy.core.checks
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/core/frag_classes/base/fragmentation_model.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FragmentationModel
==================

.. automodule:: ugropy.core.frag_classes.base.fragmentation_model
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/core/frag_classes/base/fragmentation_result.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FragmentationModelResult
========================

.. automodule:: ugropy.core.frag_classes.base.fragmentation_result
:members:
:undoc-members:
:show-inheritance:
13 changes: 13 additions & 0 deletions docs/source/core/frag_classes/base/init.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Base fragmentation Class
========================

.. automodule:: ugropy.core.frag_classes.base
:members:
:undoc-members:
:show-inheritance:

.. toctree::
:maxdepth: 1

fragmentation_model
fragmentation_result
7 changes: 7 additions & 0 deletions docs/source/core/frag_classes/gibbs_model/gibbs_model.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Gibbs Model
===========

.. automodule:: ugropy.core.frag_classes.gibbs_model.gibbs_model
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/core/frag_classes/gibbs_model/gibbs_result.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Gibbs Fragmentation Result
==========================

.. automodule:: ugropy.core.frag_classes.gibbs_model.gibbs_result
:members:
:undoc-members:
:show-inheritance:
13 changes: 13 additions & 0 deletions docs/source/core/frag_classes/gibbs_model/init.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Gibbs Fragmentation Model
=========================

.. automodule:: ugropy.core.frag_classes.gibbs_model
:members:
:undoc-members:
:show-inheritance:

.. toctree::
:maxdepth: 1

gibbs_model
gibbs_result
14 changes: 14 additions & 0 deletions docs/source/core/frag_classes/init.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Fragmentation Classes
=====================

.. automodule:: ugropy.core.frag_classes
:members:
:undoc-members:
:show-inheritance:

.. toctree::
:maxdepth: 1

base/init
gibbs_model/init
joback_model/init
14 changes: 14 additions & 0 deletions docs/source/core/frag_classes/joback_model/init.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Joback Model
============

.. automodule:: ugropy.core.frag_classes.joback
:members:
:undoc-members:
:show-inheritance:


.. toctree::
:maxdepth: 1

joback_model
joback_result
7 changes: 7 additions & 0 deletions docs/source/core/frag_classes/joback_model/joback_model.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Joback Fragmentation Model
==========================

.. automodule:: ugropy.core.frag_classes.joback.joback_model
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/core/frag_classes/joback_model/joback_result.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Joback Fragmentation Result
===========================

.. automodule:: ugropy.core.frag_classes.joback.joback_result
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/core/get_rdkit_object.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
get rdkit object
================

.. automodule:: ugropy.core.get_rdkit_object
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/core/ilp_solvers/default_solver.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Default solver
==============

.. automodule:: ugropy.core.ilp_solvers.default_solver
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/core/ilp_solvers/ilp_solver.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ILP solver
==========

.. automodule:: ugropy.core.ilp_solvers.ilp_solver
:members:
:undoc-members:
:show-inheritance:
13 changes: 13 additions & 0 deletions docs/source/core/ilp_solvers/init.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ILP solvers
===========

.. automodule:: ugropy.core.ilp_solvers
:members:
:undoc-members:
:show-inheritance:

.. toctree::
:maxdepth: 1

ilp_solver
default_solver
16 changes: 16 additions & 0 deletions docs/source/core/init.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Core
====

.. automodule:: ugropy.core
:members:
:undoc-members:
:show-inheritance:

.. toctree::
:maxdepth: 1

checks
get_rdkit_object
ilp_solvers/init
frag_classes/init

7 changes: 7 additions & 0 deletions docs/source/groups.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Groups
======

.. automodule:: ugropy.groups
:members:
:undoc-members:
:show-inheritance:
22 changes: 15 additions & 7 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
.. ugropy documentation master file, created by
sphinx-quickstart on Mon Nov 27 19:27:24 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. include:: ../../README.md
:parser: myst_parser.sphinx_

.. toctree::
:maxdepth: 2
:caption: Contents:

tutorial/tutorial
modules

.. toctree::
:maxdepth: 1

tests_book/index

.. toctree::
:maxdepth: 1

references.rst

.. toctree::
:maxdepth: 1
:caption: API documentation

constants
groups
models/init
writers/init
core/init


Indices and tables
==================
Expand Down
Binary file modified docs/source/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/source/models/init.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Models
======

.. automodule:: ugropy.models
:members:
:undoc-members:
:show-inheritance:

.. toctree::
:maxdepth: 1

jobackmod
psrkmod
unifacmod
7 changes: 7 additions & 0 deletions docs/source/models/jobackmod.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Joback
======

.. automodule:: ugropy.models.jobackmod
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/models/psrkmod.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PSRK
====

.. automodule:: ugropy.models.psrkmod
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/models/unifacmod.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
UNIFAC
======

.. automodule:: ugropy.models.unifacmod
:members:
:undoc-members:
:show-inheritance:
7 changes: 0 additions & 7 deletions docs/source/modules.rst

This file was deleted.

Loading

0 comments on commit f93f355

Please sign in to comment.