ppak10 commited on
Commit
8692359
·
1 Parent(s): 386cb7b

Updates figures

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +2 -0
  2. CLAUDE.md +9 -5
  3. README.md +30 -6
  4. assets/{D638_composite.png → D638_batch_averages.pdf} +2 -2
  5. assets/D638_batch_averages.png +2 -2
  6. assets/{D790_composite.png → D638_batch_clusters.pdf} +2 -2
  7. assets/D638_batch_clusters.png +3 -0
  8. assets/D638_controls.pdf +3 -0
  9. assets/D638_controls.png +2 -2
  10. assets/D638_nylon12white_average.pdf +3 -0
  11. assets/D638_nylon12white_average.png +2 -2
  12. assets/D638_nylon12white_control.pdf +3 -0
  13. assets/D638_nylon12white_control.png +2 -2
  14. assets/D638_type_iv.pdf +3 -0
  15. assets/D638_type_iv.png +2 -2
  16. assets/D790_batch_averages.pdf +3 -0
  17. assets/D790_batch_averages.png +2 -2
  18. assets/D790_batch_clusters.pdf +3 -0
  19. assets/D790_batch_clusters.png +3 -0
  20. assets/D790_nylon12white_average.pdf +3 -0
  21. assets/D790_nylon12white_average.png +2 -2
  22. assets/D790_nylon12white_control.pdf +3 -0
  23. assets/D790_nylon12white_control.png +2 -2
  24. assets/batches/D638_A.pdf +3 -0
  25. assets/batches/D638_A.png +3 -0
  26. assets/batches/D638_B.pdf +3 -0
  27. assets/batches/D638_B.png +3 -0
  28. assets/batches/D638_C.pdf +3 -0
  29. assets/batches/D638_C.png +3 -0
  30. assets/batches/D638_D.pdf +3 -0
  31. assets/batches/D638_D.png +3 -0
  32. assets/batches/D638_E.pdf +3 -0
  33. assets/batches/D638_E.png +3 -0
  34. assets/batches/D638_F.pdf +3 -0
  35. assets/batches/D638_F.png +3 -0
  36. assets/batches/D638_G.pdf +3 -0
  37. assets/batches/D638_G.png +3 -0
  38. assets/batches/D638_H.pdf +3 -0
  39. assets/batches/D638_H.png +3 -0
  40. assets/batches/D638_I.pdf +3 -0
  41. assets/batches/D638_I.png +3 -0
  42. assets/batches/D638_J.pdf +3 -0
  43. assets/batches/D638_J.png +3 -0
  44. assets/batches/D638_J_MB.pdf +3 -0
  45. assets/batches/D638_J_MB.png +3 -0
  46. assets/batches/D638_K.pdf +3 -0
  47. assets/batches/D638_K.png +3 -0
  48. assets/batches/D638_L.pdf +3 -0
  49. assets/batches/D638_L.png +3 -0
  50. assets/batches/D638_M.pdf +3 -0
.gitattributes CHANGED
@@ -58,6 +58,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
61
  # Excel
62
  *.xlsx filter=lfs diff=lfs merge=lfs -text
63
  *.xls filter=lfs diff=lfs merge=lfs -text
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ # Vector figure exports
62
+ *.pdf filter=lfs diff=lfs merge=lfs -text
63
  # Excel
64
  *.xlsx filter=lfs diff=lfs merge=lfs -text
65
  *.xls filter=lfs diff=lfs merge=lfs -text
CLAUDE.md CHANGED
@@ -22,7 +22,7 @@ this file uncritically.
22
  - **`notes` field on rows is new** (see `_lib.py:223`). Currently only the Formlabs tensile session sets it ("Printed vertically."); other rows get empty string. Not documented in the "Row shape" section below.
23
  - **PA12GF_FL material class is new and not documented.** `material_class` enum below mentions only SLS/PLA/PETG; `PA12GF_FL` (Formlabs PA12 GF reference prints) should be added.
24
 
25
- The composite plots in `assets/` were regenerated and **do** reflect the current data — the Formlabs PA12 GF controls in particular reveal that the Inova Mk1 SLS specimens hit only ~10 MPa tensile vs Formlabs PA12 GF's ~25 MPa for the same nominal material, which is the comparison study these controls were added to enable.
26
 
27
  ## Ecosystem
28
 
@@ -43,7 +43,11 @@ The composite plots in `assets/` were regenerated and **do** reflect the current
43
  - **`notes` is a free-text per-row field** for exceptions that don't fit elsewhere in the schema (e.g. "printed vertically" for FormLabs, or the xlsx-only sourcing caveat for Batch H flex). Empty string when there's nothing to flag.
44
  - **One JSONL file per specimen.** Outputs land under `data/{standard}/{sample_id}.jsonl` (or `data/D638/{material_class}_TSR{n}.jsonl` for non-SLS controls without a sample_id). HF configs glob these via `path: data/D638/*.jsonl`. This keeps git diffs scoped to a single specimen when a row is regenerated and makes it easy to delete or replace individual rows.
45
  - **Domain dependencies, not stdlib-only.** Unlike `Agentic-SLS-Database` (stdlib only), the ETL here needs `h5py`, `openpyxl`, `matplotlib`, and `numpy` (the latter two for `scripts/plots/`). They're declared in `pyproject.toml`. Python 3.13.
46
- - **`scripts/plots/` follows the same shared-lib pattern as `scripts/specimens/`.** `_lib.py` holds `BATCH_COLORS`, `load_specimen`/`load_standard`, and styling helpers shared by `01_composite.py` (raw overlaid curves) and `02_batch_averages.py` (per-batch mean ± 1 SD, SLS-only see its docstring for the interpolation/truncation method and why degenerate curves get dropped per-batch). `02_batch_averages.py`'s banding logic is factored into a reusable `render_bands()`/`grouped_specs()` pair so the same mean ± 1 SD method can target a single group — used for the FormLabs Nylon 12 White control's own figure (`{standard}_nylon12white_average.png`, per user instruction, excluded from the main batch-averages figure for the same reason as `NYLON_CONTROLS` is excluded from the main composite).
 
 
 
 
47
 
48
  ## Directory layout
49
 
@@ -147,8 +151,8 @@ Same TestWorks framework, different schema. Notable renames you have to handle:
147
  - 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}.
148
  - 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.
149
  - **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`.
150
- - **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 main composite/batch-averages figures with the rest of Batch M — `TYPE_LINESTYLES` in `scripts/plots/_lib.py` flags which ASTM types get this treatment, and `01_composite.py`/`02_batch_averages.py` both exclude them from the main figures 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_composite.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).
151
- - **`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 main composite/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_composite.py`'s raw-curve 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 uses `truncate_at_peak` (cuts at peak with no added point a synthetic vertical segment would distort the shared strain grid/averaging, and doesn't make sense for an averaged curve anyway). Both are applied by the calling script, not baked into `load_standard`, since the two 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.
152
 
153
  ## Running the extract
154
 
@@ -175,7 +179,7 @@ uv run scripts/specimens/01_2026_05_26.py
175
  - If a TestRuns folder is missing/overwritten and only an xlsx export survives, set `"xlsx_only": True` instead of `test_folder` — this is a fallback (see architectural decisions above), not something to reach for by default.
176
  4. Run that one script → new files land in `data/{standard}/`.
177
  5. Update the README's "Test sessions covered" table (and the "Current state" section here).
178
- 6. Regenerate the figures: `uv run scripts/plots/01_composite.py && uv run scripts/plots/02_batch_averages.py`. If it's a new batch letter, add a color for it to `BATCH_COLORS` in `scripts/plots/_lib.py` first.
179
 
180
  ## Backfilling batches E–I, J, J_MB
181
 
 
22
  - **`notes` field on rows is new** (see `_lib.py:223`). Currently only the Formlabs tensile session sets it ("Printed vertically."); other rows get empty string. Not documented in the "Row shape" section below.
23
  - **PA12GF_FL material class is new and not documented.** `material_class` enum below mentions only SLS/PLA/PETG; `PA12GF_FL` (Formlabs PA12 GF reference prints) should be added.
24
 
25
+ The figures in `assets/` were regenerated and **do** reflect the current data — the Formlabs PA12 GF reference in particular reveals that the Inova Mk1 SLS specimens hit only ~10 MPa tensile vs Formlabs PA12 GF's ~25 MPa for the same nominal material, which is the comparison study these controls were added to enable. (Note: the plots section below has since been rewritten — the old overlaid "composite" figures were replaced by the batch-cluster overview + per-batch detail figures; see the `scripts/plots/` decision.)
26
 
27
  ## Ecosystem
28
 
 
43
  - **`notes` is a free-text per-row field** for exceptions that don't fit elsewhere in the schema (e.g. "printed vertically" for FormLabs, or the xlsx-only sourcing caveat for Batch H flex). Empty string when there's nothing to flag.
44
  - **One JSONL file per specimen.** Outputs land under `data/{standard}/{sample_id}.jsonl` (or `data/D638/{material_class}_TSR{n}.jsonl` for non-SLS controls without a sample_id). HF configs glob these via `path: data/D638/*.jsonl`. This keeps git diffs scoped to a single specimen when a row is regenerated and makes it easy to delete or replace individual rows.
45
  - **Domain dependencies, not stdlib-only.** Unlike `Agentic-SLS-Database` (stdlib only), the ETL here needs `h5py`, `openpyxl`, `matplotlib`, and `numpy` (the latter two for `scripts/plots/`). They're declared in `pyproject.toml`. Python 3.13.
46
+ - **`scripts/plots/` follows the same shared-lib pattern as `scripts/specimens/`.** `_lib.py` holds the **house style** (`apply_house_style()`/`style_axes()`/`save_figure()` DM Sans from `scripts/plots/fonts/`, framed heavy spines, inward ticks, light dashed grid, dual PNG@1200 + PDF export; ported from the [`AdditiveLLM2-OA`](https://huggingface.co/datasets/ppak10/AdditiveLLM2-OA) figures), the **palette** (`BATCH_COLORS` = an ordered orange ramp gold→deep-brown built around `ACCENT`=`#F97415`, sampled per print chronology from `ORDERED_BATCHES`; `FORMLABS_COLOR` = contrasting blue for the PA12GF reference so it reads as the external benchmark; `MATERIAL_COLORS` for the other controls), and the shared `load_specimen`/`load_standard` readers. Four plot scripts:
47
+ - `01_controls.py` — the broken-out PLA/PETG, FormLabs Nylon 12 White, and Batch M Type IV figures (materials/geometries that don't belong on the batch comparison; `render_type_iv` lives here).
48
+ - `02_batch_averages.py` — per-batch mean ± 1 SD bands (SLS + FormLabs PA12GF). Each specimen is trimmed at its stress peak in `group_average` before interpolation so the fracture branch doesn't spike the band (this superseded the old per-Nylon `truncate_at_peak` special-case — it's now universal). `render_bands()`/`grouped_specs()` also target a single group for the Nylon 12 White `{standard}_nylon12white_average.png`.
49
+ - `03_batch_clusters.py` — the **canonical across-batch overview** (replaced the old overlaid composite, which was unreadable at 76–80 curves). One peak point per specimen `(strain@peak, ultimate strength)` — peak = `max(stress)` over the saved curve, robust to TestWorks' null `PeakStress` — with a covariance-based **±1 SD confidence ellipse** per batch (`confidence_ellipse`; groups with n<3 draw a segment/marker instead).
50
+ - `04_batch_details.py` — one uncluttered stress-strain figure **per batch** under `assets/batches/{standard}_{batch}.png`, each specimen individually colored (tab10) and `sample_id`-keyed, for reading a single batch's curves without cross-batch clutter.
51
 
52
  ## Directory layout
53
 
 
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
158
 
 
179
  - If a TestRuns folder is missing/overwritten and only an xlsx export survives, set `"xlsx_only": True` instead of `test_folder` — this is a fallback (see architectural decisions above), not something to reach for by default.
180
  4. Run that one script → new files land in `data/{standard}/`.
181
  5. Update the README's "Test sessions covered" table (and the "Current state" section here).
182
+ 6. Regenerate the figures: `for f in scripts/plots/0*.py; do uv run "$f"; done` (runs `01_controls.py`, `02_batch_averages.py`, `03_batch_clusters.py`, `04_batch_details.py`). If it's a new batch letter, add it to `ORDERED_BATCHES` in `scripts/plots/_lib.py` first — `BATCH_COLORS` is sampled from the orange ramp by that list's order, so no manual color pick is needed.
183
 
184
  ## Backfilling batches E–I, J, J_MB
185
 
README.md CHANGED
@@ -33,15 +33,39 @@ tensile = load_dataset("ppak10/Agentic-SLS-ASTM", "D638", split="train")
33
  flex = load_dataset("ppak10/Agentic-SLS-ASTM", "D790", split="train")
34
  ```
35
 
36
- ## Composite stress–strain
 
 
 
 
 
 
37
 
38
- Every specimen overlaid on one plot per standard. Colors are batch labels (A–N); solid gray lines are FormLabs PA12GF benchtop controls. Batch M mixes two ASTM D638 specimen types from the same print — its 12 Type IV (narrow-section) specimens are broken out into their own figure (`D638_type_iv.png`) rather than overlaid with its 5 Type I specimens, since the geometries aren't mechanically comparable. PLA/PETG filament controls (D638 only) print at much higher stress and strain than either PA12 material, so they're also broken out into their own figure to keep the main composite readable — same treatment for the FormLabs Nylon 12 White control, which gets its own figure(s) rather than joining the main comparison.
 
 
39
 
40
  | D638 (tensile) | D790 (three-point flex) |
41
  |---|---|
42
- | ![D638 composite](assets/D638_composite.png) | ![D790 composite](assets/D790_composite.png) |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
- PLA/PETG controls (D638 only — D790 has no filament controls):
45
 
46
  ![D638 PLA/PETG controls](assets/D638_controls.png)
47
 
@@ -57,11 +81,11 @@ Batch M Type IV (narrow-section) tensile specimens, D638 only — each of the 12
57
 
58
  ![D638 Batch M Type IV](assets/D638_type_iv.png)
59
 
60
- Regenerate with `uv run scripts/plots/01_composite.py`.
61
 
62
  ## Batch averages (SLS Nylon 12 GF only)
63
 
64
- One mean stress-strain curve per SLS batch, ± 1 sample standard deviation across specimens (error bars), for our own Inova Mk1 SLS Nylon 12 GF prints — PLA/PETG/FormLabs benchtop controls are excluded (they have no `batch_label`). Each specimen's curve is linearly interpolated onto a common strain grid bounded by the *shortest* specimen's max strain in that batch, so every point in the mean is backed by the same specimen count. See `scripts/plots/02_batch_averages.py` for the full averaging method (including why one D790 specimen — a degenerate 3-point curve — is dropped from its batch's average).
65
 
66
  | D638 (tensile) | D790 (three-point flex) |
67
  |---|---|
 
33
  flex = load_dataset("ppak10/Agentic-SLS-ASTM", "D790", split="train")
34
  ```
35
 
36
+ > **Figure style.** All figures share one house style (ported from the
37
+ > [`AdditiveLLM2-OA`](https://huggingface.co/datasets/ppak10/AdditiveLLM2-OA)
38
+ > figures): DM Sans typeface, framed axes with inward ticks, a light dashed
39
+ > grid, and dual PNG (dpi 1200) + vector PDF export. The SLS batches are colored
40
+ > by an ordered **orange ramp** (gold → deep brown, in print chronology, built
41
+ > around `#F97415`); the FormLabs PA12GF benchtop reference is drawn in a
42
+ > contrasting **blue** so it reads clearly as the external benchmark.
43
 
44
+ ## Batch clusters
45
+
46
+ Replaces the old overlaid composite (which, at 76–80 curves, was unreadable). Each specimen collapses to a single point at its stress–strain **peak** — x = strain at peak, y = ultimate strength — and each batch becomes a **±1 SD confidence ellipse** (covariance-based) around its specimens' peak points. This carries the headline ultimate-strength number and shows how tightly each batch clusters, with none of the overlaid-curve clutter. (Peak is derived as `max(stress)` over the saved curve, not read from `PeakStress` — TestWorks often leaves that scalar null for D638 tensile.) Groups with fewer than 3 specimens draw a connecting segment or a bare marker instead of an ellipse.
47
 
48
  | D638 (tensile) | D790 (three-point flex) |
49
  |---|---|
50
+ | ![D638 batch clusters](assets/D638_batch_clusters.png) | ![D790 batch clusters](assets/D790_batch_clusters.png) |
51
+
52
+ Regenerate with `uv run scripts/plots/03_batch_clusters.py`.
53
+
54
+ ## Per-batch detail
55
+
56
+ To read the actual stress–strain curves for one batch without cross-batch clutter, each batch (plus the FormLabs PA12GF reference) gets its own figure under [`assets/batches/`](assets/batches) — `{standard}_{batch}.png` — with each specimen individually colored and keyed by `sample_id` in the legend. Two examples:
57
+
58
+ | D638 Batch C (tensile) | D790 Batch E (flex) |
59
+ |---|---|
60
+ | ![D638 Batch C detail](assets/batches/D638_C.png) | ![D790 Batch E detail](assets/batches/D790_E.png) |
61
+
62
+ Regenerate with `uv run scripts/plots/04_batch_details.py`.
63
+
64
+ ## Broken-out controls & specimen types
65
+
66
+ Materials/geometries that don't belong on the batch comparison get their own axes. PLA/PETG filament controls (D638 only) print at much higher stress/strain than either PA12 material; the FormLabs Nylon 12 White control is a second, distinct reference material; and Batch M's 12 Type IV (narrow-section) tensile specimens have a different gauge geometry than its Type I dogbones.
67
 
68
+ PLA/PETG controls (D638 only — D790 has no filament controls; PLA in blue, PETG in teal):
69
 
70
  ![D638 PLA/PETG controls](assets/D638_controls.png)
71
 
 
81
 
82
  ![D638 Batch M Type IV](assets/D638_type_iv.png)
83
 
84
+ Regenerate with `uv run scripts/plots/01_controls.py`.
85
 
86
  ## Batch averages (SLS Nylon 12 GF only)
87
 
88
+ One mean stress-strain curve per SLS batch, ± 1 sample standard deviation across specimens (shaded band), for our own Inova Mk1 SLS Nylon 12 GF prints plus the FormLabs PA12GF reference (in blue) — PLA/PETG and the Nylon 12 White control are excluded (their own figures). Each specimen is first trimmed at its stress peak (loading branch only), then linearly interpolated onto a common strain grid bounded by the *shortest* specimen's peak strain in that batch, so every point in the mean is backed by the same specimen count and no fracture-branch spike distorts the band. See `scripts/plots/02_batch_averages.py` for the full averaging method (including why one D790 specimen — a degenerate 3-point curve — is dropped from its batch's average).
89
 
90
  | D638 (tensile) | D790 (three-point flex) |
91
  |---|---|
assets/{D638_composite.png → D638_batch_averages.pdf} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:890d23c24028886d86c9a3896eda771d097cfc5ba871514abe38ec159be9d68a
3
- size 314805
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:964b5fdf7812c8b5974e606c3bfe34f9ab9ea19e12af7aeae6e1dcd815fff7ef
3
+ size 109546
assets/D638_batch_averages.png CHANGED

Git LFS Details

  • SHA256: 75c390d76d1117dc43dea873775347eee5dd15610ecdcb382f953a2cbaa80abd
  • Pointer size: 131 Bytes
  • Size of remote file: 252 kB

Git LFS Details

  • SHA256: d095d6fdb61d7cd7d56a5d56feae11bf4e5f15779476c08b22d1b065d87cdf39
  • Pointer size: 132 Bytes
  • Size of remote file: 3.46 MB
assets/{D790_composite.png → D638_batch_clusters.pdf} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:803e0b8645fb3cc3dadc4a61d7c7349524b9022ecf65ff270345a595b9c22ea2
3
- size 513944
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d99ebb0bca3b6cad01ff6d6608f5f1cda453d5a9d243d9b17f400faf736895e
3
+ size 46567
assets/D638_batch_clusters.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: 16f0a1852c83647da88a3b5f972e5c05c87fab2fc6043eeaff9ddb420c4be945
  • Pointer size: 130 Bytes
  • Size of remote file: 90.8 kB

Git LFS Details

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

Git LFS Details

  • SHA256: 23950b4d9d4ba64587d746415e3cbc318608cc00a16aaeb289a237010aa78c37
  • Pointer size: 130 Bytes
  • Size of remote file: 73.8 kB

Git LFS Details

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

Git LFS Details

  • SHA256: d2bade08c10f061a54e9e57b43199f4f2b3171dcb4c68eca93097ebc84a80bee
  • Pointer size: 130 Bytes
  • Size of remote file: 83.9 kB

Git LFS Details

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

Git LFS Details

  • SHA256: 891b039ebcd285de80066b9bfde8db31bcb2c9b0175333e2aeff24d1fbb16331
  • Pointer size: 131 Bytes
  • Size of remote file: 196 kB

Git LFS Details

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

Git LFS Details

  • SHA256: 8cce3c4d304b780d2ee8a6f4460dfaf12015bf3d4d46632e11d54a681600b5c1
  • Pointer size: 131 Bytes
  • Size of remote file: 270 kB

Git LFS Details

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

Git LFS Details

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

Git LFS Details

  • SHA256: a1872bb68df8c3e4125f2bd2c961f0737bf30eddb9ab26b10e764726c98662ba
  • Pointer size: 130 Bytes
  • Size of remote file: 87 kB

Git LFS Details

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

Git LFS Details

  • SHA256: cde362140411b93911f3b1877e17ec3be68d361706aefbc8d515995e3af81ceb
  • Pointer size: 131 Bytes
  • Size of remote file: 112 kB

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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

Git LFS Details

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