Skip to content
Snippets Groups Projects
Commit 31cf8d6f authored by Julia Signell's avatar Julia Signell
Browse files

Fix initial clustering for less than 3 points

parent 4531ae93
No related branches found
No related tags found
4 merge requests!72[DRAFT] All the changes,!70Make it easier to use filepaths as inputs to pipelines,!67Back all `AllFires` and `Fire` objects with 2 dataframes,!61Additions: primary keys, speed ups (preprocessing and postprocessing), tests, scalene, reorg entire fireatlas
......@@ -90,8 +90,8 @@ def do_clustering(data, max_thresh_km):
# if number of points is 1 or 2, each point is one cluster
num_points = len(data)
if num_points < 3:
cluster_id = list(range(num_points))
return cluster_id
data["initial_cid"] = list(range(num_points))
return data
# initialization
cluster_id_counter = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment