Commit 919fbbb
fix: Accept numeric-only Machine ID in Mabtech APEX parser (#1231)
## Summary
- Some APEX instruments export only a numeric serial number (e.g.
`"554"`) in the Machine ID field instead of the expected `"Model
Number"` format (e.g. `"IRIS 1234"`)
- The strict regex caused an `AllotropeConversionError: Unable to
interpret Machine ID` failure
- Now handles bare numeric IDs by using the number as the serial and
setting model to N/A
## Test plan
- [x] Verified both failing files (`Copy_of_XX039002_2.xlsx`,
`XX067088.xlsx`) now parse successfully
- [x] Existing mabtech_apex tests still pass (4/4)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0058b39 commit 919fbbb
1 file changed
Lines changed: 15 additions & 11 deletions
Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | | - | |
38 | | - | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
0 commit comments