Commit ab8f5e9
fix: 🐛 render warnings and errors as Rich Panels in fit command
Replace plain typer.echo/style with rich.panel.Panel for all
warnings and errors in the fit command:
- _rich_showwarning: intercepts Python UserWarning, strips the
legacy ASCII-art ## WARNING ##### borders from report/metrics.py,
and renders a yellow-bordered Panel via Rich
- Config/fitting exceptions: replaced typer.echo(typer.style(...))
with red-bordered Panel for consistent Rich UX
- Restores warnings.showwarning on all exit paths
No frozen modules (report/, core/postprocessing.py) were modified.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 35a3194 commit ab8f5e9
1 file changed
Lines changed: 52 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
| 77 | + | |
74 | 78 | | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
77 | 109 | | |
78 | 110 | | |
79 | 111 | | |
80 | 112 | | |
81 | 113 | | |
82 | 114 | | |
83 | 115 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
87 | 125 | | |
88 | 126 | | |
89 | 127 | | |
| |||
99 | 137 | | |
100 | 138 | | |
101 | 139 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
105 | 149 | | |
106 | 150 | | |
107 | 151 | | |
| |||
115 | 159 | | |
116 | 160 | | |
117 | 161 | | |
| 162 | + | |
118 | 163 | | |
119 | 164 | | |
120 | 165 | | |
121 | 166 | | |
122 | 167 | | |
123 | 168 | | |
| 169 | + | |
124 | 170 | | |
0 commit comments