Skip to content
Snippets Groups Projects
Commit 440a96bc authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'bug_fix' into 'master'

Fix error in context name

See merge request !56
parents 3ed8c99e b2dc1d84
Branches
Tags
1 merge request!56Fix error in context name
Pipeline #
...@@ -520,7 +520,7 @@ class Hist(PlotBase): ...@@ -520,7 +520,7 @@ class Hist(PlotBase):
''' Functional base class for histograms''' ''' Functional base class for histograms'''
def __init__(self, ctx, scores, evaluation, func_load): def __init__(self, ctx, scores, evaluation, func_load):
super(Hist, self).__init__(ctx, scores, evaluation, func_load) super(Hist, self).__init__(ctx, scores, evaluation, func_load)
self._nbins = None if 'nbins' not in ctx.meta else ctx.meta['nbins'] self._nbins = None if 'n_bins' not in ctx.meta else ctx.meta['n_bins']
self._thres = None if 'thres' not in ctx.meta else ctx.meta['thres'] self._thres = None if 'thres' not in ctx.meta else ctx.meta['thres']
self._show_dev = ((not self._eval) if 'show_dev' not in ctx.meta else\ self._show_dev = ((not self._eval) if 'show_dev' not in ctx.meta else\
ctx.meta['show_dev']) or not self._eval ctx.meta['show_dev']) or not self._eval
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment