Skip to content

Commit

Permalink
bara: add warning when overflow happens
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Sep 2, 2024
1 parent f2200e2 commit 2835ade
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions epic_capybara/cli/bara.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,14 @@ def bara(files, match, unmatch, serve):
fig.x_range = Range1d(
*x_bounds,
bounds=x_bounds)
else:
click.secho(f"overflow while calculating x bounds for \"{key}\"", fg="red", err=True)
if np.all(np.isfinite(y_bounds)):
fig.y_range = Range1d(
*y_bounds,
bounds=y_bounds)
else:
click.secho(f"overflow while calculating y bounds for \"{key}\"", fg="red", err=True)

def to_filename(branch_name):
return branch_name.replace("#", "__pound__")
Expand Down

0 comments on commit 2835ade

Please sign in to comment.