diff --git a/tupak/core/result.py b/tupak/core/result.py index b18e8de218c8cce444d8aed687b6f64bba8b9e72..c2493c5978e0d6dcfc2d8bba749caf5f2057eecf 100644 --- a/tupak/core/result.py +++ b/tupak/core/result.py @@ -408,7 +408,10 @@ class Result(dict): typeB = type(B) if typeA == typeB: if typeA in [str, float, int, dict, list]: - return A == B + try: + return A == B + except ValueError: + return False elif typeA in [np.ndarray]: return np.all(A == B) return False @@ -461,6 +464,8 @@ def plot_multiple(results, filename=None, labels=None, colours=None, c = colours[i] else: c = 'C{}'.format(i) + hist_kwargs = kwargs.get('hist_kwargs', dict()) + hist_kwargs['color'] = c fig = result.plot_corner(fig=fig, save=False, color=c, **kwargs) default_filename += '_{}'.format(result.label) lines.append(matplotlib.lines.Line2D([0], [0], color=c))