SURE-tools 2.0.7__py3-none-any.whl → 2.0.9__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.
Potentially problematic release.
This version of SURE-tools might be problematic. Click here for more details.
- SURE/SURE.py +2 -4
- {sure_tools-2.0.7.dist-info → sure_tools-2.0.9.dist-info}/METADATA +1 -1
- {sure_tools-2.0.7.dist-info → sure_tools-2.0.9.dist-info}/RECORD +7 -7
- {sure_tools-2.0.7.dist-info → sure_tools-2.0.9.dist-info}/WHEEL +0 -0
- {sure_tools-2.0.7.dist-info → sure_tools-2.0.9.dist-info}/entry_points.txt +0 -0
- {sure_tools-2.0.7.dist-info → sure_tools-2.0.9.dist-info}/licenses/LICENSE +0 -0
- {sure_tools-2.0.7.dist-info → sure_tools-2.0.9.dist-info}/top_level.txt +0 -0
SURE/SURE.py
CHANGED
|
@@ -816,11 +816,9 @@ class SURE(nn.Module):
|
|
|
816
816
|
def _cell_move(self, xs, factor_idx, perturb):
|
|
817
817
|
zns,_ = self.encoder_zn(xs)
|
|
818
818
|
if type(factor_idx) == str:
|
|
819
|
-
factor_idx = np.where(self.cell_factor_names==factor_idx)
|
|
819
|
+
factor_idx = int(np.where(self.cell_factor_names==factor_idx)[0])
|
|
820
820
|
|
|
821
821
|
if perturb.ndim==2:
|
|
822
|
-
print(factor_idx)
|
|
823
|
-
print(type(perturb))
|
|
824
822
|
ms = self.cell_factor_effect[factor_idx]([zns, perturb])
|
|
825
823
|
else:
|
|
826
824
|
ms = self.cell_factor_effect[factor_idx]([zns, perturb.reshape(-1,1)])
|
|
@@ -857,7 +855,7 @@ class SURE(nn.Module):
|
|
|
857
855
|
ps = convert_to_tensor(perturb, device=self.get_device())
|
|
858
856
|
|
|
859
857
|
if type(factor_idx) == str:
|
|
860
|
-
factor_idx = np.where(self.cell_factor_names==factor_idx)
|
|
858
|
+
factor_idx = int(np.where(self.cell_factor_names==factor_idx)[0])
|
|
861
859
|
|
|
862
860
|
ms = self.cell_factor_effect[factor_idx]([zs,ps])
|
|
863
861
|
return tensor_to_numpy(ms)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
SURE/SURE.py,sha256=
|
|
1
|
+
SURE/SURE.py,sha256=WSRDPU-iICy0nyBF2aGGcQiJDzdlbLjsRvVBaTXRb7k,51004
|
|
2
2
|
SURE/SURE2.py,sha256=8wlnMwb1xuf9QUksNkWdWx5ZWq-xIy9NLx8RdUnE82o,48501
|
|
3
3
|
SURE/__init__.py,sha256=mxdLoWa2fPEM4-WkJetMfcecpzqJ8YsM4lOoKHSLTrU,207
|
|
4
4
|
SURE/assembly/__init__.py,sha256=jxZLURXKPzXe21LhrZ09LgZr33iqdjlQy4oSEj5gR2Q,172
|
|
@@ -15,9 +15,9 @@ SURE/utils/__init__.py,sha256=Htqv4KqVKcRiaaTBsR-6yZ4LSlbhbzutjNKXGD9-uds,660
|
|
|
15
15
|
SURE/utils/custom_mlp.py,sha256=07TYX1HgxfEjb_3i5MpiZfNhOhx3dKntuwGkrpteWiM,7036
|
|
16
16
|
SURE/utils/queue.py,sha256=E_5PA5EWcBoGAZj8BkKQnkCK0p4C-4-xcTPqdIXaPXU,1892
|
|
17
17
|
SURE/utils/utils.py,sha256=IUHjDDtYaAYllCWsZyIzqQwaLul6fJRvHRH4vIYcR-c,8462
|
|
18
|
-
sure_tools-2.0.
|
|
19
|
-
sure_tools-2.0.
|
|
20
|
-
sure_tools-2.0.
|
|
21
|
-
sure_tools-2.0.
|
|
22
|
-
sure_tools-2.0.
|
|
23
|
-
sure_tools-2.0.
|
|
18
|
+
sure_tools-2.0.9.dist-info/licenses/LICENSE,sha256=TFHKwmrAViXQbSX5W-NDItkWFjm45HWOeUniDrqmnu0,1065
|
|
19
|
+
sure_tools-2.0.9.dist-info/METADATA,sha256=5sRH5YJRo1b-gUxMOIIFrbcLuRmGIwV8fPqwT8emFUs,2650
|
|
20
|
+
sure_tools-2.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
21
|
+
sure_tools-2.0.9.dist-info/entry_points.txt,sha256=u12payZYgCBy5FCwRHP6AlSQhKCiWSEDwj68r1DVdn8,40
|
|
22
|
+
sure_tools-2.0.9.dist-info/top_level.txt,sha256=BtFTebdiJeqra4r6mm-uEtwVRFLZ_IjYsQ7OnalrOvY,5
|
|
23
|
+
sure_tools-2.0.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|