Skip to content

Commit

Permalink
map debug
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefMetwally committed Feb 10, 2025
1 parent 5622bb1 commit f7b008b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tomotwin/map_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def run(conf: MapConfiguration) -> None:
columns=["index", "filepath", "X", "Y", "Z"], errors="ignore"
).to_numpy()

print ('volume_embeddings_np', volume_embeddings_np.shape)
print ('reference_embeddings_np', reference_embeddings_np.shape)

dm = DistanceManager()
distance = dm.get_distance(volume_embeddings.attrs["tomotwin_config"]["distance"])
Expand All @@ -125,6 +127,7 @@ def run(conf: MapConfiguration) -> None:
reference=reference_embeddings_np,
volumes=volume_embeddings_np,
)
print('distances', distances.shape)
print("Prepare output...")
del volume_embeddings_np
del reference_embeddings_np
Expand Down Expand Up @@ -159,6 +162,7 @@ def run(conf: MapConfiguration) -> None:
classes_df.attrs["references"] = ref_names
classes_df.attrs["skip_refinement"] = conf.skip_refinement
pth = os.path.join(output_path, "map.tmap")
print('classes_df ',classes_df.shape)
classes_df.to_pickle(pth)
print(f"Wrote output to {pth}")

Expand Down

0 comments on commit f7b008b

Please sign in to comment.