Fix output info

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-16 20:37:01 -08:00
parent 404d15c6ba
commit 0d01732598

View File

@ -57,9 +57,9 @@ def DBSCAN(points, eps = MAX_DISTANCE, minPts = MIN_PTS, verbose = True):
T = S
for j, Q in enumerate(S): # Process every seed point
if verbose == True:
sub_new_perc = int(100 * (j+1) / total)
sub_new_perc = int(100 * (j+1) / sub_total)
now = time.time()
if sub_new_perc != perc or now - last > 5:
if sub_new_perc != sub_perc or now - last > 5:
sub_perc = sub_new_perc
print(f'... points {sub_perc}% ({j}/{sub_total} processed) complete with {len(clusters)} identities ({now - start}s).')
last = now