Skip to content

Commit

Permalink
fix bug in if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkl committed Apr 21, 2015
1 parent 43e7e99 commit 6e045a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfanova/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def plot_marginal(self, param, lower_bound=0, upper_bound=1, is_int=False, resol
dim = self._fanova.param_name2dmin[param]
param_name = param

if param_name not in self._fanova.get_config_space().get_integer_parameters() or param_name not in self._fanova.get_config_space().get_continuous_parameters():
if param_name not in self._fanova.get_config_space().get_integer_parameters() and param_name not in self._fanova.get_config_space().get_continuous_parameters():
print "Parameter %s is not a continuous or integer parameter!" % (param_name)
return
grid = np.linspace(lower_bound, upper_bound, resolution)
Expand Down

0 comments on commit 6e045a4

Please sign in to comment.