Commit cec14c8
authored
♻️ refactor(tests): align suites with metric/chart API updates and public JAX dtypes (#525)
Refactor tests and internal utilities to match the updated metric, chart, and manifold APIs while simplifying formatting and numeric literals.
Highlights:
- Update Hypothesis strategies and chart/vector/distance tests for the
metric refactor and current manifold/chart APIs
- Replace whole-number float literals with ints across manifold,
representation, transform, vector, package, pt_map, strategy, and
quantity_matrix tests where dtype semantics permit
- Normalize assert_allclose(rtol=0.0) → rtol=0
- Preserve float literals where required for JAX grad/jvp behaviour,
dtype tracing, and mixed-unit conversions
- Collapse single-trailing-comma expressions onto one line across src,
tests, config, and utility scripts for cleaner ruff-format output
- Fix DenseMetric fixture dtype to avoid JIT/MLIR dtype mismatches
- Replace private jax._src.dtypes usage with public jnp.issubdtype +
jnp.result_type equivalents
Also includes cosmetic formatting cleanup, updated fixtures, and minor
test maintenance throughout the repository.
Signed-off-by: nstarman <nstarman@users.noreply.github.com>1 parent e3b9782 commit cec14c8
64 files changed
Lines changed: 700 additions & 1044 deletions
File tree
- packages
- coordinax.astro
- src/coordinax/astro/_src
- tests/unit
- coordinax.curveframes
- src/coordinax/curveframes/_src
- tests
- coordinax.hypothesis
- src/coordinax/hypothesis
- distances/_src
- manifolds/_src
- representations/_src
- tests
- benchmark
- unit
- charts
- manifolds
- representations
- utils
- annotations
- scripts
- src/coordinax
- _src
- embedded
- internal
- quantity_matrix
- minkowski
- transforms/_src
- vectors
- _src
- tests
- integration/charts
- unit
- angles
- charts
- distances
- internal
- manifolds
- representations
- transforms
- vectors
- usage
- charts
- frames
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
| 274 | + | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 163 | + | |
167 | 164 | | |
168 | 165 | | |
169 | 166 | | |
| |||
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 184 | + | |
195 | 185 | | |
196 | 186 | | |
197 | 187 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
62 | | - | |
| 60 | + | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
Lines changed: 10 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 58 | + | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 78 | + | |
87 | 79 | | |
88 | 80 | | |
89 | 81 | | |
90 | 82 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 83 | + | |
95 | 84 | | |
96 | 85 | | |
97 | 86 | | |
| |||
128 | 117 | | |
129 | 118 | | |
130 | 119 | | |
131 | | - | |
| 120 | + | |
132 | 121 | | |
133 | 122 | | |
134 | 123 | | |
| |||
140 | 129 | | |
141 | 130 | | |
142 | 131 | | |
143 | | - | |
144 | | - | |
145 | | - | |
| 132 | + | |
146 | 133 | | |
147 | 134 | | |
148 | 135 | | |
| |||
161 | 148 | | |
162 | 149 | | |
163 | 150 | | |
164 | | - | |
165 | | - | |
166 | | - | |
| 151 | + | |
167 | 152 | | |
168 | 153 | | |
169 | 154 | | |
| |||
180 | 165 | | |
181 | 166 | | |
182 | 167 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 168 | + | |
186 | 169 | | |
187 | 170 | | |
188 | 171 | | |
| |||
205 | 188 | | |
206 | 189 | | |
207 | 190 | | |
208 | | - | |
| 191 | + | |
209 | 192 | | |
210 | 193 | | |
211 | 194 | | |
212 | 195 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 196 | + | |
216 | 197 | | |
217 | 198 | | |
218 | 199 | | |
| |||
226 | 207 | | |
227 | 208 | | |
228 | 209 | | |
229 | | - | |
| 210 | + | |
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
| 608 | + | |
612 | 609 | | |
613 | 610 | | |
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 213 | + | |
217 | 214 | | |
218 | 215 | | |
219 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 321 | + | |
326 | 322 | | |
327 | 323 | | |
328 | 324 | | |
| |||
392 | 388 | | |
393 | 389 | | |
394 | 390 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
| 391 | + | |
400 | 392 | | |
401 | 393 | | |
402 | 394 | | |
Lines changed: 13 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 139 | + | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
150 | | - | |
| 148 | + | |
151 | 149 | | |
152 | 150 | | |
153 | 151 | | |
| |||
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
179 | | - | |
180 | | - | |
181 | | - | |
| 177 | + | |
182 | 178 | | |
183 | 179 | | |
184 | 180 | | |
| |||
194 | 190 | | |
195 | 191 | | |
196 | 192 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 193 | + | |
200 | 194 | | |
201 | 195 | | |
202 | 196 | | |
| |||
207 | 201 | | |
208 | 202 | | |
209 | 203 | | |
210 | | - | |
| 204 | + | |
211 | 205 | | |
212 | 206 | | |
213 | 207 | | |
| |||
224 | 218 | | |
225 | 219 | | |
226 | 220 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 221 | + | |
230 | 222 | | |
231 | 223 | | |
232 | 224 | | |
| |||
239 | 231 | | |
240 | 232 | | |
241 | 233 | | |
242 | | - | |
243 | | - | |
244 | | - | |
| 234 | + | |
245 | 235 | | |
246 | 236 | | |
247 | 237 | | |
| |||
262 | 252 | | |
263 | 253 | | |
264 | 254 | | |
265 | | - | |
266 | | - | |
267 | | - | |
| 255 | + | |
268 | 256 | | |
269 | 257 | | |
270 | 258 | | |
| |||
290 | 278 | | |
291 | 279 | | |
292 | 280 | | |
293 | | - | |
| 281 | + | |
294 | 282 | | |
295 | 283 | | |
296 | 284 | | |
297 | 285 | | |
298 | 286 | | |
299 | 287 | | |
300 | 288 | | |
301 | | - | |
| 289 | + | |
302 | 290 | | |
303 | 291 | | |
304 | 292 | | |
| |||
312 | 300 | | |
313 | 301 | | |
314 | 302 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 303 | + | |
318 | 304 | | |
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 82 | + | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
| |||
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 349 | + | |
353 | 350 | | |
354 | 351 | | |
355 | 352 | | |
| |||
408 | 405 | | |
409 | 406 | | |
410 | 407 | | |
411 | | - | |
412 | | - | |
413 | | - | |
| 408 | + | |
414 | 409 | | |
415 | 410 | | |
416 | 411 | | |
| |||
0 commit comments