ppak10 commited on
Commit
67936ae
·
1 Parent(s): 8692359

Adds WIP changes and plot redesigns.

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .claude/settings.local.json +22 -1
  2. CLAUDE.md +13 -6
  3. README.md +7 -4
  4. assets/D638_batch_averages.pdf +0 -3
  5. assets/D638_batch_averages.png +0 -3
  6. assets/D638_batch_clusters.pdf +0 -3
  7. assets/D638_batch_clusters.png +0 -3
  8. assets/D638_controls.pdf +0 -3
  9. assets/D638_controls.png +0 -3
  10. assets/D638_nylon12white_average.pdf +0 -3
  11. assets/D638_nylon12white_average.png +0 -3
  12. assets/D638_nylon12white_control.pdf +0 -3
  13. assets/D638_nylon12white_control.png +0 -3
  14. assets/D638_type_iv.pdf +0 -3
  15. assets/D638_type_iv.png +0 -3
  16. assets/D790_batch_averages.pdf +0 -3
  17. assets/D790_batch_averages.png +0 -3
  18. assets/D790_batch_clusters.pdf +0 -3
  19. assets/D790_batch_clusters.png +0 -3
  20. assets/D790_nylon12white_average.pdf +0 -3
  21. assets/D790_nylon12white_average.png +0 -3
  22. assets/D790_nylon12white_control.pdf +0 -3
  23. assets/D790_nylon12white_control.png +0 -3
  24. assets/batches/D638_A.pdf +0 -3
  25. assets/batches/D638_A.png +0 -3
  26. assets/batches/D638_B.pdf +0 -3
  27. assets/batches/D638_B.png +0 -3
  28. assets/batches/D638_C.pdf +0 -3
  29. assets/batches/D638_C.png +0 -3
  30. assets/batches/D638_D.pdf +0 -3
  31. assets/batches/D638_D.png +0 -3
  32. assets/batches/D638_E.pdf +0 -3
  33. assets/batches/D638_E.png +0 -3
  34. assets/batches/D638_F.pdf +0 -3
  35. assets/batches/D638_F.png +0 -3
  36. assets/batches/D638_G.pdf +0 -3
  37. assets/batches/D638_G.png +0 -3
  38. assets/batches/D638_H.pdf +0 -3
  39. assets/batches/D638_H.png +0 -3
  40. assets/batches/D638_I.pdf +0 -3
  41. assets/batches/D638_I.png +0 -3
  42. assets/batches/D638_J.pdf +0 -3
  43. assets/batches/D638_J.png +0 -3
  44. assets/batches/D638_J_MB.pdf +0 -3
  45. assets/batches/D638_J_MB.png +0 -3
  46. assets/batches/D638_K.pdf +0 -3
  47. assets/batches/D638_K.png +0 -3
  48. assets/batches/D638_L.pdf +0 -3
  49. assets/batches/D638_L.png +0 -3
  50. assets/batches/D638_M.pdf +0 -3
.claude/settings.local.json CHANGED
@@ -78,7 +78,28 @@
78
  "Bash(python 21_2026_07_08_flex_j_mb.py)",
79
  "Bash(cd \"scripts/specimens\")",
80
  "Bash(python scripts/plots/01_composite.py)",
81
- "Bash(git -c safe.directory='*' status --short -- source/2026_07_06 source/2026_07_08 scripts/specimens/18_2026_07_06_tensile_j.py scripts/specimens/19_2026_07_06_flex_j.py scripts/specimens/20_2026_07_08_tensile_j_mb.py scripts/specimens/21_2026_07_08_flex_j_mb.py data/D638 data/D790 README.md CLAUDE.md scripts/plots/01_composite.py assets/D638_composite.png assets/D790_composite.png)"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  ]
83
  }
84
  }
 
78
  "Bash(python 21_2026_07_08_flex_j_mb.py)",
79
  "Bash(cd \"scripts/specimens\")",
80
  "Bash(python scripts/plots/01_composite.py)",
81
+ "Bash(git -c safe.directory='*' status --short -- source/2026_07_06 source/2026_07_08 scripts/specimens/18_2026_07_06_tensile_j.py scripts/specimens/19_2026_07_06_flex_j.py scripts/specimens/20_2026_07_08_tensile_j_mb.py scripts/specimens/21_2026_07_08_flex_j_mb.py data/D638 data/D790 README.md CLAUDE.md scripts/plots/01_composite.py assets/D638_composite.png assets/D790_composite.png)",
82
+ "Bash(uniq -c -w2)",
83
+ "Bash(git reset *)",
84
+ "Bash(git checkout *)",
85
+ "Bash(awk '{print $1}')",
86
+ "Bash(awk '{$1=\"\"; print}')",
87
+ "Bash(uv run *)",
88
+ "Bash(python3 -c \"import json,sys; r=json.load\\(sys.stdin\\); print\\('old job_id:', r['job_id'], 'print_profile_id:', r['print_profile_id']\\)\")",
89
+ "Bash(python3 -c \"import json; r=json.load\\(open\\('data/D790/H1.jsonl'\\)\\); print\\('new job_id:', r['job_id'], 'print_profile_id:', r['print_profile_id']\\)\")",
90
+ "Bash(git status *)",
91
+ "Bash(python3 -)",
92
+ "Bash(git add *)",
93
+ "Bash(git commit -m ' *)",
94
+ "Bash(uv run python3 -c ' *)",
95
+ "Bash(grep -o '\"print_date\": \"[^\"]*\"' ../Agentic-SLS-Database/data/jobs.jsonl 2>/dev/null | sort -u | tail -20 || echo \"no sibling repo found at that path\"; ls .. 2>/dev/null)",
96
+ "Bash(ln -s Inova-Mk1-Database ../Agentic-SLS-Database)",
97
+ "Bash(uv run python -c ' *)",
98
+ "Bash(xargs -I{} sh -c \"python3 -c \\\\\"import json;print\\(json.load\\(open\\('{}'\\)\\)['source_paths']\\)\\\\\"\")",
99
+ "Bash(echo \"exit: $?\")",
100
+ "Bash(pkill -f \"04_batch_details.py\")",
101
+ "Bash(ps -o etimes= -p 13716)",
102
+ "Bash(ps -o etimes=,pid=,cmd= -p 13716)"
103
  ]
