Skip to content

Commit 7a5657f

Browse files
authored
Fix/sphinx (#512)
* fix for #459; version bump * Fix/ci (#507) (#508) * testing ci build * upgrade to artifact@v4 gha functions * polishing gha wf * upgrading tests for py3.10 * str 3.10 version * pre-commit with py310 * fixed type on _minimise_molecule
1 parent 2d2b240 commit 7a5657f

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ rst-directives = deprecated
1010
exclude =
1111
.nox
1212
.venv
13+
.mypy_cache

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "jazzy"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "Jazzy allows calculating a set of atomic/molecular descriptors including the Gibbs free energy of hydration (kJ/mol), its polar/apolar components, and the hydrogen-bond strength of donor and acceptor atoms."
55
authors = ["Gian Marco Ghiandoni <[email protected]>", "Eike Caldeweyher <[email protected]>"]
66
license = "Apache-2.0"

src/jazzy/api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def molecular_vector_from_smiles(
6464
embedding_seed: Integer seed for the embedding process (default 11)
6565
embedding_max_iterations: Maximum number of iterations for the embedding
6666
67-
6867
Returns:
6968
Molecular strength vector with or without free energy contributions
7069
@@ -177,7 +176,6 @@ def atomic_tuples_from_smiles(
177176
embedding_seed: Integer seed for the embedding process (default 11)
178177
embedding_max_iterations: Maximum number of iterations for the embedding
179178
180-
181179
Returns:
182180
Tuple representation of the atomic map.
183181
@@ -215,7 +213,6 @@ def atomic_map_from_smiles(
215213
embedding_seed: Integer seed for the embedding process (default 11)
216214
embedding_max_iterations: Maximum number of iterations for the embedding
217215
218-
219216
Returns:
220217
Condensed representation of the atomic map.
221218
@@ -278,7 +275,6 @@ def atomic_strength_vis_from_smiles(
278275
embedding_max_iterations: Maximum number of iterations
279276
for the embedding
280277
281-
282278
Returns:
283279
SVG image either 2D or 3D.
284280

src/jazzy/exception.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Anything about exceptions and their handling."""
22
# src/jazzy/exception.py
3+
from functools import wraps
34

45

56
class JazzyError(Exception):
@@ -29,6 +30,7 @@ class EmbeddingError(Exception):
2930
def exception_handling(func):
3031
"""Catches core exceptions and raises a JazzyError."""
3132

33+
@wraps(func)
3234
def wrapper(*args, **kwargs):
3335
try:
3436
return func(*args, **kwargs)

0 commit comments

Comments
 (0)