From c4542cf8580b60ca5cd6bdea99a5c334f61218ed Mon Sep 17 00:00:00 2001 From: Kamil Monicz Date: Tue, 20 Feb 2024 08:08:12 +0100 Subject: [PATCH] Remove redundant labels compute --- config.py | 2 +- states/aed_state.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 28af605..7d2e7dd 100644 --- a/config.py +++ b/config.py @@ -12,7 +12,7 @@ from sentry_sdk.integrations.pymongo import PyMongoIntegration NAME = 'openaedmap-backend' -VERSION = '2.7.3' +VERSION = '2.7.4' CREATED_BY = f'{NAME} {VERSION}' WEBSITE = 'https://openaedmap.org' diff --git a/states/aed_state.py b/states/aed_state.py index ba5788a..8879b6a 100644 --- a/states/aed_state.py +++ b/states/aed_state.py @@ -269,7 +269,7 @@ async def get_aeds_within_geom(cls, geometry: BaseGeometry, group_eps: float | N fit_positions = positions with start_span(description=f'Fitting model with {len(fit_positions)} samples'): - model = Birch(threshold=group_eps, n_clusters=None, copy=False) + model = Birch(threshold=group_eps, n_clusters=None, compute_labels=False, copy=False) model.fit(fit_positions) with start_span(description=f'Processing {len(aeds)} samples'):