104
  }
105
  }
CLAUDE.md CHANGED
@@ -100,13 +100,16 @@ scripts/specimens/
100
  30_2026_07_23_flex_n.py # Batch N flex — xlsx_only
101
  31_2026_07_23_tensile_nylon12white_fl.py # FormLabs Nylon 12 White tensile control — xlsx_only
102
  32_2026_07_23_flex_nylon12white_fl.py # FormLabs Nylon 12 White flex control — xlsx_only
 
 
 
103
 
104
  data/
105
  D638/ # one JSONL per specimen (HF glob: data/D638/*.jsonl)
106
- A1.jsonl ... N5.jsonl # SLS specimens, named by sample_id
107
  PLA_TSR6.jsonl ... NYLON12_WHITE_FL_Sheet5.jsonl # non-SLS controls (no sample_id)
108
  D790/
109
- C1.jsonl ... N5.jsonl # SLS specimens, named by sample_id
110
  ```
111
 
112
  ## File format notes — TestWorks 4.1 output
@@ -143,15 +146,19 @@ Same TestWorks framework, different schema. Notable renames you have to handle:
143
 
144
  ## Current state
145
 
146
- - `D638` config — 103 rows: 87 SLS across batches A-N (batch counts: A5 B5 C7 D5 E5 F5 G5 H3 I5 J4 J_MB5 K5 L6 M17 N5) + 3 PLA + 3 PETG + 5 FormLabs PA12GF + 5 FormLabs Nylon 12 White.
147
- - `D790` config — 81 rows: 71 SLS across batches C-N (batch counts: C9 D8 E10 F9 G4 H5 I5 J2 J_MB2 K3 L4 M5 N5) + 5 FormLabs PA12GF + 5 FormLabs Nylon 12 White.
148
- - **Batches K-N have `db_print_date=None`** (print jobs not yet backfilled into Database) — SLS rows through J/J_MB have Database FKs (2026-07-12 backfill: E ← 2026-06-07 (same as D), F ← 2026-06-13, G ← 2026-06-09, H ← 2026-06-24, I ← 2026-06-25, J/J_MB ← 2026-06-27 (`D790 and D638 and other objects`)); K, L, M, N still need the same treatment once their print jobs land.
149
  - **`_lib.py` disambiguates same-date jobs by STL content.** Two 2026-06-27 prints share a date in Database; `resolve_database_fk` picks the one whose object list contains the standard's STL needle (`d638` / `d790`). Same fix will apply to any future same-date collision (e.g. 06-29 already has two jobs, though no ASTM specimens map there yet).
150
- - Total: 184 specimens, produced by 32 per-session scripts (some date folders — 2026_06_10, 2026_06_30, 2026_07_21 — contain more than one Test project/batch/specimen type).
151
  - Batch I flex is missing TSR4 (excluded: `test_end_reason` is "Test Stopped", not a detected break) — sample_ids I1-I5 map to TSR{1,2,3,5,6}.
152
  - Batch H's 5 flex rows are `xlsx_only` (no raw TestRuns folder survived — see architectural decisions above); Batches K, L, M, N are `xlsx_only` too (no TestRuns/h5 handed off for those sessions at all, not just one project overwriting another) — every other row has full h5-derived curves.
153
  - **Batch J / J_MB (2026-07-06 print, tested 07/06 and 07/08) is the first split-batch label.** Both are the same physical print batch; `J` specimens were tested as-printed, `J_MB` specimens were media blasted post-print before testing. This deviates from the single-letter `batch_label` convention (see architectural decisions above) — deliberately, per user instruction, to keep the surface-treatment distinction visible without adding a new schema field. If more media-blast-vs-not comparisons get added, consider promoting this to a real `surface_treatment` field instead of continuing to overload `batch_label`.
154
  - **Batch M tensile (D638) is the first batch mixing two ASTM specimen types.** 5 Type I dogbones (`tensile_m.xlsx`, sample_ids M1-M5) plus 12 Type IV narrow-section specimens from the same print (`tensile_m_t4.xlsx`, M6-M17, `astm.type = "Type IV"`) — see `26_2026_07_21_tensile_m.py` / `27_2026_07_21_tensile_m_type4.py`, which share `batch_label="M"` and continue sample numbering via `process_session`'s `seq_start`. Per user instruction the Type IV specimens get their own figure (`assets/D638_type_iv.png`) rather than sharing the cluster/batch-averages/detail figures with the rest of Batch M — `TYPE_LINESTYLES` in `scripts/plots/_lib.py` flags which ASTM types get this treatment, and `02_batch_averages.py`/`03_batch_clusters.py`/`04_batch_details.py` all exclude them accordingly (different gauge geometry, not comparable to Type I). Within that dedicated figure, each of the 12 specimens gets its own labeled curve (`render_type_iv` in `01_controls.py`) rather than one grouped legend entry — ordered by `specimen_index` (= xlsx sheet order = physical test order) and labeled per `TYPE_IV_LABELS = [1,2,3,4,5,6,8,9,10,11,13,14]`, a user-supplied numbering with intentional gaps at 7 and 12 (specimen numbers that exist in the lab's own record-keeping but aren't part of this xlsx export).
 
 
 
 
155
  - **`NYLON12_WHITE_FL` is a new `material_class`** (FormLabs Nylon 12 White SLS control, tested 2026-07-23, no `batch_label`/`sample_id`, no Database FK) — a second FormLabs reference material alongside `PA12GF_FL`, unfilled/white nylon rather than glass-filled. Per user instruction it's excluded from the cluster/batch-averages figures and rendered on its own (`{standard}_nylon12white_control.png`, see `scripts/plots/_lib.py`'s `NYLON_CONTROLS`). **D638 (tensile) `tensile_nylon12white_fl.xlsx` is a raw load/extension export with no gauge-length scalar in the file** — unlike D790 there's no chord-formula fallback for tensile, so strain/stress can't be derived from geometry alone. User confirmed the test used a 25mm-starting-length extensometer, so `31_2026_07_23_tensile_nylon12white_fl.py` sets `gauge_length_mm: 25` explicitly and `build_row_from_xlsx` derives strain = extension/gauge_length, stress = load/area from that (see the `gauge_length_mm` session key, added for this case — `geometry.gauge_length_mm` on xlsx_only rows is null unless a session declares it). D790 (flex) rows derive normally since flexural strain/stress only need width/thickness. **The D638 curves are cut at their stress peak for plotting only** (`VERTICAL_BREAK_MATERIALS` in `scripts/plots/_lib.py`) — past peak, the raw trace continues as extension keeps increasing after the specimen separates while load reads ~0, and with few points sampled through the break itself this drew as a misleading diagonal line back to zero rather than the near-vertical drop a real break shows. Per user instruction, each figure applies this differently: `01_controls.py`'s raw-curve Nylon 12 White figure uses `vertical_break_at_peak` (cuts at peak, appends a point at zero stress/same strain so it plots as a vertical drop, matching the other SLS batches' visual convention); `02_batch_averages.py`'s mean ± SD figure now trims **every** specimen at its peak inside `group_average` (via `truncate_at_peak`) so no fracture branch — Nylon's included — reaches the averaging grid (this replaced the old per-Nylon special-case). Both `vertical_break_at_peak` and `truncate_at_peak` are applied by the calling code, not baked into `load_standard`, since the figures need different treatments. Either way this only affects what gets plotted — the underlying JSONL `curves.strain`/`curves.stress_pa` arrays are untouched (full raw trace still there for anyone querying the dataset directly). D790 Nylon 12 White isn't affected — its curves don't show this artifact.
156
 
157
  ## Running the extract
 
100
  30_2026_07_23_flex_n.py # Batch N flex — xlsx_only
101
  31_2026_07_23_tensile_nylon12white_fl.py # FormLabs Nylon 12 White tensile control — xlsx_only
102
  32_2026_07_23_flex_nylon12white_fl.py # FormLabs Nylon 12 White flex control — xlsx_only
103
+ 33_2026_08_03_tensile_nylon11_batch1.py # Batch O tensile, Nylon 11, Type IV (O10-O13) — xlsx_only
104
+ 34_2026_08_03_tensile_nylon11_batch2.py # Batch P tensile, Nylon 11, Type IV (P1-P6,P8-P12) — xlsx_only
105
+ 35_2026_08_03_flex_nylon11_batch2.py # Batch P flex, Nylon 11 (P1-P9) — xlsx_only
106
 
107
  data/
108
  D638/ # one JSONL per specimen (HF glob: data/D638/*.jsonl)
109
+ A1.jsonl ... P12.jsonl # SLS specimens, named by sample_id
110
  PLA_TSR6.jsonl ... NYLON12_WHITE_FL_Sheet5.jsonl # non-SLS controls (no sample_id)
111
  D790/
112
+ C1.jsonl ... P9.jsonl # SLS specimens, named by sample_id
113
  ```
114
 
115
  ## File format notes — TestWorks 4.1 output
 
146
 
147
  ## Current state
148
 
149
+ - `D638` config — 118 rows: 102 SLS across batches A-P (batch counts: A5 B5 C7 D5 E5 F5 G5 H3 I5 J4 J_MB5 K5 L6 M17 N5 O4 P11) + 3 PLA + 3 PETG + 5 FormLabs PA12GF + 5 FormLabs Nylon 12 White.
150
+ - `D790` config — 90 rows: 80 SLS across batches C-P (batch counts: C9 D8 E10 F9 G4 H5 I5 J2 J_MB2 K3 L4 M5 N5 P9) + 5 FormLabs PA12GF + 5 FormLabs Nylon 12 White.
151
+ - **Batches K-P have `db_print_date=None`** (print jobs not yet backfilled into Database) — SLS rows through J/J_MB have Database FKs (2026-07-12 backfill: E ← 2026-06-07 (same as D), F ← 2026-06-13, G ← 2026-06-09, H ← 2026-06-24, I ← 2026-06-25, J/J_MB ← 2026-06-27 (`D790 and D638 and other objects`)); K, L, M, N, O, P still need the same treatment once their print jobs land.
152
  - **`_lib.py` disambiguates same-date jobs by STL content.** Two 2026-06-27 prints share a date in Database; `resolve_database_fk` picks the one whose object list contains the standard's STL needle (`d638` / `d790`). Same fix will apply to any future same-date collision (e.g. 06-29 already has two jobs, though no ASTM specimens map there yet).
153
+ - Total: 208 specimens, produced by 35 per-session scripts (some date folders — 2026_06_10, 2026_06_30, 2026_07_21 — contain more than one Test project/batch/specimen type).
154
  - Batch I flex is missing TSR4 (excluded: `test_end_reason` is "Test Stopped", not a detected break) — sample_ids I1-I5 map to TSR{1,2,3,5,6}.
155
  - Batch H's 5 flex rows are `xlsx_only` (no raw TestRuns folder survived — see architectural decisions above); Batches K, L, M, N are `xlsx_only` too (no TestRuns/h5 handed off for those sessions at all, not just one project overwriting another) — every other row has full h5-derived curves.
156
  - **Batch J / J_MB (2026-07-06 print, tested 07/06 and 07/08) is the first split-batch label.** Both are the same physical print batch; `J` specimens were tested as-printed, `J_MB` specimens were media blasted post-print before testing. This deviates from the single-letter `batch_label` convention (see architectural decisions above) — deliberately, per user instruction, to keep the surface-treatment distinction visible without adding a new schema field. If more media-blast-vs-not comparisons get added, consider promoting this to a real `surface_treatment` field instead of continuing to overload `batch_label`.
157
  - **Batch M tensile (D638) is the first batch mixing two ASTM specimen types.** 5 Type I dogbones (`tensile_m.xlsx`, sample_ids M1-M5) plus 12 Type IV narrow-section specimens from the same print (`tensile_m_t4.xlsx`, M6-M17, `astm.type = "Type IV"`) — see `26_2026_07_21_tensile_m.py` / `27_2026_07_21_tensile_m_type4.py`, which share `batch_label="M"` and continue sample numbering via `process_session`'s `seq_start`. Per user instruction the Type IV specimens get their own figure (`assets/D638_type_iv.png`) rather than sharing the cluster/batch-averages/detail figures with the rest of Batch M — `TYPE_LINESTYLES` in `scripts/plots/_lib.py` flags which ASTM types get this treatment, and `02_batch_averages.py`/`03_batch_clusters.py`/`04_batch_details.py` all exclude them accordingly (different gauge geometry, not comparable to Type I). Within that dedicated figure, each of the 12 specimens gets its own labeled curve (`render_type_iv` in `01_controls.py`) rather than one grouped legend entry — ordered by `specimen_index` (= xlsx sheet order = physical test order) and labeled per `TYPE_IV_LABELS = [1,2,3,4,5,6,8,9,10,11,13,14]`, a user-supplied numbering with intentional gaps at 7 and 12 (specimen numbers that exist in the lab's own record-keeping but aren't part of this xlsx export).
158
+ - **Batches O and P (2026-08-03) are the first use of Nylon 11 SLS powder.** Two separate prints (`material_class` stays `"SLS"` — powder identity isn't a schema field, so it's flagged in each row's `notes` instead), both ASTM D638 Type IV only; Batch P also has D790 flex specimens. xlsx export only (no TestRuns/h5), same as Batches K-N. Two mechanism changes landed to support this session:
159
+ - **`read_xlsx_scalars`/`read_xlsx_curve` now resolve a sheet by its own name (`"Sheet{n}"`), not tab position** (`_resolve_sheet_name` in `_lib.py`) — `nylon11_batch1.xlsx`'s tabs are physically reordered (Sheet1, Sheet4, Sheet2, Sheet3), which broke the old position-based lookup. No-op for every prior session, whose tabs already happened to be in order.
160
+ - **`process_session`'s `test_runs` tuples can now take an optional 4th element: an explicit sample number**, overriding the usual auto-increment. Batch O's lab records number its 4 specimens 10-13 (not 1-4); Batch P's tensile skips lab number 7 entirely (its own xlsx sheet 7 is annotated "SAMPLE 8"), giving sample_ids P1-P6, P8-P12.
161
+ - Being Type IV, O/P are excluded from the cluster/batch-average figures same as Batch M's Type IV (`TYPE_LINESTYLES`), but — unlike Batch M's Type IV, which stays in `01_controls.py`'s combined `assets/D638_type_iv.png` — they get normal standalone per-batch figures from `04_batch_details.py` (`assets/batches/D638_O.png`, `D638_P.png`, `D790_P.png`), since they're not a geometry variant of an existing batch's Type I specimens the way Batch M's is. New `TYPE_IV_DEDICATED_BATCHES = {"M"}` in `scripts/plots/_lib.py` scopes the old blanket Type IV exclusion in `04`'s `group_key` (and `01_controls.py`'s `is_type_variant`) to just Batch M, letting any other Type IV batch fall through to the normal per-batch treatment.
162
  - **`NYLON12_WHITE_FL` is a new `material_class`** (FormLabs Nylon 12 White SLS control, tested 2026-07-23, no `batch_label`/`sample_id`, no Database FK) — a second FormLabs reference material alongside `PA12GF_FL`, unfilled/white nylon rather than glass-filled. Per user instruction it's excluded from the cluster/batch-averages figures and rendered on its own (`{standard}_nylon12white_control.png`, see `scripts/plots/_lib.py`'s `NYLON_CONTROLS`). **D638 (tensile) `tensile_nylon12white_fl.xlsx` is a raw load/extension export with no gauge-length scalar in the file** — unlike D790 there's no chord-formula fallback for tensile, so strain/stress can't be derived from geometry alone. User confirmed the test used a 25mm-starting-length extensometer, so `31_2026_07_23_tensile_nylon12white_fl.py` sets `gauge_length_mm: 25` explicitly and `build_row_from_xlsx` derives strain = extension/gauge_length, stress = load/area from that (see the `gauge_length_mm` session key, added for this case — `geometry.gauge_length_mm` on xlsx_only rows is null unless a session declares it). D790 (flex) rows derive normally since flexural strain/stress only need width/thickness. **The D638 curves are cut at their stress peak for plotting only** (`VERTICAL_BREAK_MATERIALS` in `scripts/plots/_lib.py`) — past peak, the raw trace continues as extension keeps increasing after the specimen separates while load reads ~0, and with few points sampled through the break itself this drew as a misleading diagonal line back to zero rather than the near-vertical drop a real break shows. Per user instruction, each figure applies this differently: `01_controls.py`'s raw-curve Nylon 12 White figure uses `vertical_break_at_peak` (cuts at peak, appends a point at zero stress/same strain so it plots as a vertical drop, matching the other SLS batches' visual convention); `02_batch_averages.py`'s mean ± SD figure now trims **every** specimen at its peak inside `group_average` (via `truncate_at_peak`) so no fracture branch — Nylon's included — reaches the averaging grid (this replaced the old per-Nylon special-case). Both `vertical_break_at_peak` and `truncate_at_peak` are applied by the calling code, not baked into `load_standard`, since the figures need different treatments. Either way this only affects what gets plotted — the underlying JSONL `curves.strain`/`curves.stress_pa` arrays are untouched (full raw trace still there for anyone querying the dataset directly). D790 Nylon 12 White isn't affected — its curves don't show this artifact.
163
 
164
  ## Running the extract
README.md CHANGED
@@ -105,12 +105,12 @@ Regenerate with `uv run scripts/plots/02_batch_averages.py`.
105
 
106
  | Config | Description | Files |
107
  |---|---|---|
108
- | `D638` (default) | Tensile specimens (ASTM D638 Type I, plus 12 Type IV specimens in batch M). 87 SLS (batches A–N) + 3 PLA + 3 PETG + 5 FormLabs PA12GF + 5 FormLabs Nylon 12 White = 103 rows. Batches A–J/J_MB have Database FKs; K–N don't yet (print jobs not backfilled). | `data/D638/*.jsonl` (one row per file) |
109
- | `D790` | Three-point flex specimens (ASTM D790 Procedure A). 71 SLS rows (batches C–N) + 5 FormLabs PA12GF + 5 FormLabs Nylon 12 White = 81 rows. Batches C–J/J_MB have Database FKs; K–N don't yet. | `data/D790/*.jsonl` (one row per file) |
110
 
111
  One JSONL file per specimen — SLS rows are named after their `sample_id` (e.g. `data/D638/A1.jsonl`, `data/D790/E10.jsonl`); non-SLS controls use `{material}_TSR{n}.jsonl` (e.g. `data/D638/PLA_TSR6.jsonl`, `data/D790/PA12GF_FL_TSR1.jsonl`). Both configs share the same row schema and are produced by the per-session scripts under `scripts/specimens/`.
112
 
113
- Specimens are labeled with a `sample_id` of the form `{batch_label}{seq}` (e.g. `A1`, `C7`), where the batch label identifies the print batch they came from. Batch labels are usually a single letter, but `J` / `J_MB` are the same 2026-07-06 print batch split by post-processing: `J` specimens were tested as-printed, `J_MB` specimens were media blasted before testing. The same `sample_id` may appear in both configs — `C1` in `D638` and `C1` in `D790` are **different physical specimens** that came from the same Batch C print.
114
 
115
  ## Source Layout
116
 
@@ -164,10 +164,13 @@ Test sessions covered:
164
  | `2026_07_23/flex/` | 5 | D790 | N | not yet in Database |
165
  | `2026_07_23/tensile/` (`tensile_nylon12white_fl.xlsx`) | 5 (NYLON12_WHITE_FL) | D638 | — (control) | n/a — benchtop comparison material |
166
  | `2026_07_23/flex/` (`flex_nylon12white_fl.xlsx`) | 5 (NYLON12_WHITE_FL) | D790 | — (control) | n/a — benchtop comparison material |
 
 
 
167
 
168
  TSR11 in `Batch E 3pt test/` exists on disk but has empty `Data/` (aborted run, no DAQ scans) and no corresponding xlsx sheet — it is excluded from the JSONL. TSR4 in Batch I flex (`Flex 6-30/`) is excluded for a similar reason: `test_end_reason` is "Test Stopped" rather than a detected break.
169
 
170
- Batches K, L, M, and N (2026-07-15 through 2026-07-23) have no raw `TestRuns/`/h5 folders at all — only TestWorks xlsx exports were handed off, so all of these rows are `xlsx_only` (see `scripts/specimens/_lib.py`'s `build_row_from_xlsx`). Batch M's 12 Type IV specimens are a narrow-section ASTM D638 geometry (6mm × 4.15mm vs Type I's 12.8mm × 3.1mm) from the same print as its 5 Type I specimens — same `batch_label`, distinguished by `astm.type`. The FormLabs Nylon 12 White tensile control's xlsx export is a raw load/extension curve with no gauge length in the file — `strain`/`stress_pa` are derived using a user-confirmed 25mm extensometer gauge length declared in the script itself (see Composite stress–strain above); its flex counterpart derives normally via the D790 chord formulas.
171
 
172
  Batch H's 5 flex specimens (`2026_06_30/Flex 6-30/`) don't have a raw TestRuns folder — it looks like it was overwritten when the Batch I TestWorks project reused the same default `TST1.Test` name in the same directory. `flex_h_6.30.xlsx` is the only surviving record, so those 5 rows are built from that xlsx export alone: the raw load/extension curve (`curves.load_n`/`curves.extension_m`) comes from its embedded columns, but `curves.strain`/`curves.stress_pa` are empty and several `metrics` fields (`modulus_pa`, `strain_at_peak`, `strain_at_yield`, etc.) are null, since deriving them requires the support span, which this export doesn't surface. See each row's `notes` field.
173
 
 
105
 
106
  | Config | Description | Files |
107
  |---|---|---|
108
+ | `D638` (default) | Tensile specimens (ASTM D638 Type I, plus 12 Type IV specimens in batch M and Type IV Nylon 11 batches O/P). 102 SLS (batches A–P) + 3 PLA + 3 PETG + 5 FormLabs PA12GF + 5 FormLabs Nylon 12 White = 118 rows. Batches A–J/J_MB have Database FKs; K–P don't yet (print jobs not backfilled). | `data/D638/*.jsonl` (one row per file) |
109
+ | `D790` | Three-point flex specimens (ASTM D790 Procedure A). 80 SLS rows (batches C–P) + 5 FormLabs PA12GF + 5 FormLabs Nylon 12 White = 90 rows. Batches C–J/J_MB have Database FKs; K–P don't yet. | `data/D790/*.jsonl` (one row per file) |
110
 
111
  One JSONL file per specimen — SLS rows are named after their `sample_id` (e.g. `data/D638/A1.jsonl`, `data/D790/E10.jsonl`); non-SLS controls use `{material}_TSR{n}.jsonl` (e.g. `data/D638/PLA_TSR6.jsonl`, `data/D790/PA12GF_FL_TSR1.jsonl`). Both configs share the same row schema and are produced by the per-session scripts under `scripts/specimens/`.
112
 
113
+ Specimens are labeled with a `sample_id` of the form `{batch_label}{seq}` (e.g. `A1`, `C7`), where the batch label identifies the print batch they came from. Batch labels are usually a single letter, but `J` / `J_MB` are the same 2026-07-06 print batch split by post-processing: `J` specimens were tested as-printed, `J_MB` specimens were media blasted before testing. The same `sample_id` may appear in both configs — `C1` in `D638` and `C1` in `D790` are **different physical specimens** that came from the same Batch C print. Batches `O` and `P` (2026-08-03) are the first use of Nylon 11 SLS powder in this dataset — two separate prints, tested only as ASTM D638 Type IV (Batch P also has D790 flex). Their `seq` follows each batch's own lab specimen numbering rather than starting at 1: Batch O is `O10`-`O13`, and Batch P's D638 numbering skips `P7` (the xlsx export's own Test Run 7 sheet is labeled "SAMPLE 8").
114
 
115
  ## Source Layout
116
 
 
164
  | `2026_07_23/flex/` | 5 | D790 | N | not yet in Database |
165
  | `2026_07_23/tensile/` (`tensile_nylon12white_fl.xlsx`) | 5 (NYLON12_WHITE_FL) | D638 | — (control) | n/a — benchtop comparison material |
166
  | `2026_07_23/flex/` (`flex_nylon12white_fl.xlsx`) | 5 (NYLON12_WHITE_FL) | D790 | — (control) | n/a — benchtop comparison material |
167
+ | `2026_08_03/Tensile/` (`nylon11_batch1.xlsx`, Type IV) | 4 | D638 | O | not yet in Database |
168
+ | `2026_08_03/Tensile/` (`nylon11_batch2.xlsx`, Type IV) | 11 | D638 | P | not yet in Database |
169
+ | `2026_08_03/Flex/` (`nylon11_flex2.xlsx`) | 9 | D790 | P | not yet in Database |
170
 
171
  TSR11 in `Batch E 3pt test/` exists on disk but has empty `Data/` (aborted run, no DAQ scans) and no corresponding xlsx sheet — it is excluded from the JSONL. TSR4 in Batch I flex (`Flex 6-30/`) is excluded for a similar reason: `test_end_reason` is "Test Stopped" rather than a detected break.
172
 
173
+ Batches K, L, M, N, O, and P (2026-07-15 through 2026-08-03) have no raw `TestRuns/`/h5 folders at all — only TestWorks xlsx exports were handed off, so all of these rows are `xlsx_only` (see `scripts/specimens/_lib.py`'s `build_row_from_xlsx`). Batch M's 12 Type IV specimens are a narrow-section ASTM D638 geometry (6mm × 4.15mm vs Type I's 12.8mm × 3.1mm) from the same print as its 5 Type I specimens — same `batch_label`, distinguished by `astm.type`. Batches O and P are entirely Type IV as well, but of a different SLS powder (Nylon 11, first use in this dataset — see `notes` on their rows) rather than a geometry variant of an existing batch, so they're excluded from the batch-average/cluster figures the same way Type IV rows always are, but get their own per-batch detail figures rather than sharing Batch M's combined Type IV figure (see `scripts/plots/_lib.py`'s `TYPE_IV_DEDICATED_BATCHES`). The FormLabs Nylon 12 White tensile control's xlsx export is a raw load/extension curve with no gauge length in the file — `strain`/`stress_pa` are derived using a user-confirmed 25mm extensometer gauge length declared in the script itself (see Composite stress–strain above); its flex counterpart derives normally via the D790 chord formulas.
174
 
175
  Batch H's 5 flex specimens (`2026_06_30/Flex 6-30/`) don't have a raw TestRuns folder — it looks like it was overwritten when the Batch I TestWorks project reused the same default `TST1.Test` name in the same directory. `flex_h_6.30.xlsx` is the only surviving record, so those 5 rows are built from that xlsx export alone: the raw load/extension curve (`curves.load_n`/`curves.extension_m`) comes from its embedded columns, but `curves.strain`/`curves.stress_pa` are empty and several `metrics` fields (`modulus_pa`, `strain_at_peak`, `strain_at_yield`, etc.) are null, since deriving them requires the support span, which this export doesn't surface. See each row's `notes` field.
176
 
assets/D638_batch_averages.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:964b5fdf7812c8b5974e606c3bfe34f9ab9ea19e12af7aeae6e1dcd815fff7ef
3
- size 109546
 
 
 
 
assets/D638_batch_averages.png DELETED

Git LFS Details

  • SHA256: d095d6fdb61d7cd7d56a5d56feae11bf4e5f15779476c08b22d1b065d87cdf39
  • Pointer size: 132 Bytes
  • Size of remote file: 3.46 MB
assets/D638_batch_clusters.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5d99ebb0bca3b6cad01ff6d6608f5f1cda453d5a9d243d9b17f400faf736895e
3
- size 46567
 
 
 
 
assets/D638_batch_clusters.png DELETED

Git LFS Details

  • SHA256: 00ad23508d17b41ac9e716b69b928fe2f7f50e78793fa3200fd31c207eca1ce5
  • Pointer size: 132 Bytes
  • Size of remote file: 1.99 MB
assets/D638_controls.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7c6fed376b3778d225df1972791c0bacf04147a19771cb41282aabffd59f3b4b
3
- size 54296
 
 
 
 
assets/D638_controls.png DELETED

Git LFS Details

  • SHA256: fa6e610630cb3bddf121becc18c3e6be05561a738b97ad33647781230733c2ae
  • Pointer size: 132 Bytes
  • Size of remote file: 1.17 MB
assets/D638_nylon12white_average.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:64939a0e9cb7dc6e7c9efd4087808a1ab0f63d8b217ea7fc470147f4849119bc
3
- size 31885
 
 
 
 
assets/D638_nylon12white_average.png DELETED

Git LFS Details

  • SHA256: 7eb58ef32d112c365eea1ca8f6ee00c2797b36cf40cb6ccd3e31958f88ab5e25
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
assets/D638_nylon12white_control.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6aa38b292c535e9172042ee839d4ee638a88bd647204e95c87b4e2c7133bc37f
3
- size 43082
 
 
 
 
assets/D638_nylon12white_control.png DELETED

Git LFS Details

  • SHA256: 2dc262396cf490261e7afbbb266925587a437c7bd6bb6333a2ca4e97cd3a3f3a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.11 MB
assets/D638_type_iv.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f3ca965b4ebfea8bba488596099c98a8e7a71fcc02af65591d776c8df6279ed9
3
- size 45215
 
 
 
 
assets/D638_type_iv.png DELETED

Git LFS Details

  • SHA256: 5d4ba1b6d3546c645a2772b7e4a6931c4fe1df413fc153e0e13a20694529c34b
  • Pointer size: 132 Bytes
  • Size of remote file: 2.23 MB
assets/D790_batch_averages.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6ad9dcd3009391aa3d5b379d4746726112e64b73ab30fbb494d09bb6d46db73b
3
- size 100856
 
 
 
 
assets/D790_batch_averages.png DELETED

Git LFS Details

  • SHA256: a8f0e81321a92f4a46e980dab77456ddf9525e4fff852356157eecc0c7eccc15
  • Pointer size: 132 Bytes
  • Size of remote file: 3.1 MB
assets/D790_batch_clusters.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d7e6ba449ff12330853d750729627cecfc04f50a258cbe7228a1adb419269c61
3
- size 47701
 
 
 
 
assets/D790_batch_clusters.png DELETED

Git LFS Details

  • SHA256: b32ad0e1eb9f9b0aed2eb663c9c885f2f83f2c4042202de2c05b5154186401ba
  • Pointer size: 132 Bytes
  • Size of remote file: 2.66 MB
assets/D790_nylon12white_average.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:911623a0b721576cc26ff095d721223b5ecb459b52ea9c488be63b06e8fbbae2
3
- size 31296
 
 
 
 
assets/D790_nylon12white_average.png DELETED

Git LFS Details

  • SHA256: bdbd711007a3c5fbdb6ac904ff78592ea9b89da5ee1c9ac2509d185e5930881a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.2 MB
assets/D790_nylon12white_control.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:87e006f77cd96e9944ff883e8bbee51c704cfb65b588a5ec7d50b26f9c7d244b
3
- size 158366
 
 
 
 
assets/D790_nylon12white_control.png DELETED

Git LFS Details

  • SHA256: f087b9c828bf3b832e814a9b05ba1709966a4b6ffa0c7789af5630e5ecb325fe
  • Pointer size: 132 Bytes
  • Size of remote file: 1.46 MB
assets/batches/D638_A.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c874d6311da059f31db9a638e417ac1a116c554282ca0da2a69d11f447aa3c8
3
- size 32527
 
 
 
 
assets/batches/D638_A.png DELETED

Git LFS Details

  • SHA256: 1fe972355e69caf022a377c8fe3a246ef209c2ed99729408f024f419dea5fb23
  • Pointer size: 132 Bytes
  • Size of remote file: 1.39 MB
assets/batches/D638_B.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c948696e4adcd0fc81b8936409a9b132cb22d7da1978f499ecc5287866419516
3
- size 30062
 
 
 
 
assets/batches/D638_B.png DELETED

Git LFS Details

  • SHA256: 9a4c130c44ad284c5d7a1997a6495bb8efffcee32db7e40bf5a4fb3c207c7818
  • Pointer size: 132 Bytes
  • Size of remote file: 1.3 MB
assets/batches/D638_C.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e6ddf3e6057c418b4c3806c25ebea0a3ea44bd224c98fd453b029d50a07fd0d3
3
- size 36063
 
 
 
 
assets/batches/D638_C.png DELETED

Git LFS Details

  • SHA256: d33f20b515154d9c707694c17fa1d0b040c48e92e977987b80ce66836d13a18f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.66 MB
assets/batches/D638_D.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7c49d146a525fa623f7bdd169de5b32b40f2dfb393a219ca043917cd644f9482
3
- size 35890
 
 
 
 
assets/batches/D638_D.png DELETED

Git LFS Details

  • SHA256: b5cbcfba8d11d740a6252b9f81c0da7d28ba5c2dd0002f60004e78c0a40a0b4b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.3 MB
assets/batches/D638_E.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:18db19e5512cc30982101c93ca924bc823c86cefe7727afcbd046fb95afed130
3
- size 38483
 
 
 
 
assets/batches/D638_E.png DELETED

Git LFS Details

  • SHA256: 8941464d993030662efc9a2e0c5f540f2dfb218ec9af9fc56843c0addd916955
  • Pointer size: 132 Bytes
  • Size of remote file: 1.23 MB
assets/batches/D638_F.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1efaaf603a0ccb4146bf59468e68fb9d64c476b98812772e655d590d3e15d1dc
3
- size 32853
 
 
 
 
assets/batches/D638_F.png DELETED

Git LFS Details

  • SHA256: 10871511de102cc324020e1b82d19101f13454616ec2f20118aaca51b44256aa
  • Pointer size: 132 Bytes
  • Size of remote file: 1.16 MB
assets/batches/D638_G.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:043d0e43590342fd4acca6427f68810dfcec898149a7d0c52bb1fee9f5e4c3e5
3
- size 34121
 
 
 
 
assets/batches/D638_G.png DELETED

Git LFS Details

  • SHA256: cba68a88b0e4e33787be420e02262564639516a54210f4f9979203bbc1c3d4c9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.33 MB
assets/batches/D638_H.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:512d5d23e1afef741c245f867c2f4eac0fdab10df23ea1aec04cc7de407983ec
3
- size 29446
 
 
 
 
assets/batches/D638_H.png DELETED

Git LFS Details

  • SHA256: f525c2cd222df2192cf6cb055b287d0b4d0b9aec273777bba45dffc5924e0b10
  • Pointer size: 132 Bytes
  • Size of remote file: 1 MB
assets/batches/D638_I.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:eafbadee864048b53b50016c98b6aa7701fc055bf2ef7ecef57bb0bc02cc41a9
3
- size 32509
 
 
 
 
assets/batches/D638_I.png DELETED

Git LFS Details

  • SHA256: efca2eb8b2d9a36994d11a515b4b1b76d496345d29eedbf999a0b79ca64b6470
  • Pointer size: 132 Bytes
  • Size of remote file: 1.28 MB
assets/batches/D638_J.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7f8a60ff681f252e152e0d1558eb90aa8f6a6a96d9fec2177065140237c1e052
3
- size 30918
 
 
 
 
assets/batches/D638_J.png DELETED

Git LFS Details

  • SHA256: a4244576b2a5f2b6b369f39315872a9df22b6ccb30ca40ca2178fb0a305dcebd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.14 MB
assets/batches/D638_J_MB.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:05bc3d9ffd40510f89b88e8b87808033b98aeeb8efd3183e8703bf5711aeb43a
3
- size 34970
 
 
 
 
assets/batches/D638_J_MB.png DELETED

Git LFS Details

  • SHA256: 5dde5b840cfb5cacf47092db24b76d92a7892693cf87beea212387ff016cdbd8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.39 MB
assets/batches/D638_K.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b1999361c22b7886788e34f1ce0af3696de291e61959ff16137c4bd4d992e698
3
- size 33535
 
 
 
 
assets/batches/D638_K.png DELETED

Git LFS Details

  • SHA256: 6ceb58681e91b2be971edfd840e57e355b08282d60ac7248e1f2d513c8346013
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
assets/batches/D638_L.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6a44fab8f22030c306c221633495ac7db69ecde91d4d2ea951e570776e4c0725
3
- size 34777
 
 
 
 
assets/batches/D638_L.png DELETED

Git LFS Details

  • SHA256: b86906d40d2faa70eca8f62702609d27c41b1dfa971914a13eea7de3d216790d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
assets/batches/D638_M.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e335b7b5cda22ccf91d54639af0e5f499785a12c681828ede89d5b8e8ccc7954
3
- size 33717