Skip to content

Commit

Permalink
Version 3.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsbond committed Jan 18, 2024
1 parent 706bc31 commit 6713199
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org).

## [3.5.1] - 2024-01-18

### Changed

- Water chain naming to try to be compatible with PDB format

## [3.5.0] - 2024-01-09

### Added
Expand Down
2 changes: 1 addition & 1 deletion modelcraft/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.5.0"
__version__ = "3.5.1"

from .cell import max_distortion as max_cell_distortion
from .cell import remove_scale
Expand Down
8 changes: 3 additions & 5 deletions modelcraft/jobs/findwaters.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ def _result(self) -> FindWatersResult:
water_residues.append(water_residue)
structure = self.structure.clone()
if len(water_residues) > 0:
model = structure[0]
chain = "DUM" if self.dummy else "WAT"
if not model.find_chain(chain):
model.add_chain(chain)
chain = gemmi.Chain("A")
for residue in water_residues:
model[chain].add_residue(residue)
chain.add_residue(residue)
structure[0].add_chain(chain, unique_name=True)
return FindWatersResult(
structure=structure,
seconds=self._seconds,
Expand Down
3 changes: 0 additions & 3 deletions modelcraft/tests/ccp4/test_findwaters.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ def test_existing_water_chain():
structure=findwaters1.structure,
fphi=refmac.fphi_best,
).run()
chains1 = len(findwaters1.structure[0])
chains2 = len(findwaters2.structure[0])
assert chains1 == chains2
waters1 = ModelStats(findwaters1.structure).waters
waters2 = ModelStats(findwaters2.structure).waters
assert waters2 > waters1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="modelcraft",
version="3.5.0",
version="3.5.1",
author="Paul Bond",
author_email="[email protected]",
description="Automated model building pipeline for X-ray crystallography",
Expand Down

0 comments on commit 6713199

Please sign in to comment.