Clean comments and logs

This commit is contained in:
Emanuele Bezzi
2021-12-21 11:33:38 -05:00
parent cbf3ba240a
commit eac84c5d74
2 changed files with 1 additions and 44 deletions
+1 -9
View File
@@ -372,7 +372,7 @@ class DataAdaptor(metaclass=ABCMeta):
else:
# scale isotropically
# scale isotropically
try:
min = np.nanmin(embedding, axis=0)
max = np.nanmax(embedding, axis=0)
@@ -388,14 +388,6 @@ class DataAdaptor(metaclass=ABCMeta):
translate = 0.5 - ((max - min) / scale / 2)
normalized_layout = normalized_layout + translate
# print(f"scale {scale}, translate {translate}")
# if True: # if visium
# self.data.uns["spatial"]
# adata.uns["spatial"]['V1_Adult_Mouse_Brain']["scalefactors"]["tissue_hires_scalef"]
return normalized_layout
def layout_to_fbs_matrix(self, fields, spatial = None):