We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e876b95 commit dcacdc7Copy full SHA for dcacdc7
1 file changed
evaluation_function/evaluation.py
@@ -215,7 +215,7 @@ def _grade_bool(
215
return _err("No graph provided in either response.graph or answer.graph.")
216
217
gc_params = p.graph_coloring
218
- num_colors = (gc_params.num_colors if gc_params and gc_params.num_colors else None) or ans.num_colors
+ num_colors = gc_params.num_colors if (gc_params and gc_params.num_colors is not None) else ans.num_colors
219
if num_colors is None:
220
return _err("Missing num_colors: provide in params.graph_coloring.num_colors or answer.num_colors.")
221
0 commit comments