Skip to content

Commit

Permalink
Merge pull request #107 from winds-mobi/bugfix/min-cluster
Browse files Browse the repository at this point in the history
Saving the wrong min value of the range
  • Loading branch information
ysavary authored Jul 16, 2024
2 parents ae4f165 + 95acaae commit ba249be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_jobs/save_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def save_clusters(min_cluster, nb_clusters):
)
range_clusters = np.geomspace(min_cluster, len(all_stations), num=nb_clusters, dtype=int)
mongo_db.stations_clusters.find_one_and_update(
{"_id": "save_clusters"}, {"$set": {"min": 20, "max": len(all_stations)}}, upsert=True
{"_id": "save_clusters"}, {"$set": {"min": min_cluster, "max": len(all_stations)}}, upsert=True
)

ids = np.array([station["_id"] for station in all_stations])
Expand Down

0 comments on commit ba249be

Please sign in to comment.