Skip to content

Commit

Permalink
Merge branch 'feature_documentation' of https://github.com/AllenCell/…
Browse files Browse the repository at this point in the history
…nuc-morph-analysis into feature_documentation
  • Loading branch information
chantelleleveille committed Dec 9, 2024
2 parents bdbb8bc + 38a6c61 commit e13c133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuc_morph_analysis/lib/preprocessing/add_colony_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def add_colony_metrics(df: pd.DataFrame):


def _add_colony_metrics_one_tp(df_timepoint: pd.DataFrame):
depth_map, neighborhoods, neigh_dists, densities = _calc_colony_metrics(df_timepoint)
depth_map, neighborhoods, neigh_dists = _calc_colony_metrics(df_timepoint)
for _, (lbl, depth) in enumerate(depth_map.items()):
df_timepoint.loc[df_timepoint["label_img"] == lbl, "colony_depth"] = depth

Expand Down Expand Up @@ -84,7 +84,7 @@ def _calc_colony_metrics(df_timepoint):
neighbors = _make_neighbor_map(voronoi, labels)

centroids_by_label = {label: centroids_list[index] for index, label in enumerate(labels)}
neigh_distance, _ = _calculate_distance(labels, neighbors, centroids_by_label)
neigh_distance = _calculate_distance(labels, neighbors, centroids_by_label)

depth1_labels = _get_depth1_labels(labels, centroids_list, voronoi)
depth_map = calculate_depth(neighbors, depth1_labels)
Expand Down

0 comments on commit e13c133

Please sign in to comment.