Skip to content

Commit 06572c6

Browse files
No more purple
1 parent b74f4fb commit 06572c6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

pymc/sampling/parallel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ def __init__(
493493
DivergenceBarColumn(
494494
table_column=Column("Progress", ratio=2),
495495
diverging_color="tab:red",
496-
diverging_finished_color="tab:purple",
497496
complete_style=Style.parse("rgb(31,119,180)"), # tab:blue
498497
finished_style=Style.parse("rgb(44,160,44)"), # tab:green
499498
),

pymc/util.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -671,15 +671,12 @@ def call_column(column, task):
671671

672672

673673
class DivergenceBarColumn(BarColumn):
674-
def __init__(self, *args, diverging_color="red", diverging_finished_color="purple", **kwargs):
674+
def __init__(self, *args, diverging_color="red", **kwargs):
675675
from matplotlib.colors import to_rgb
676676

677677
self.diverging_color = diverging_color
678678
self.diverging_rgb = [int(x * 255) for x in to_rgb(self.diverging_color)]
679679

680-
self.diverging_finished_color = diverging_finished_color
681-
self.diverging_finished_rgb = [int(x * 255) for x in to_rgb(self.diverging_finished_color)]
682-
683680
super().__init__(*args, **kwargs)
684681

685682
self.non_diverging_style = self.complete_style
@@ -689,7 +686,7 @@ def callbacks(self, task: "Task"):
689686
divergences = task.fields.get("divergences", 0)
690687
if divergences > 0:
691688
self.complete_style = Style.parse("rgb({},{},{})".format(*self.diverging_rgb))
692-
self.finished_style = Style.parse("rgb({},{},{})".format(*self.diverging_finished_rgb))
689+
self.finished_style = Style.parse("rgb({},{},{})".format(*self.diverging_rgb))
693690
else:
694691
self.complete_style = self.non_diverging_style
695692
self.finished_style = self.non_diverging_finished_style

0 commit comments

Comments
 (0)