Commit 919326b
Fix SCMOSCamera matrix convention to match Julia standard (#34)
* Fix SCMOSCamera matrix convention to match Julia standard
The validation check for calibration matrices (readnoise, gain, offset, qe)
was expecting size (nx, ny) but Julia arrays use [row, col] indexing, so
matrices should be (ny, nx) where ny=rows and nx=cols.
This bug was masked by square camera tests but would cause:
- BoundsError for rectangular cameras when downstream code accesses map[y, x]
- Semantic errors for square cameras (data transposed)
Changes:
- Fix _validate_camera_param to expect (ny, nx) instead of (nx, ny)
- Update docstrings to clarify the convention
- Fix existing rectangular test that used wrong convention
- Add explicit test verifying semantic access pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Bump version to 0.5.1
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent e9cf0ac commit 919326b
3 files changed
+33
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| 518 | + | |
| 519 | + | |
518 | 520 | | |
519 | | - | |
520 | | - | |
| 521 | + | |
| 522 | + | |
521 | 523 | | |
522 | 524 | | |
523 | 525 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | | - | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| |||
286 | 288 | | |
287 | 289 | | |
288 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
289 | 312 | | |
290 | 313 | | |
291 | 314 | | |
| |||
0 commit comments