pytme 0.1.2__cp311-cp311-macosx_13_0_arm64.whl → 0.1.3__cp311-cp311-macosx_13_0_arm64.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.
- {pytme-0.1.2.dist-info → pytme-0.1.3.dist-info}/METADATA +1 -1
- {pytme-0.1.2.dist-info → pytme-0.1.3.dist-info}/RECORD +13 -13
- tme/__version__.py +1 -1
- tme/structure.py +7 -10
- {pytme-0.1.2.data → pytme-0.1.3.data}/scripts/estimate_ram_usage.py +0 -0
- {pytme-0.1.2.data → pytme-0.1.3.data}/scripts/match_template.py +0 -0
- {pytme-0.1.2.data → pytme-0.1.3.data}/scripts/postprocess.py +0 -0
- {pytme-0.1.2.data → pytme-0.1.3.data}/scripts/preprocess.py +0 -0
- {pytme-0.1.2.data → pytme-0.1.3.data}/scripts/preprocessor_gui.py +0 -0
- {pytme-0.1.2.dist-info → pytme-0.1.3.dist-info}/LICENSE +0 -0
- {pytme-0.1.2.dist-info → pytme-0.1.3.dist-info}/WHEEL +0 -0
- {pytme-0.1.2.dist-info → pytme-0.1.3.dist-info}/entry_points.txt +0 -0
- {pytme-0.1.2.dist-info → pytme-0.1.3.dist-info}/top_level.txt +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
pytme-0.1.
|
2
|
-
pytme-0.1.
|
3
|
-
pytme-0.1.
|
4
|
-
pytme-0.1.
|
5
|
-
pytme-0.1.
|
1
|
+
pytme-0.1.3.data/scripts/estimate_ram_usage.py,sha256=68P3cqtY74XmxUgp5MNks-13NEFAXbt3HWedQipNlQM,2095
|
2
|
+
pytme-0.1.3.data/scripts/match_template.py,sha256=Yy4K6CewYfSHlPAt3yBsl8HqCCl-hUsAsGNiF1ixn6I,23491
|
3
|
+
pytme-0.1.3.data/scripts/postprocess.py,sha256=3bWmXeyjx-nv5DfUC93WksRPvngKCNSexflm88c7jP4,9796
|
4
|
+
pytme-0.1.3.data/scripts/preprocess.py,sha256=zog-l2Je-GeouJ6SnamOMuHgTn7fFPiGnO5X03y5qSY,2527
|
5
|
+
pytme-0.1.3.data/scripts/preprocessor_gui.py,sha256=u1bRd40hLj-FbLe6FU7C8THW7fT0hl1MtHY7Va0nEIQ,23784
|
6
6
|
tme/__init__.py,sha256=NiPnYfrwb8e04ETubqwd3yzCGBliLBXRvCylD-T59jY,212
|
7
|
-
tme/__version__.py,sha256=
|
7
|
+
tme/__version__.py,sha256=XEqb2aiIn8fzGE68Mph4ck1FtQqsR_am0wRWvrYPffQ,22
|
8
8
|
tme/analyzer.py,sha256=_nWPqaTCvqa5fEk2VvEDFOHohSN5Vh03ilftWpSAL9g,38509
|
9
9
|
tme/density.py,sha256=eAtUEykiWYAc5V_QVnJs0mwlsP_u_ObwZPem9h79BSM,67861
|
10
10
|
tme/extensions.cpython-311-darwin.so,sha256=LGSXcU6cVE0zcIzoakOZ9E-VaHmUWHCOjl6c6IV0gXQ,395613
|
@@ -17,7 +17,7 @@ tme/matching_utils.py,sha256=xtNdn_kuYIAVxS5kkve47TDnGTZ-qYzy3QYEK_2dZUk,35708
|
|
17
17
|
tme/parser.py,sha256=Tc7sLT5NsD4UqJearUqETStSWI-tNui1l9KG9CPaD2g,13847
|
18
18
|
tme/preprocessor.py,sha256=5BT4JI3JgX57vIR11YY7Bb5_DZ1_W3f8Kf44inlpbPo,43198
|
19
19
|
tme/scoring.py,sha256=xBDn3LdMyfNuwoug3X7L0lReTGrHmKntBinjFYA6iGo,23909
|
20
|
-
tme/structure.py,sha256=
|
20
|
+
tme/structure.py,sha256=fU_dMioPA0OSX6Pzsr01YJR4xV37MJPA5uIMirjwPts,54049
|
21
21
|
tme/types.py,sha256=zEXAvmPegwFc5AAxoYmAZ6ZmSKk0ST6U3jVvPrQijac,258
|
22
22
|
tme/backends/__init__.py,sha256=_5bg5jutlfejVdoDjReaYGviaCCtNPtvv0q0EuZICec,4330
|
23
23
|
tme/backends/cupy_backend.py,sha256=eRReSzpbU1LDsEkQqRTroaHpVVoKznzvRlitzqFlx4M,10503
|
@@ -48,9 +48,9 @@ tme/data/c600vc.npy,sha256=Yht-GFXDSjjGvsjFBvyxxEZAI-ODADPd5gEgFNZQVTA,14528
|
|
48
48
|
tme/data/metadata.yaml,sha256=fAgX-mEzB0QMHTEtYDG4cSMbJhYxBbDJH3sdvJvL7a8,750
|
49
49
|
tme/data/quat_to_numpy.py,sha256=-gkDZb10fKBxwfYrSLCUWvMB76TzZWELCeKsYProwws,1333
|
50
50
|
tme/data/scattering_factors.pickle,sha256=ZHktBc_AlS4H6uoER8AMmn5zOgjBwzgC92hUyww3Nik,38669
|
51
|
-
pytme-0.1.
|
52
|
-
pytme-0.1.
|
53
|
-
pytme-0.1.
|
54
|
-
pytme-0.1.
|
55
|
-
pytme-0.1.
|
56
|
-
pytme-0.1.
|
51
|
+
pytme-0.1.3.dist-info/LICENSE,sha256=K1IUNSVAz8BXbpH5EA8y5FpaHdvFXnAF2zeK95Lr2bY,18467
|
52
|
+
pytme-0.1.3.dist-info/METADATA,sha256=ZffsUYpOjjn6IPmo8P_CYc0gB6GKxYatnClkddPmGvM,1653
|
53
|
+
pytme-0.1.3.dist-info/WHEEL,sha256=I1hzfmF9bq6C1aO8MEzHd8iVHVAGAss0vqh7hMHqG50,110
|
54
|
+
pytme-0.1.3.dist-info/entry_points.txt,sha256=lRC1XboB0_8nS3hzDyyhWkw32JDKZ0sAy8B_UsmHql0,236
|
55
|
+
pytme-0.1.3.dist-info/top_level.txt,sha256=j63Mo93v1HYe3jaBesLoBssArSKOMkpf_aDObPfOkWo,4
|
56
|
+
pytme-0.1.3.dist-info/RECORD,,
|
tme/__version__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.1.
|
1
|
+
__version__ = "0.1.3"
|
tme/structure.py
CHANGED
@@ -793,7 +793,6 @@ class Structure:
|
|
793
793
|
shape: Tuple[int],
|
794
794
|
sampling_rate: Tuple[float],
|
795
795
|
origin: Tuple[float],
|
796
|
-
chain: str,
|
797
796
|
) -> (NDArray, Tuple[str], Tuple[int], float, Tuple[float]):
|
798
797
|
"""
|
799
798
|
Converts coordinates to positions.
|
@@ -808,16 +807,11 @@ class Structure:
|
|
808
807
|
|
809
808
|
origin : Tuple[float,]
|
810
809
|
The origin of the coordinate system.
|
811
|
-
|
812
|
-
chain : str
|
813
|
-
The chain identifier. If multiple chains should be selected they need
|
814
|
-
to be a comma separated string, e.g. 'A,B,CE'.
|
815
810
|
Returns
|
816
811
|
-------
|
817
812
|
Tuple[NDArray, List[str], Tuple[int, ], float, Tuple[float,]]
|
818
813
|
Returns positions, atom_types, shape, sampling_rate, and origin.
|
819
814
|
"""
|
820
|
-
temp = self.subset_by_chain(chain)
|
821
815
|
coordinates = self.atom_coordinate.copy()
|
822
816
|
atom_types = self.element_symbol.copy()
|
823
817
|
|
@@ -888,7 +882,6 @@ class Structure:
|
|
888
882
|
).astype(int)
|
889
883
|
|
890
884
|
vdw_rad[atom_type] = atom_vdwr
|
891
|
-
print(atom_vdwr)
|
892
885
|
atom_slice = tuple(slice(-k, k + 1) for k in atom_vdwr)
|
893
886
|
distances = np.linalg.norm(
|
894
887
|
np.divide(
|
@@ -1076,8 +1069,11 @@ class Structure:
|
|
1076
1069
|
if "source" not in scattering_args:
|
1077
1070
|
scattering_args["source"] = "peng1995"
|
1078
1071
|
|
1072
|
+
temp = self.copy()
|
1073
|
+
self = self.subset_by_chain(chain = chain)
|
1074
|
+
|
1079
1075
|
positions, atoms, shape, sampling_rate, origin = self._coordinate_to_position(
|
1080
|
-
shape=shape, sampling_rate=sampling_rate, origin=origin
|
1076
|
+
shape=shape, sampling_rate=sampling_rate, origin=origin
|
1081
1077
|
)
|
1082
1078
|
volume = np.zeros(shape, dtype=np.float32)
|
1083
1079
|
if weight_type in ("atomic_weight", "atomic_number"):
|
@@ -1104,6 +1100,7 @@ class Structure:
|
|
1104
1100
|
**scattering_args,
|
1105
1101
|
)
|
1106
1102
|
|
1103
|
+
self = temp
|
1107
1104
|
return volume, origin, sampling_rate
|
1108
1105
|
|
1109
1106
|
@classmethod
|
@@ -1231,10 +1228,10 @@ class Structure:
|
|
1231
1228
|
query = structure2.atom_coordinate.copy()
|
1232
1229
|
if sampling_rate is not None:
|
1233
1230
|
reference, atoms1, shape, _, _ = structure1._coordinate_to_position(
|
1234
|
-
shape=None, sampling_rate=sampling_rate, origin=origin
|
1231
|
+
shape=None, sampling_rate=sampling_rate, origin=origin
|
1235
1232
|
)
|
1236
1233
|
query, atoms2, shape, _, _ = structure2._coordinate_to_position(
|
1237
|
-
shape=None, sampling_rate=sampling_rate, origin=origin
|
1234
|
+
shape=None, sampling_rate=sampling_rate, origin=origin
|
1238
1235
|
)
|
1239
1236
|
|
1240
1237
|
reference_mean = reference.mean(axis=0)
|
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
|