molify 0.2.3__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {molify-0.2.3 → molify-0.2.5}/PKG-INFO +1 -1
- {molify-0.2.3 → molify-0.2.5}/src/molify/_version.py +2 -2
- {molify-0.2.3 → molify-0.2.5}/src/molify/compress.py +1 -1
- {molify-0.2.3 → molify-0.2.5}/src/molify/pack.py +3 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_solvate.py +10 -0
- {molify-0.2.3 → molify-0.2.5}/.github/workflows/build-wheels.yaml +0 -0
- {molify-0.2.3 → molify-0.2.5}/.github/workflows/pages.yaml +0 -0
- {molify-0.2.3 → molify-0.2.5}/.github/workflows/pytest.yaml +0 -0
- {molify-0.2.3 → molify-0.2.5}/.gitignore +0 -0
- {molify-0.2.3 → molify-0.2.5}/.pre-commit-config.yaml +0 -0
- {molify-0.2.3 → molify-0.2.5}/.python-version +0 -0
- {molify-0.2.3 → molify-0.2.5}/CITATION.cff +0 -0
- {molify-0.2.3 → molify-0.2.5}/CONTRIBUTING.md +0 -0
- {molify-0.2.3 → molify-0.2.5}/LICENSE +0 -0
- {molify-0.2.3 → molify-0.2.5}/README.md +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/Makefile +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/make.bat +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/source/ase_tools.ipynb +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/source/atom_selection.ipynb +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/source/conf.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/source/index.rst +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/source/modules.rst +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/source/networkx_tools.ipynb +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/source/packmol_tools.ipynb +0 -0
- {molify-0.2.3 → molify-0.2.5}/docs/source/rdkit_tools.ipynb +0 -0
- {molify-0.2.3 → molify-0.2.5}/paper/.gitignore +0 -0
- {molify-0.2.3 → molify-0.2.5}/paper/bibliography.bib +0 -0
- {molify-0.2.3 → molify-0.2.5}/paper/build.sh +0 -0
- {molify-0.2.3 → molify-0.2.5}/paper/paper.md +0 -0
- {molify-0.2.3 → molify-0.2.5}/paper/zndraw_rdkit.svg +0 -0
- {molify-0.2.3 → molify-0.2.5}/pyproject.toml +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/__init__.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/ase2x.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/bond_order.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/com.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/constants.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/networkx2x.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/rdkit2x.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/smiles2x.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/substructure.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/src/molify/utils.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/conftest.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/data/ec_emc.xyz +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/integration/test_ase2x.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/integration/test_networkx2x.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/integration/test_rdkit2x.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_com.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_compress.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_connectivity.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_edgecases.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_examples.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_rdkit2ase.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_smiles2conformers.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_substructure.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/tests/test_utils.py +0 -0
- {molify-0.2.3 → molify-0.2.5}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: molify
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Molecular Structure Interface with RDKit, ASE, Packmol and NetworkX
|
|
5
5
|
Project-URL: Repository, https://github.com/zincware/molify
|
|
6
6
|
Project-URL: Releases, https://github.com/zincware/molify/releases
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.2.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 2,
|
|
21
|
+
__version__ = version = '0.2.5'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 5)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -18,7 +18,7 @@ def compress(
|
|
|
18
18
|
atoms : ase.Atoms
|
|
19
19
|
The Atoms object to compress.
|
|
20
20
|
density : float
|
|
21
|
-
The target density in
|
|
21
|
+
The target density in kg/m^3.
|
|
22
22
|
freeze_molecules : bool
|
|
23
23
|
If True, freeze the internal degrees of freedom of the molecules
|
|
24
24
|
during compression, to prevent bond compression.
|
|
@@ -137,6 +137,9 @@ def _extract_atom_arrays(
|
|
|
137
137
|
charges = np.concatenate([atom.get_initial_charges() for atom in selected_images])
|
|
138
138
|
if any(charge != 0 for charge in charges):
|
|
139
139
|
packed_atoms.set_initial_charges(charges)
|
|
140
|
+
tags = np.concatenate([atom.get_tags() for atom in selected_images])
|
|
141
|
+
if any(tag != 0 for tag in tags):
|
|
142
|
+
packed_atoms.set_tags(tags)
|
|
140
143
|
return packed_atoms
|
|
141
144
|
|
|
142
145
|
|
|
@@ -109,6 +109,16 @@ def test_pack_charges():
|
|
|
109
109
|
assert charges == [0, 0, 0, -1, 0, 1] + [1, 0, 0, -1, 0, 0, 0, 0, 0, 0]
|
|
110
110
|
|
|
111
111
|
|
|
112
|
+
def test_pack_tags():
|
|
113
|
+
water = smiles2conformers("O", 1)
|
|
114
|
+
methane = smiles2conformers("C", 1)
|
|
115
|
+
water[0].set_tags(range(1, 4)) # O, H, H -> 1, 2, 3
|
|
116
|
+
methane[0].set_tags(range(4, 9)) # C, H, H, H, H -> 4, 5, 6, 7, 8
|
|
117
|
+
|
|
118
|
+
atoms = pack([water, methane], [2, 1], density=1000)
|
|
119
|
+
npt.assert_array_equal(atoms.get_tags(), [1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8])
|
|
120
|
+
|
|
121
|
+
|
|
112
122
|
def test_pack_ratio():
|
|
113
123
|
water = smiles2conformers("O", 1)
|
|
114
124
|
# pack a cubic box
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|