Skip to content

Commit

Permalink
. (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou authored Dec 14, 2020
1 parent ff48607 commit a71a268
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cimetrics/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ def github_token(self) -> str:
def pr_user(self) -> str:
return self.cfg.get("pr_user", "cimetrics")

@property
def monitoring_columns(self) -> int:
return self.cfg.get("monitoring_columns", 2)


class GitEnv(Env):
_target_branch = None
Expand Down
2 changes: 1 addition & 1 deletion cimetrics/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def trend_view(env, tgt_only=False):

if tgt_only:
columns = sorted(tgt_raw.columns)
ncol = 1
ncol = env.monitoring_columns
fsize = matplotlib.figure.figaspect(env.columns * 1.2)
dpi_adjust = fsize[1] / matplotlib.rcParams["figure.figsize"][1]
fig = plt.figure(figsize=fsize)
Expand Down
1 change: 1 addition & 0 deletions metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ span: 50
ewma_span: 5
monitoring_span: 150
pr_user: cimetrics
monitoring_columns: 2

0 comments on commit a71a268

Please sign in to comment.