modelcraft 5.0.0__py3-none-any.whl → 5.0.2__py3-none-any.whl

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.
modelcraft/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "5.0.0"
1
+ __version__ = "5.0.2"
2
2
 
3
3
  from .cell import max_distortion as max_cell_distortion
4
4
  from .cell import remove_scale
modelcraft/cell.py CHANGED
@@ -17,8 +17,8 @@ def remove_scale(structure: gemmi.Structure) -> None:
17
17
 
18
18
  def max_distortion(old_cell: gemmi.UnitCell, new_cell: gemmi.UnitCell) -> float:
19
19
  "Return the maximum distortion between two cells as a fraction"
20
- frac1 = old_cell.fractionalization_matrix
21
- orth2 = new_cell.orthogonalization_matrix
20
+ frac1 = old_cell.frac.mat
21
+ orth2 = new_cell.orth.mat
22
22
  identity = gemmi.Mat33()
23
23
  matrix = np.array(identity) - np.array(orth2.multiply(frac1))
24
24
  eigenvalues, _ = scipy.linalg.eig(matrix)
@@ -7,14 +7,14 @@ from . import in_temp_directory
7
7
 
8
8
  @in_temp_directory
9
9
  def test_1ana():
10
- url = "https://ftp-versioned.wwpdb.org/pdb_versioned/data/entries/"
10
+ url = "https://files-versioned.wwpdb.org/pdb_versioned/data/entries/"
11
11
  url += "an/pdb_00001ana/pdb_00001ana_xyz_v1-2.cif.gz"
12
12
  urllib.request.urlretrieve(url, "1ana.cif.gz")
13
13
  structure = read_structure("1ana.cif.gz")
14
14
  assert structure.cell.parameters == (41.1, 41.1, 26.7, 90, 90, 90)
15
- assert structure.cell.fractionalization_matrix.tolist()[0][0] == 0
15
+ assert structure.cell.frac.mat.tolist()[0][0] == 0
16
16
  remove_scale(structure)
17
- assert structure.cell.fractionalization_matrix.tolist()[0][0] != 0
17
+ assert structure.cell.frac.mat.tolist()[0][0] != 0
18
18
  new_parameters = (41, 41, 27, 90, 90, 90)
19
19
  new_cell = gemmi.UnitCell(*new_parameters)
20
20
  assert max_distortion(structure.cell, new_cell) < 0.05
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: modelcraft
3
- Version: 5.0.0
3
+ Version: 5.0.2
4
4
  Summary: Automated model building pipeline for X-ray crystallography
5
5
  Home-page: https://github.com/paulsbond/modelcraft
6
6
  Author: Paul Bond
@@ -16,11 +16,21 @@ Classifier: Programming Language :: Python :: 3.9
16
16
  Requires-Python: ~=3.7
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: gemmi>=0.5.4
19
+ Requires-Dist: gemmi>=0.5.5
20
20
  Requires-Dist: numpy
21
21
  Requires-Dist: pandas
22
22
  Requires-Dist: requests
23
23
  Requires-Dist: scipy
24
+ Dynamic: author
25
+ Dynamic: author-email
26
+ Dynamic: classifier
27
+ Dynamic: description
28
+ Dynamic: description-content-type
29
+ Dynamic: home-page
30
+ Dynamic: license
31
+ Dynamic: requires-dist
32
+ Dynamic: requires-python
33
+ Dynamic: summary
24
34
 
25
35
  # ModelCraft
26
36
 
@@ -1,7 +1,7 @@
1
- modelcraft/__init__.py,sha256=gfYpLpVeYaQdezn2628PhHSn1zD3bQSH1EcotBve5PU,2185
1
+ modelcraft/__init__.py,sha256=I9E4_oyFm-FL-as9fHUdTA1z52cRGeycPNBT6hh2P0M,2185
2
2
  modelcraft/__main__.py,sha256=0D-TbVRrb0ipPCS-NnUvifaG2kAsBn6mXtWLjyExOXM,77
3
3
  modelcraft/arguments.py,sha256=fqsnzJhJKOg7MRgjqb50WFp_lQowG4J9O6ITyqr-q4g,15203
