Skip to content

Commit

Permalink
Merge pull request #170 from martimunicoy/devel
Browse files Browse the repository at this point in the history
peleffy 1.4.2 release
  • Loading branch information
martimunicoy committed Jun 13, 2022
2 parents 8ad949b + 5ee3484 commit 09a1862
Show file tree
Hide file tree
Showing 12 changed files with 619 additions and 34 deletions.
16 changes: 16 additions & 0 deletions docs/releasehistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ Releases follow the ``major.minor.micro`` scheme recommended by `PEP440 <https:/
* ``micro`` increments represent bugfix releases or improvements in documentation


1.4.2 - Compatibility fixes for latest RDKit and Schrodinger versions
---------------------------------------------------------------------

This is a micro release of peleffy that fixes several bugs related with latest versions of RDKit and Schrodinger. Affected modules are rotamer libraries, the runner and parser of the ffld server, and the alchemistry package. It also adds some minor improvements to log handlers.

New features
""""""""""""
- `PR #166 <https://github.com/martimunicoy/peleffy/pull/166>`_: New options for log handlers.

Bugfixes
""""""""
- `PR #167 <https://github.com/martimunicoy/peleffy/pull/167>`_: Bug fixes for rotamer libraries and affected tests
- `PR #168 <https://github.com/martimunicoy/peleffy/pull/168>`_: Compatibility changes for the ffld server shipped with latest Schrodinger version
- `PR #169 <https://github.com/martimunicoy/peleffy/pull/169>`_: Support new RDKit versions.


1.4.1 - Bug fixes for heteromolecules extraction
---------------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions examples/alchemistry/ethylene_to_chlorofom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -481,9 +481,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
"version": "3.8.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
}
4 changes: 2 additions & 2 deletions peleffy/data/tests/alchemical_0.rot.assign
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rot assign res HYB &
sidelib FREE30 _N1_ _C4_ &
sidelib FREE30 _C4_ _N1_ &
newgrp &
sidelib FREE30 _C5_ _C4_ &
sidelib FREE30 _C4_ _C5_ &
4 changes: 2 additions & 2 deletions peleffy/data/tests/alchemical_1.rot.assign
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rot assign res HYB &
sidelib FREE30 _C4_ _N1_ &
sidelib FREE30 _N1_ _C4_ &
sidelib FREE30 _C4_ _C5_ &
newgrp &
sidelib FREE30 _C6_ _N1_ &
sidelib FREE30 _N1_ _C6_ &
2 changes: 1 addition & 1 deletion peleffy/data/tests/alchemical_2.rot.assign
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rot assign res HYB &
sidelib FREE30 _N1_ _C6_ &
sidelib FREE30 _C6_ _N1_ &
6 changes: 3 additions & 3 deletions peleffy/data/tests/alchemical_structure.pdb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ CONECT 3 12 13 14
CONECT 4 15 16 17
CONECT 5 6 18 19
CONECT 6 7 7 8
CONECT 20 21 25
CONECT 20 21 21 25
CONECT 21 22 26
CONECT 22 23 27
CONECT 22 23 23 27
CONECT 23 24 28
CONECT 24 25 29
CONECT 24 25 25 29
CONECT 25 30
END
6 changes: 6 additions & 0 deletions peleffy/forcefield/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,12 @@ def from_ffld_output(molecule, ffld_output):

params['charges'] = unit.Quantity(charges, unit.elementary_charge)

# Check params is not empty (it would mean that ffld_server failed)
if len(params['atom_types']) == 0:
raise ValueError(f"ffld server did not produce a valid output. " +
f"Instead, the following output was obtained: " +
f"{ffld_output}")

opls_parameters_wrapper = OPLS2005ParameterWrapper(params)
OPLS2005ParameterWrapper._add_SGBNP_solvent_parameters(
opls_parameters_wrapper)
Expand Down
Loading

0 comments on commit 09a1862

Please sign in to comment.