Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tzufgoogle authored Aug 26, 2022
1 parent 1429eb7 commit e72f3da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cabby/model/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ def get_valid_cell_label(dict_lables: Dict[int, Any], cellid: int):

def get_valid_graph_embed(gensim_dict_lables: Any, cellid: str):
while cellid not in gensim_dict_lables.index_to_key:
logging.info(f"!!!!!!!!!!!!!!! cellid:{cellid} type: {type(cellid)}")
cellid = str(util.neighbor_cellid(int(cellid), gensim_dict_lables.index_to_key))

return gensim_dict_lables[cellid]
return gensim_dict_lables[cellid]

0 comments on commit e72f3da

Please sign in to comment.