molify 0.2.3__tar.gz → 0.2.4__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.
Files changed (56) hide show
  1. {molify-0.2.3 → molify-0.2.4}/PKG-INFO +1 -1
  2. {molify-0.2.3 → molify-0.2.4}/src/molify/_version.py +2 -2
  3. {molify-0.2.3 → molify-0.2.4}/src/molify/pack.py +3 -0
  4. {molify-0.2.3 → molify-0.2.4}/tests/test_solvate.py +10 -0
  5. {molify-0.2.3 → molify-0.2.4}/.github/workflows/build-wheels.yaml +0 -0
  6. {molify-0.2.3 → molify-0.2.4}/.github/workflows/pages.yaml +0 -0
  7. {molify-0.2.3 → molify-0.2.4}/.github/workflows/pytest.yaml +0 -0
  8. {molify-0.2.3 → molify-0.2.4}/.gitignore +0 -0
  9. {molify-0.2.3 → molify-0.2.4}/.pre-commit-config.yaml +0 -0
  10. {molify-0.2.3 → molify-0.2.4}/.python-version +0 -0
  11. {molify-0.2.3 → molify-0.2.4}/CITATION.cff +0 -0
  12. {molify-0.2.3 → molify-0.2.4}/CONTRIBUTING.md +0 -0
  13. {molify-0.2.3 → molify-0.2.4}/LICENSE +0 -0
  14. {molify-0.2.3 → molify-0.2.4}/README.md +0 -0
  15. {molify-0.2.3 → molify-0.2.4}/docs/Makefile +0 -0
  16. {molify-0.2.3 → molify-0.2.4}/docs/make.bat +0 -0
  17. {molify-0.2.3 → molify-0.2.4}/docs/source/ase_tools.ipynb +0 -0
  18. {molify-0.2.3 → molify-0.2.4}/docs/source/atom_selection.ipynb +0 -0
  19. {molify-0.2.3 → molify-0.2.4}/docs/source/conf.py +0 -0
  20. {molify-0.2.3 → molify-0.2.4}/docs/source/index.rst +0 -0
  21. {molify-0.2.3 → molify-0.2.4}/docs/source/modules.rst +0 -0
  22. {molify-0.2.3 → molify-0.2.4}/docs/source/networkx_tools.ipynb +0 -0
  23. {molify-0.2.3 → molify-0.2.4}/docs/source/packmol_tools.ipynb +0 -0
  24. {molify-0.2.3 → molify-0.2.4}/docs/source/rdkit_tools.ipynb +0 -0
  25. {molify-0.2.3 → molify-0.2.4}/paper/.gitignore +0 -0
  26. {molify-0.2.3 → molify-0.2.4}/paper/bibliography.bib +0 -0
  27. {molify-0.2.3 → molify-0.2.4}/paper/build.sh +0 -0
  28. {molify-0.2.3 → molify-0.2.4}/paper/paper.md +0 -0
  29. {molify-0.2.3 → molify-0.2.4}/paper/zndraw_rdkit.svg +0 -0
  30. {molify-0.2.3 → molify-0.2.4}/pyproject.toml +0 -0
  31. {molify-0.2.3 → molify-0.2.4}/src/molify/__init__.py +0 -0
  32. {molify-0.2.3 → molify-0.2.4}/src/molify/ase2x.py +0 -0
  33. {molify-0.2.3 → molify-0.2.4}/src/molify/bond_order.py +0 -0
  34. {molify-0.2.3 → molify-0.2.4}/src/molify/com.py +0 -0
  35. {molify-0.2.3 → molify-0.2.4}/src/molify/compress.py +0 -0
  36. {molify-0.2.3 → molify-0.2.4}/src/molify/constants.py +0 -0
  37. {molify-0.2.3 → molify-0.2.4}/src/molify/networkx2x.py +0 -0
  38. {molify-0.2.3 → molify-0.2.4}/src/molify/rdkit2x.py +0 -0
  39. {molify-0.2.3 → molify-0.2.4}/src/molify/smiles2x.py +0 -0
  40. {molify-0.2.3 → molify-0.2.4}/src/molify/substructure.py +0 -0
  41. {molify-0.2.3 → molify-0.2.4}/src/molify/utils.py +0 -0
  42. {molify-0.2.3 → molify-0.2.4}/tests/conftest.py +0 -0
  43. {molify-0.2.3 → molify-0.2.4}/tests/data/ec_emc.xyz +0 -0
  44. {molify-0.2.3 → molify-0.2.4}/tests/integration/test_ase2x.py +0 -0
  45. {molify-0.2.3 → molify-0.2.4}/tests/integration/test_networkx2x.py +0 -0
  46. {molify-0.2.3 → molify-0.2.4}/tests/integration/test_rdkit2x.py +0 -0
  47. {molify-0.2.3 → molify-0.2.4}/tests/test_com.py +0 -0
  48. {molify-0.2.3 → molify-0.2.4}/tests/test_compress.py +0 -0
  49. {molify-0.2.3 → molify-0.2.4}/tests/test_connectivity.py +0 -0
  50. {molify-0.2.3 → molify-0.2.4}/tests/test_edgecases.py +0 -0
  51. {molify-0.2.3 → molify-0.2.4}/tests/test_examples.py +0 -0
  52. {molify-0.2.3 → molify-0.2.4}/tests/test_rdkit2ase.py +0 -0
  53. {molify-0.2.3 → molify-0.2.4}/tests/test_smiles2conformers.py +0 -0
  54. {molify-0.2.3 → molify-0.2.4}/tests/test_substructure.py +0 -0
  55. {molify-0.2.3 → molify-0.2.4}/tests/test_utils.py +0 -0
  56. {molify-0.2.3 → molify-0.2.4}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: molify
3
- Version: 0.2.3
3
+ Version: 0.2.4
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.3'
22
- __version_tuple__ = version_tuple = (0, 2, 3)
21
+ __version__ = version = '0.2.4'
22
+ __version_tuple__ = version_tuple = (0, 2, 4)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -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