From c9d36c6bf3119862e9fa62734c50fbcc84427679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Fri, 1 Jul 2022 18:51:25 +0200 Subject: [PATCH] feat: print success output --- geoclustering/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/geoclustering/__main__.py b/geoclustering/__main__.py index 57e1980..e9d1fc3 100644 --- a/geoclustering/__main__.py +++ b/geoclustering/__main__.py @@ -54,7 +54,6 @@ def main(distance, size, output, filename, algorithm, open, debug): if debug: click.secho(s, fg="bright_black") - df = io.read_csv_file(filename) print_debug(f"Read {len(df)} valid coordinates from {Path(filename).absolute()}") @@ -63,7 +62,7 @@ def main(distance, size, output, filename, algorithm, open, debug): ) if not bool(clusters): - click.echo("Did not find clusters matching input parameters.") + click.secho("Did not find clusters matching input parameters.", fg="yellow") return print_debug(f"Found {len(clusters)} valid clusters using {algorithm}") @@ -80,6 +79,8 @@ def main(distance, size, output, filename, algorithm, open, debug): print_debug(f"Opening visualization in default browser") webbrowser.open_new_tab("file://" + str(vis.absolute())) + click.secho("Clustering completed.", fg="green") + if __name__ == "__main__": main()