Commit d09432f7 authored by katharina.loeffler's avatar katharina.loeffler
Browse files

fix assertion - n seeds

parent ded9636f
...@@ -24,7 +24,7 @@ def compute_split(merged_object_ind, object_centers, plot=False): ...@@ -24,7 +24,7 @@ def compute_split(merged_object_ind, object_centers, plot=False):
Returns: array of seed points Returns: array of seed points
""" """
assert len(object_centers) < len(merged_object_ind[0]) assert len(object_centers) <= len(merged_object_ind[0])
seed_points = calc_seed_points(merged_object_ind, len(object_centers), plot) seed_points = calc_seed_points(merged_object_ind, len(object_centers), plot)
matching = find_best_matches(list(zip(*seed_points)), object_centers) matching = find_best_matches(list(zip(*seed_points)), object_centers)
object_indices, point_indices = list(zip(*matching)) object_indices, point_indices = list(zip(*matching))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment