arrayprobe-soda2-enhancements 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. arrayprobe_soda2_enhancements-0.1.0/BACKLOG_STATUS.md +204 -0
  2. arrayprobe_soda2_enhancements-0.1.0/CITATION.cff +178 -0
  3. arrayprobe_soda2_enhancements-0.1.0/LICENSE +31 -0
  4. arrayprobe_soda2_enhancements-0.1.0/LICENSES/BSD-3-Clause.txt +47 -0
  5. arrayprobe_soda2_enhancements-0.1.0/MANIFEST.in +57 -0
  6. arrayprobe_soda2_enhancements-0.1.0/NOTICE.md +160 -0
  7. arrayprobe_soda2_enhancements-0.1.0/PKG-INFO +80 -0
  8. arrayprobe_soda2_enhancements-0.1.0/README.md +58 -0
  9. arrayprobe_soda2_enhancements-0.1.0/docs/CORRECTIONS.md +594 -0
  10. arrayprobe_soda2_enhancements-0.1.0/docs/DEFERRED.md +32 -0
  11. arrayprobe_soda2_enhancements-0.1.0/pyproject.toml +51 -0
  12. arrayprobe_soda2_enhancements-0.1.0/setup.cfg +4 -0
  13. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/__init__.py +36 -0
  14. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/_adapter.py +175 -0
  15. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/_aspect_ratio_recompute.py +124 -0
  16. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/aspr_nan_fix.py +56 -0
  17. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/blank_roi_dof_fix.py +49 -0
  18. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/den_clamp_fix.py +55 -0
  19. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/dilation_clamp_fix.py +89 -0
  20. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/double_pi_fix.py +222 -0
  21. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/empty_roi_diodegaps_fix.py +59 -0
  22. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/fillholes_int_labels.py +98 -0
  23. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/hk_probeid_columns.py +80 -0
  24. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/label_blobs_int_count.py +51 -0
  25. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/last_buffer_index_fix.py +246 -0
  26. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/no_stuck_diode_fix.py +84 -0
  27. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/pbp_inttime_consistent.py +78 -0
  28. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/pbp_rejectionflag_ubyte.py +132 -0
  29. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/poisson_fill_guard.py +58 -0
  30. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/py.typed +0 -0
  31. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/registry.py +249 -0
  32. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/rejection_tally_fix.py +94 -0
  33. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/rollover_modulus_fix.py +104 -0
  34. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/run_diagnostics.py +278 -0
  35. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/same_time_buffer_fix.py +78 -0
  36. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements/zero_area_return_fix.py +68 -0
  37. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements.egg-info/PKG-INFO +80 -0
  38. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements.egg-info/SOURCES.txt +53 -0
  39. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements.egg-info/dependency_links.txt +1 -0
  40. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements.egg-info/requires.txt +8 -0
  41. arrayprobe_soda2_enhancements-0.1.0/src/arrayprobe_soda2_enhancements.egg-info/top_level.txt +1 -0
  42. arrayprobe_soda2_enhancements-0.1.0/tests/test_blank_roi_dof_fix.py +63 -0
  43. arrayprobe_soda2_enhancements-0.1.0/tests/test_dilation_clamp_fix.py +98 -0
  44. arrayprobe_soda2_enhancements-0.1.0/tests/test_drop_in_signatures.py +68 -0
  45. arrayprobe_soda2_enhancements-0.1.0/tests/test_fillholes_int_labels.py +78 -0
  46. arrayprobe_soda2_enhancements-0.1.0/tests/test_label_blobs_int_count.py +84 -0
  47. arrayprobe_soda2_enhancements-0.1.0/tests/test_last_buffer_index_fix.py +129 -0
  48. arrayprobe_soda2_enhancements-0.1.0/tests/test_lineage_isolation.py +104 -0
  49. arrayprobe_soda2_enhancements-0.1.0/tests/test_pbp_inttime_consistent.py +118 -0
  50. arrayprobe_soda2_enhancements-0.1.0/tests/test_pbp_rejectionflag_ubyte.py +160 -0
  51. arrayprobe_soda2_enhancements-0.1.0/tests/test_poisson_fill_guard.py +85 -0
  52. arrayprobe_soda2_enhancements-0.1.0/tests/test_registry.py +115 -0
  53. arrayprobe_soda2_enhancements-0.1.0/tests/test_sdist_has_no_silent_repo_skips.py +231 -0
  54. arrayprobe_soda2_enhancements-0.1.0/tests/test_zero_area_return_fix.py +97 -0
  55. arrayprobe_soda2_enhancements-0.1.0/tools/double_pi_ab.py +231 -0
@@ -0,0 +1,204 @@
1
+ # SODA-2 enhancement backlog: status
2
+
3
+ Cite SODA-2 as: Aaron Bansemer. (2026). abansemer/soda2: v2.26.0 (Version v2.26.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.18331418
4
+
5
+ Tier A of the 2026-09-14 triage -- 20 findings,
6
+ 18 correction modules plus one diagnostics-only module. One row per candidate; "planned" until a
7
+ module ships, then updated with its finding, its test module and its reachability.
8
+
9
+ | Module (config key) | Finding(s) | Port module | Reachability | Status |
10
+ |---|---|---|---|---|
11
+ | `aspr_nan_fix` | the non-finite aspect-ratio collapse | `aspect_ratio.py:105` | live | shipped, `tests/test_aspr_nan_fix.py` |
12
+ | `den_clamp_fix` | the misplaced den clamp | `aspect_ratio.py:66` | live | shipped, `tests/test_den_clamp_fix.py` |
13
+ | `rollover_modulus_fix` | the short 2D-S rollover constant | `processbuffer_spec.py:301` | live | shipped, `tests/test_rollover_modulus_fix.py` |
14
+ | `zero_area_return_fix` | the zero-area default measurements | `findsize.py` | flagged | shipped, `tests/test_zero_area_return_fix.py` |
15
+ | `last_buffer_index_fix` | the unindexed last buffer | `spec_index.py` | live | shipped, `tests/test_last_buffer_index_fix.py` |
16
+ | `same_time_buffer_fix` | the previous-buffer first-particle time | `processbuffer_spec.py` | live | shipped, `tests/test_same_time_buffer_fix.py` |
17
+ | `poisson_fill_guard` | the fill-area Poisson error | `poisson_spot_correct.py` | live | shipped, changes no written value -- see note below, `tests/test_poisson_fill_guard.py`; measured on real data 2026-09-15: UND 0914 HVPS-3, 600 s window, 191 particles reached `poisson_spot_correct` (190 degenerate, 1 not), all 32 `ProcessData` fields identical OFF vs ON -- `CORRECTIONS.md` |
18
+ | `fillholes_int_labels` | the modulo-256 fillholes labels | `fillholes.py` | latent | shipped, `tests/test_fillholes_int_labels.py` |
19
+ | `label_blobs_int_count` | the wrapping label_blobs count | `label_blobs.py` | latent | shipped, `tests/test_label_blobs_int_count.py` |
20
+ | `dilation_clamp_fix` | the misclamped dilation kernel | `label_blobs.py` | live | shipped, `tests/test_dilation_clamp_fix.py` |
21
+ | `blank_roi_dof_fix` | the accepted blank ROI | `binary_dof.py` | flagged | shipped, `tests/test_blank_roi_dof_fix.py` |
22
+ | `no_stuck_diode_fix` | the wide-probe stuck-diode index + the stuckbits column corruption | `fixstuckbits.py` | live | shipped, `tests/test_no_stuck_diode_fix.py` |
23
+ | `empty_roi_diodegaps_fix` | the empty-ROI diodegaps sentinel | `processbuffer_tail.py` | flagged | shipped, `tests/test_empty_roi_diodegaps_fix.py` |
24
+ | `rejection_tally_fix` | the uncounted depth-of-field rejects + the first-reason-only reject count | `particlesort.py` | live | shipped, `tests/test_rejection_tally_fix.py` |
25
+ | `hk_probeid_columns` | the horizontal-default HK columns | `process_hk.py` | flagged | shipped, `tests/test_hk_probeid_columns.py` |
26
+ | `pbp_inttime_consistent` | the two inttime values | `pbp_writer.py` (CSV) | live | shipped, `tests/test_pbp_inttime_consistent.py` |
27
+ | `pbp_rejectionflag_ubyte` | the signed rejectionflag byte | `pbp_writer.py` (netCDF) | live | shipped, `tests/test_pbp_rejectionflag_ubyte.py` |
28
+ | `run_diagnostics` | the uncounted dropped frames, the silently dropped last-record particle, the date-offset empty run, the silent memory-flush discard | `process_2d.py` | flagged | shipped for all four, `tests/test_run_diagnostics.py` -- see note below |
29
+ | `double_pi_fix` | the single-precision pi corner count | `min_circle_fast.py` | live | shipped, opt-in -- see note below, `tests/test_double_pi_fix.py` |
30
+
31
+ The 14 findings that need a design decision or a measurement first are recorded, each row with
32
+ what unblocks it, in `docs/DEFERRED.md`. The 36 that are documentation-only, IDL-only or
33
+ unreachable are not tracked here.
34
+
35
+ ## `aspr_nan_fix` + `den_clamp_fix` on real 2D-S data: not a null, and not on `conc1d` either
36
+
37
+ The question, on seeing the whole enhancement set produce an apparently unchanged
38
+ 2D-S 1 Hz product: *"if soda2 on and off provide no changes, what was the impact or need
39
+ of the enhancement... which is it"* Measured 2026-09-16
40
+ (every field compared on and off): of 35 numeric `.dat` fields, 33 are
41
+ byte-identical on and off; **`SPEC2D_ASPR`** and **`HIST3D`** differ, both aspect-ratio-derived --
42
+ the same two fields, same direction, as the ORACLES four-way. Per particle,
43
+ from the two `.pbp.nc` files (490,291 particles, all 38 variables swept): **`aspectratio` differs
44
+ in 114,379 (23.3%)**, almost entirely `den_clamp_fix` correcting an inflated divisor
45
+ (`aspect_ratio.pro:66`) upward -- a systematic ~16% understatement of `aspr` otherwise (measured
46
+ case, `docs/CORRECTIONS.md`'s `den_clamp_fix` section).
47
+
48
+ **The size distribution (`conc1d`) is genuinely unaffected** -- aspect ratio is not one of its
49
+ inputs, which is why the original three-field comparison (`conc1d`/`activetime`/`count_accepted`
50
+ only) looked like a total null and was not. **Anyone histogramming aspect ratio for habit or
51
+ ice/water-phase work on a SODA-2 run needs `den_clamp_fix` on** (opt-in): the effect is
52
+ not a degenerate-input edge case, it fires on ordinary 2D-S particles. Nine of the fourteen
53
+ correction modules checked this way *are* correctly inert on this file -- their preconditions
54
+ (a zero-area ROI, >255 regions, a DOF-reject flag, `stuckbits` on, an unrecognised `probeid`) never
55
+ occur in this file -- which is itself a result about this file, not evidence the corrections do
56
+ nothing.
57
+
58
+ ## Applied by `arrayprobe soda2 run`: the driver adapter
59
+
60
+ `registry.apply(resolved)` routes every resolved-ON correction it can through
61
+ `arrayprobe_soda2.enhancement_hooks` (a port-side table of twelve module-global bindings the
62
+ driver already reads) for the duration of the `soda2_process_2d` call. **14 of 19 are applied**;
63
+ five are not, each for a recorded reason (`_adapter.NOT_ROUTED`; `tests/test_adapter.py` checks
64
+ routed + not-routed partition the registry):
65
+
66
+ | Not applied through the driver | Why |
67
+ |---|---|
68
+ | `rollover_modulus_fix` | inline arithmetic in `process_spec_buffer` (`processbuffer_spec.py:305`); no function boundary |
69
+ | `empty_roi_diodegaps_fix` | inline arithmetic in `process_buffer_tail` (`processbuffer_tail.py:283`); no function boundary |
70
+ | `pbp_inttime_consistent` | its writer needs `interarrival`, which the driver's `write_pbp_csv_buffer` call (`process_2d.py:389`) does not pass |
71
+ | `rejection_tally_fix` | returns a separate corrected tally beside the port's; substitutes no driver call |
72
+ | `run_diagnostics` | a diagnostic; changes no output |
73
+
74
+ Two pairs share a binding and are composed, not stacked: `aspr_nan_fix` + `den_clamp_fix`
75
+ (`axis_and_ratio`), `label_blobs_int_count` + `dilation_clamp_fix` (`label_blobs`);
76
+ `double_pi_fix` (`aspect_ratio`) reads `axis_and_ratio` through the port module at call time so
77
+ it composes with the first pair. Measured on the tracked frame fixture: every correction OFF is
78
+ byte-identical to the port (`.pbp.csv` minus its wall-clock line, every `.pbp.nc` variable and
79
+ dtype, every `ProcessData` field); `pbp_rejectionflag_ubyte` alone changes exactly the written
80
+ `rejectionflag` dtype (`int8` -> `uint8`); the full all-ON table runs and leaves every
81
+ binding pristine.
82
+
83
+ ## `poisson_fill_guard` (the fill-area Poisson error) shipped -- a correction that changes no written value
84
+
85
+ Decided by the SODA-2 port plan: ship, with an equivalence test that documents the no-input
86
+ case. `tests/test_poisson_fill_guard.py` sweeps every integer area pair 0-120 and the GDL bank's
87
+ degenerate cases: `correction` and `zd` equal the port's everywhere. The only difference is the
88
+ route -- the port-tooling `PoissonCorrection.ip` is `-1` (branch at `:26` not taken) instead of
89
+ `0` (taken, clamped), and no `0/0` or negative square root is evaluated. The driver reads only
90
+ `correction` and `zd` (`processbuffer_tail.py:290-291`), so applying it is byte-identical by
91
+ construction. Registered opt-in (`default_on=False`) as is every
92
+ SODA-2 correction except the protective set (`registry.PROTECTIVE`);
93
+ it had been default ON under the earlier every-correction-on ruling. The stage-3 deferral note it supersedes follows, kept because its
94
+ analysis is what the equivalence test proves:
95
+
96
+ Checked directly against `poisson_spot_correct.py:169-174` before writing anything: for
97
+ **every** input the guard's suggested edit (`img_fill gt img_orig` / `img_fill gt 0`) would
98
+ route around, the port's *existing* NaN/clamp path already lands on the identical output the
99
+ guard would produce by construction -- `ratio` non-finite -> `where(...)` empty -> `ip`
100
+ clamped to `0` -> `(correction, zd) = (DEDGE_D0[0], ZEED[0]) = (1.0, 0.0)`, which is exactly
101
+ `poisson_spot_correct`'s own no-spot default (`:24-25`). The upstream finding says this
102
+ plainly ("the exact values it would return for a particle with no spot at all, arrived at by a
103
+ different route"). So there is no input on which an opt-in guard would change `sizecorrection`
104
+ or `zd` -- the doctrine's required A/B-consequence test ("ON changes exactly what the finding
105
+ says, on an input that exercises it") cannot be written honestly for this finding as stated,
106
+ because the finding itself establishes there is no output difference to demonstrate. Shipping a
107
+ module here would mean either a test that asserts nothing changes (failing the doctrine's own
108
+ requirement) or a test disguising that fact. Left open whether
109
+ this belongs in Tier A at all, or moves to the "turned out fine" register alongside
110
+ the findings that turned out to be fine.
111
+
112
+ ## `run_diagnostics` covers the uncounted dropped frames + the silently dropped last-record particle only, stage 6 -- the date-offset empty run/the silent memory-flush discard deferred, scope not defect
113
+
114
+ The plan groups four findings (the uncounted dropped frames, the silently dropped last-record particle, the date-offset empty run, the silent memory-flush discard) under one config key: "One module,
115
+ returns a diagnostics dict beside `ProcessData`". The uncounted dropped frames (`soda2_processbuffer.pro:296`/`:339`,
116
+ dropped frames/buffers) and the silently dropped last-record particle (`soda2_particlesort.pro:79-81`, a particle dropped at
117
+ `itime==numrecords`) each wrap one already-ported function (`process_spec_buffer`,
118
+ `soda2_particlesort`) and ship this stage, each with its own honest equivalence and
119
+ A/B-consequence proof (`tests/test_run_diagnostics.py`).
120
+
121
+ ## `double_pi_fix` (the single-precision pi corner count) shipped, opt-in
122
+
123
+ Plan section 2.4 wrote the decision in advance: default ON iff the population-3 (whole-driver)
124
+ changed-particle fraction `f` is 0 on both tracked fixtures *and* the min_circle_fast bank shows
125
+ only corner-count changes with `|Δdiam| <= 1e-9` relative; default OFF iff `f > 0` with `m >=
126
+ 1e-6` or `|Δorientation| >= 0.01°`; undecided only for `f > 0` with `m < 1e-6`.
127
+
128
+ **Measured** (`enhancements_soda2/tools/double_pi_ab.py`), at both an equal (`yres == xres`,
129
+ the base op) and an unequal (`stretchcorrect=1, fixedtas=120.0`, tas_adjust measured at 2.4 and
130
+ 0.93 respectively -- confirmed genuinely non-unit, not a no-op override) resolution ratio, per
131
+ the plan's own top-ranked uncertainty (the changed fraction might be governed by
132
+ `findsize.py:247`'s float32 `tas_adjust` path rather than by which branch `min_circle_fast`
133
+ takes):
134
+
135
+ | Fixture | yres:xres | n particles | n changed | max &#124;Δaspr&#124; | max &#124;Δorientation&#124; |
136
+ |---|---|---|---|---|---|
137
+ | S2 (`s2_spec_raw_fixture`) | equal (1.0) | 1 | 0 | 0.0 | 0.0 |
138
+ | S2 | unequal (2.4) | 1 | 0 | 0.0 | 0.0 |
139
+ | frame (`soda2_spec_frame_fixture`) | equal (1.0) | 13 | 0 | 0.0 | 0.0 |
140
+ | frame | unequal (0.93) | 13 | 0 | 0.0 | 0.0 |
141
+
142
+ `f == 0` on all four runs (28 pooled real particles, 0 changed). The 20-case
143
+ `min_circle_fast` bank: 4 cases change corner **count** (`block_5x3`, `disc_outline_r12`,
144
+ `rect_tas_1p037`, `L_shape`), `diam` agreeing to `1.2176439171466038e-16` relative in the worst
145
+ case -- well inside `1e-9`. Two more cases (`rect_4`, `outline_20x8`, both on the port's own
146
+ `:107` "rectangle-like" list) keep the same corner count and the same `diam` but land on a
147
+ different P/Q/R identity/order -- the mid-loop obtuse-angle tests (`:37`/`:41`) reroute the walk
148
+ even when the final branch is unchanged; this doesn't threaten the criterion (`diam` still
149
+ agrees), but it means "only corner-count changes" undersells what actually differs on the bank.
150
+
151
+ **Mechanically, this lands in the Default-ON branch** -- even though the plan itself flagged
152
+ that outcome as unlikely ("every axis-aligned block is rectangle-like"). By default it is
153
+ registered `default_on=False`: a measured no-op is not a data-destroying
154
+ defect, so it is not in `registry.PROTECTIVE`.
155
+
156
+ **Caveat, stated plainly rather than left implicit**: 28 particles across two small tracked
157
+ fixtures is a thin sample. `f == 0` here is not evidence that no real ORACLES particle ever has
158
+ an exact right angle at min_circle_fast's R vertex -- it says the two tracked fixtures happen
159
+ not to contain one at either resolution ratio tested. A future stage with access to a longer,
160
+ denser real flight file could re-run `double_pi_ab.py` and revisit the default if `f` turns out
161
+ to be nonzero there.
162
+
163
+ **the date-offset empty run** (a probe-reported date substituting `startdate`) and **the silent memory-flush discard** (a memory-limit flush
164
+ that can discard an in-progress record) both live inside `soda2_process_2d.pro`'s ~550-line
165
+ driver (`process_2d.py`), which this stage's ~25-minute time box does not reach -- unlike
166
+ `poisson_fill_guard` above, this is **not** a "no honest A/B test is possible" case: both
167
+ findings are concrete, reachable defects with a clear suggested edit, and a driver-level wrapper
168
+ analogous to this stage's other two functions would let an A/B proof be written the same way.
169
+ Left for a later stage (or a dedicated pass, given the driver's size) rather than shipped
170
+ with a rushed or shallow proof.
171
+
172
+ ## `run_diagnostics` -- the date-offset empty run/the silent memory-flush discard shipped, stage 8b (supersedes the stage 6 `run_diagnostics` note above)
173
+
174
+ `driver_date_diagnostics(op) -> dict` (the date-offset empty run) and `run_with_return_diagnostics(op, **kw) ->
175
+ tuple[ProcessData | None, dict]` (the silent memory-flush discard) reach both findings **without modifying the port**, by
176
+ wrapping `arrayprobe_soda2.process_2d.soda2_process_2d` and, only where needed, re-running the
177
+ driver's own preamble (`update_op` -> `buildindex` -> the date check -> the window arithmetic,
178
+ `process_2d.py:404-548`) on the side -- the same approach the note above anticipated. Neither
179
+ function calls the driver's per-buffer loop a second time, mutates its accumulator, or changes
180
+ what `soda2_process_2d` itself returns.
181
+
182
+ - `driver_date_diagnostics` reports `{"requested_julday", "file_julday", "branch":
183
+ "within_5_days"|"substituted", "startdate_used"}` -- equivalence on `soda2_spec_frame_fixture`
184
+ (`within_5_days`, `startdate_used == requested_julday`); A/B on `TraceLine410DateMismatch`'s own
185
+ ops (`test_soda2_process_2d.py:176`): `date_off10` (`date="20160827"`) reports `substituted`
186
+ while the port still returns a `ProcessData` identical to `s2_full`'s; `date_off1`
187
+ (`date="20160905"`) reports `within_5_days` while the port returns `None` -- the exact
188
+ "silently-empty vs silently-correct" pair the finding describes, distinguished
189
+ before the fact.
190
+ - `run_with_return_diagnostics` reports `{"returned": bool, "none_reason": None|
191
+ "no_buffers_in_window"|"flush_left_nothing"}` -- equivalence on `s2_full` (`returned=True`,
192
+ `none_reason=None`, primary return value field-for-field equal to the direct `soda2_process_2d`
193
+ call); A/B on `DriverRunsEndToEndOnTrackedFixtures`'s own `window_empty` op
194
+ (`test_soda2_process_2d.py:138`, `:550-551`) reporting `no_buffers_in_window`, and
195
+ the measured `frame_full` + `num2process=6` case (`:632-636`, the unclosed PBP files)
196
+ reporting `flush_left_nothing`.
197
+ - **Cannot be done without modifying the port** (as the note above anticipated): attributing a
198
+ `flush_left_nothing` return to a *specific* buffer, or reporting the count of particles already
199
+ flushed to disk before it -- both require the driver's own loop locals (`istop`, the per-buffer
200
+ index), which are not visible from outside `soda2_process_2d`.
201
+
202
+ Tests: `tests/test_run_diagnostics.py::DriverDateEquivalence`, `::DriverDateAB`,
203
+ `::DriverReturnEquivalence`, `::DriverReturnAB` (6 tests). Full `enhancements_soda2` suite: 97
204
+ tests, OK (up from 91).
@@ -0,0 +1,178 @@
1
+ cff-version: 1.2.0
2
+ title: arrayprobe
3
+ message: >-
4
+ This is a port, not new science. If you use it, cite the ORIGINAL alongside this
5
+ package, as the source of the methodology (see the references below) -- UIOOPS for anything computed by
6
+ arrayprobe or arrayprobe_uiops, and SODA-2 for anything computed by
7
+ arrayprobe_soda2. arrayprobe 0.1.0 is archived at https://doi.org/10.5281/zenodo.23574623, and is cited
8
+ alongside either original, never in place of it. Much of the porting, testing and
9
+ documentation was written with the help of Anthropic's Claude, under
10
+ the author's direction; the author reviewed and is responsible for the
11
+ result.
12
+ type: software
13
+ version: 0.1.0
14
+ doi: 10.5281/zenodo.23574623
15
+ date-released: '2026-11-02'
16
+ authors:
17
+ - family-names: Gupta
18
+ given-names: Siddhant
19
+ orcid: "https://orcid.org/0000-0002-0663-4595"
20
+ # Sole author. CFF 1.2.0 has no
21
+ # contributors field, so the others are credited in README.md:
22
+ # Advisors and collaborators: Joe O'Brien and Bobby Jackson (ANL), Greg
23
+ # McFarquhar and Yongjie Huang (University of Oklahoma), Aaron Bansemer
24
+ # (NCAR MMM).
25
+ # Data providers: Peter Brechner and Saurabh Patil (University of Oklahoma).
26
+ repository-code: "https://github.com/sgupta92/arrayprobe"
27
+ identifiers:
28
+ - type: doi
29
+ value: 10.5281/zenodo.23574623
30
+ description: arrayprobe 0.1.0
31
+ abstract: >-
32
+ Python translations of two optical-array-probe processing chains that turn raw airborne probe
33
+ imagery into particle size distributions with no licensed software: UIOOPS v3.5
34
+ (University of Illinois/Oklahoma), the default engine, validated against GNU Octave runs
35
+ of its own sources, and NCAR's SODA-2, validated against GDL runs of its sources. An
36
+ earlier translation of UIOOPS v3.1.4, not part of this package, reproduced archived
37
+ products cell by cell. Opt-in enhancements carry corrections beyond the original codes.
38
+ keywords:
39
+ - optical array probe
40
+ - cloud microphysics
41
+ - particle size distribution
42
+ - 2D-S
43
+ - HVPS
44
+ - airborne in-situ
45
+ - UIOOPS
46
+ - SODA-2
47
+ license: BSD-3-Clause
48
+ references:
49
+ - type: software
50
+ title: "University of Illinois/Oklahoma Optical Array Probe (OAP) Processing Software"
51
+ version: "v3.1.4"
52
+ year: 2018
53
+ doi: "10.5281/zenodo.1285969"
54
+ notes: >-
55
+ The original. Cite this for the methodology; arrayprobe ports it, under the
56
+ 3-clause BSD licence, with the UIOOPS maintainers' permission. An earlier translation of
57
+ v3.1.4, not part of this package, reproduced archived products, defects
58
+ included. The default engine is a
59
+ port of UIOOPS v3.5, in which the UIOOPS developers had already fixed several
60
+ defects; those fixes are theirs. This package's own corrections for
61
+ data-destroying defects (the 2D-S bin table and stray-pixel removal) are on
62
+ by default in the v3.5 engine, each recorded in the run's .call stamp and
63
+ each with an off switch (--protective off, --stray-pixel off); every other
64
+ correction is opt-in.
65
+ repository-code: "https://github.com/joefinlon/UIOPS"
66
+ url: "https://zenodo.org/records/1285969"
67
+ authors:
68
+ - family-names: McFarquhar
69
+ given-names: Greg M.
70
+ - family-names: Finlon
71
+ given-names: Joseph A.
72
+ - family-names: Stechman
73
+ given-names: Daniel M.
74
+ - family-names: Wu
75
+ given-names: Wei
76
+ - family-names: Jackson
77
+ given-names: Robert C.
78
+ - family-names: Freer
79
+ given-names: Matt
80
+ - type: software
81
+ title: "joefinlon/UIOPS: New Ellipse/Rectangle Fit Executables + Modified Holroyd Improvements"
82
+ version: "v3.5"
83
+ year: 2026
84
+ doi: "10.5281/zenodo.18945998"
85
+ notes: >-
86
+ The UIOOPS release the default engine (arrayprobe_uiops) ports. Cite it beside
87
+ the entry above for anything the v3.5 engine computes.
88
+ repository-code: "https://github.com/joefinlon/UIOPS"
89
+ url: "https://zenodo.org/records/18945998"
90
+ authors:
91
+ - family-names: Finlon
92
+ given-names: Joe
93
+ - family-names: Wu
94
+ given-names: Wei
95
+ - type: article
96
+ title: >-
97
+ A Comparison of X-Band Polarization Parameters with In Situ Microphysical
98
+ Measurements in the Comma Head of Two Winter Cyclones
99
+ authors:
100
+ - family-names: Finlon
101
+ given-names: Joseph A.
102
+ - family-names: McFarquhar
103
+ given-names: Greg M.
104
+ - family-names: Rauber
105
+ given-names: Robert M.
106
+ - family-names: Plummer
107
+ given-names: David M.
108
+ - family-names: Jewett
109
+ given-names: Brian F.
110
+ - family-names: Leon
111
+ given-names: David
112
+ - family-names: Knupp
113
+ given-names: Kevin R.
114
+ journal: "Journal of Applied Meteorology and Climatology"
115
+ volume: 55
116
+ issue: 12
117
+ start: 2549
118
+ end: 2574
119
+ year: 2016
120
+ doi: "10.1175/JAMC-D-16-0059.1"
121
+ notes: "The UIOOPS validation reference."
122
+ - type: article
123
+ title: >-
124
+ A Multi-Probe Automated Classification of Ice Crystal Habits During the IMPACTS Campaign
125
+ authors:
126
+ - family-names: Schima
127
+ given-names: Julian
128
+ - family-names: McFarquhar
129
+ given-names: Greg M.
130
+ - family-names: Delene
131
+ given-names: David
132
+ - family-names: Heymsfield
133
+ given-names: Andrew
134
+ - family-names: Bansemer
135
+ given-names: Aaron
136
+ - family-names: Schnaiter
137
+ given-names: Martin
138
+ - family-names: Finlon
139
+ given-names: Joseph A.
140
+ - family-names: Järvinen
141
+ given-names: Emma
142
+ - family-names: Nehlert
143
+ given-names: Franziska
144
+ journal: "Journal of Geophysical Research: Atmospheres"
145
+ volume: 129
146
+ number: "e2024JD040895"
147
+ year: 2024
148
+ doi: "10.1029/2024JD040895"
149
+ notes: >-
150
+ The habit scheme behind `holroyd_new.m` and `holroyd_new_HVPS.m`, which the
151
+ v3.5 engine runs when `iNewHabit` is set. Cite it for any habit class
152
+ produced that way.
153
+ - type: software
154
+ title: "SODA-2: System for OAP Data Analysis"
155
+ notes: >-
156
+ The second upstream, translated by arrayprobe_soda2. A SEPARATE work under
157
+ a separate licence -- 3-clause BSD, not GPLv3 -- whose copyright notice
158
+ travels with any redistribution. Cite this for anything computed by that
159
+ module. Findings about SODA-2 are kept in their own register and are never
160
+ merged into the UIOOPS ones.
161
+ repository-code: "https://github.com/abansemer/soda2"
162
+ license: BSD-3-Clause
163
+ authors:
164
+ - family-names: Bansemer
165
+ given-names: Aaron
166
+ - name: "University Corporation for Atmospheric Research (UCAR)"
167
+ - type: software
168
+ title: "abansemer/soda2: v2.26.0"
169
+ version: v2.26.0
170
+ year: 2026
171
+ publisher:
172
+ name: Zenodo
173
+ doi: 10.5281/zenodo.18331418
174
+ url: "https://doi.org/10.5281/zenodo.18331418"
175
+ authors:
176
+ - family-names: Bansemer
177
+ given-names: Aaron
178
+ notes: "The software citation SODA-2's author, Aaron Bansemer, asks for (provided 2026-10-06), verbatim: Aaron Bansemer. (2026). abansemer/soda2: v2.26.0 (Version v2.26.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.18331418"
@@ -0,0 +1,31 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Siddhant Gupta
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are
8
+ met:
9
+
10
+ 1. Redistributions of source code must retain the above copyright
11
+ notice, this list of conditions and the following disclaimer.
12
+
13
+ 2. Redistributions in binary form must reproduce the above copyright
14
+ notice, this list of conditions and the following disclaimer in the
15
+ documentation and/or other materials provided with the distribution.
16
+
17
+ 3. Neither the name of the copyright holder nor the names of its
18
+ contributors may be used to endorse or promote products derived from
19
+ this software without specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,47 @@
1
+ SODA-2 licence notice, retained
2
+
3
+ arrayprobe is under the 3-clause BSD licence in LICENSE. The modules that reproduce
4
+ SODA-2 (src/arrayprobe_soda2/ and enhancements_soda2/src/) also carry the notice
5
+ below, which SODA-2's clause 1 requires to be retained. The module derived from NCAR
6
+ Process2D (enhancements_uiops/src/arrayprobe_enhancements/field2006_shatter.py) is
7
+ also subject to the Apache License 2.0 (LICENSES/Apache-2.0.txt).
8
+
9
+ ========================================================================
10
+ SODA-2, the original these modules reproduce. Its notice, conditions and
11
+ disclaimer are retained verbatim, as its clause 1 requires.
12
+ ========================================================================
13
+
14
+ License: System for OAP (optical array probe) Data Analysis
15
+
16
+ Copyright © 2016 University Corporation for Atmospheric Research (UCAR).
17
+ All rights reserved.
18
+
19
+ Developed by NCAR's Mesoscale and Microscale Meteorology Laboratory
20
+ https://www.mmm.ucar.edu/
21
+
22
+ Redistribution and use in source and binary forms, with or without
23
+ modification, are permitted provided that the following conditions are
24
+ met:
25
+
26
+ 1. Redistributions of source code must retain the above copyright
27
+ notice, this list of conditions and the following disclaimer.
28
+
29
+ 2. Redistributions in binary form must reproduce the above copyright
30
+ notice, this list of conditions and the following disclaimer in the
31
+ documentation and/or other materials provided with the distribution.
32
+
33
+ 3. Neither the name of the copyright holder nor the names of its
34
+ contributors may be used to endorse or promote products derived from
35
+ this software without specific prior written permission.
36
+
37
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
38
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
39
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
40
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
41
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
42
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
44
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
45
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
46
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
47
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,57 @@
1
+ # What travels in the arrayprobe-soda2-enhancements source distribution.
2
+ #
3
+ # WHY THIS FILE EXISTS (2026-09-21) -- the same finding as
4
+ # `../enhancements_uiops/MANIFEST.in`, whose header carries the reasoning in full.
5
+ # This package likewise owns no fixtures and reaches the port's tracked data by
6
+ # `Path(__file__).resolve().parents[2] / "<port-dir>" / "tests" / "data"`,
7
+ # which in an unpacked `arrayprobe_soda2_enhancements-0.1.0.dev0/` is above the
8
+ # tarball root.
9
+ #
10
+ # MEASURED on 2026-09-21, from the unpacked sdist against a clean install:
11
+ # **113 tests, 0 skipped, 33 errors** -- 32 `FileNotFoundError`, one
12
+ # `ModuleNotFoundError` and one `ImportError` from
13
+ # `sys.path.insert(0, parents[2] / "<port-dir>" / "gdl_oracle")`. This half of
14
+ # the family fails LOUDLY rather than skipping silently, which is better, but a
15
+ # tarball whose suite reports 33 errors on a correct install "trains the reader
16
+ # to ignore red" (the port's own MANIFEST.in header) -- so the same split
17
+ # applies: a test that reaches outside its distribution root stays in the
18
+ # repository.
19
+ #
20
+ # THE LIST BELOW IS DERIVED, NOT TYPED, and
21
+ # `tests/test_sdist_has_no_silent_repo_skips.py` -- which SHIPS -- recomputes it
22
+ # and fails on drift.
23
+
24
+ graft src
25
+ graft tests
26
+ graft docs
27
+ graft tools
28
+
29
+ include LICENSE
30
+ include README.md
31
+ include BACKLOG_STATUS.md
32
+
33
+ # The attribution masters, copied from the repository root 2026-09-21; see
34
+ # ../enhancements_uiops/MANIFEST.in for why they could not travel before.
35
+ include NOTICE.md
36
+ include CITATION.cff
37
+
38
+ global-exclude *.py[cod]
39
+ global-exclude *.launch.log
40
+ prune **/__pycache__
41
+ prune .venv
42
+ prune .mypy_cache
43
+ prune .ruff_cache
44
+
45
+ # ---------------------------------------------------------------------------
46
+ # The 11 test modules that reach a path above their own distribution root.
47
+ exclude tests/test_adapter.py
48
+ exclude tests/test_aspr_nan_fix.py
49
+ exclude tests/test_den_clamp_fix.py
50
+ exclude tests/test_double_pi_fix.py
51
+ exclude tests/test_empty_roi_diodegaps_fix.py
52
+ exclude tests/test_hk_probeid_columns.py
53
+ exclude tests/test_no_stuck_diode_fix.py
54
+ exclude tests/test_rejection_tally_fix.py
55
+ exclude tests/test_rollover_modulus_fix.py
56
+ exclude tests/test_run_diagnostics.py
57
+ exclude tests/test_same_time_buffer_fix.py