4
- modelcraft/cell.py,sha256=mqoQfODyXd43MhLYnGwXxTag42Fx9l2wMH3s-ouXpr0,2057
4
+ modelcraft/cell.py,sha256=dReWECZKuyZGSfR-MmumoD7qkrBiWM6GlaGpguDgU14,2025
5
5
  modelcraft/combine.py,sha256=ibxg6dhvKBQ2r7AZlGE-ebEpO7dPNDVP5ChYppil9To,5020
6
6
  modelcraft/contents.py,sha256=VEdFt1u6PDMUGjYbHa6eORr-9voi2zfzuc1CV1c5nuI,9860
7
7
  modelcraft/environ.py,sha256=T8oMcx2rqc2FjNy-roKWl4CoVUnNJ1UOCecM0xbPC3E,553
@@ -45,7 +45,7 @@ modelcraft/tests/ccp4/__init__.py,sha256=8Y4OnTJhNgAuhm7XQxZz5DWqguL2lzMPIH8o8ws
45
45
  modelcraft/tests/ccp4/test_acedrg.py,sha256=f4i8DWleieXjpWXiLi9h6mFsX1-lk4mxw4-hYX29LzU,627
46
46
  modelcraft/tests/ccp4/test_arguments.py,sha256=N011s4QYSxj4cMEDXRTlMTXE0JmDieLQaYOBb0DGrdE,1393
47
47
  modelcraft/tests/ccp4/test_buccaneer.py,sha256=cNf40Nf_yzqdaaGN_jVBGQIwDxl2kXgNBvQqcON5soE,2258
48
- modelcraft/tests/ccp4/test_cell.py,sha256=YrEIxzmUDkYsE1lJRAemBiSQtykhI4XDqMwFSCzhqKE,1057
48
+ modelcraft/tests/ccp4/test_cell.py,sha256=DcMTs_LZ-mw_ocUtAubljuJ_tk8Ye7gpxHDa9KVlPY0,1027
49
49
  modelcraft/tests/ccp4/test_comit.py,sha256=77TQK5-cAK_LCPnhj7sbWQbNXLg_YxuBa-soldURYcs,533
50
50
  modelcraft/tests/ccp4/test_contents.py,sha256=da0blxz6SUao2hE5cE1e5aPPHPHkldAxYObujhjTIwQ,6801
51
51
  modelcraft/tests/ccp4/test_coot.py,sha256=59wzv62P2s9oUcmrnhZZmntJrCEwG0kRcrPaanqEkz8,924
@@ -74,9 +74,9 @@ modelcraft/tests/ccpem/test_servalcat.py,sha256=X6d0z5yE-sxNa-6_WySn12QhvbJelYNn
74
74
  modelcraft/tests/unittests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
75
  modelcraft/tests/unittests/test_contents.py,sha256=aAHha4pQYMyKes7OiOZ11_-9z-BVqh4OSmAL8gRUX_Y,3153
76
76
  modelcraft/tests/unittests/test_reflections.py,sha256=xshb_2QcAko2l98-Pd1LuEjMZAVv-O7LkhtzGRnrbM4,3674
77
- modelcraft-5.0.0.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
78
- modelcraft-5.0.0.dist-info/METADATA,sha256=yUpLJkzkoxlWPf-3It_RcaxO4MKtarTQnccCH7LGs60,1892
79
- modelcraft-5.0.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
80
- modelcraft-5.0.0.dist-info/entry_points.txt,sha256=bWef3WSAihTv1fI39wScTAmrKtn5mOYZ3SEeBpM4RrU,172
81
- modelcraft-5.0.0.dist-info/top_level.txt,sha256=My5973x4fvPrlRfQOuuFxqultnVzrg_aamczcSijdlQ,11
82
- modelcraft-5.0.0.dist-info/RECORD,,
77
+ modelcraft-5.0.2.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
78
+ modelcraft-5.0.2.dist-info/METADATA,sha256=7HbPe5_c_-IZi60vrp3P8BQjwtFhsB1IUF6-09rZ49U,2106
79
+ modelcraft-5.0.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
80
+ modelcraft-5.0.2.dist-info/entry_points.txt,sha256=bWef3WSAihTv1fI39wScTAmrKtn5mOYZ3SEeBpM4RrU,172
81
+ modelcraft-5.0.2.dist-info/top_level.txt,sha256=My5973x4fvPrlRfQOuuFxqultnVzrg_aamczcSijdlQ,11
82
+ modelcraft-5.0.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5