Skip to content

Commit

Permalink
fix: added format_str for enum type HIPS#98
Browse files Browse the repository at this point in the history
References: HIPS#98
  • Loading branch information
nebgnahz committed May 25, 2017
1 parent ac71b61 commit 827d886
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spearmint/tasks/input_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,10 @@ def paramify_and_print(self, data_vector, left_indent=0, indent_top_row=True):

if param['type'] == 'float':
format_str = '%s%-12.12s %-9.9s %-12f'
else:
elif param['type'] == 'int':
format_str = '%s%-12.12s %-9.9s %-12d'
else:
format_str = '%s%-12.12s %-9.9s %-12s'

for i in xrange(len(param['values'])):
if i == 0:
Expand Down

0 comments on commit 827d886

Please sign in to comment.