Skip to content

Commit

Permalink
feat: print success output
Browse files Browse the repository at this point in the history
  • Loading branch information
fspoettel committed Jul 1, 2022
1 parent 62da080 commit c9d36c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geoclustering/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def print_debug(s):
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()}")

Expand All @@ -63,7 +62,7 @@ def print_debug(s):
)

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}")
Expand All @@ -80,6 +79,8 @@ def print_debug(s):
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()

0 comments on commit c9d36c6

Please sign in to comment.