We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd7439b commit 0f50176Copy full SHA for 0f50176
src/powerfit_em/report.py
@@ -534,10 +534,12 @@ def generated_table(solutions: list[dict[str, Any]]) -> str:
534
)
535
# Improve contrast by using white text on dark green backgrounds
536
invert_text_color_indices = {30}
537
+ coloring_threshold = 3
538
+ all_solutions_below_threshold = solutions[-1]["sigma_dif"] < coloring_threshold
539
for solution in solutions:
540
sigma_dif = solution["sigma_dif"]
541
style = ""
- if sigma_dif < 3:
542
+ if sigma_dif < coloring_threshold and not all_solutions_below_threshold:
543
gradient_index = floor(30 - 10 * sigma_dif)
544
color = green_gradient[gradient_index]
545
if gradient_index in invert_text_color_indices:
0 commit comments