Commit c22ddc7
committed
Simplify check for tight-bbox finiteness.
`0 < bbox.width < np.inf` is as explicit as `bbox.width != 0 and
np.isfinite(bbox.width)`, shorter, and faster (not that it is a
bottleneck, though). (It works because bboxes are oriented to have
nonnegative widths and heights.)1 parent b6e8c19 commit c22ddc7
3 files changed
+17
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4334 | 4334 | | |
4335 | 4335 | | |
4336 | 4336 | | |
4337 | | - | |
4338 | | - | |
4339 | | - | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
4340 | 4340 | | |
4341 | 4341 | | |
4342 | 4342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1169 | 1165 | | |
1170 | 1166 | | |
1171 | 1167 | | |
| |||
0 commit comments