feat(schema): mechanical sub-table additions (#151)#189
Merged
Conversation
Pure additive — no backwards-compat concern. New optional fields on
MechanicalProperties:
- flexural_modulus / flexural_strength (MPa) — plastics & ceramics
datasheets
- fatigue_limit (MPa) — cyclic gantry loads
- cti (V) — PCB substrate selection
- cte_anisotropic = [a, b, c] (ppm/K, list-of-3) — non-cubic crystals
like sapphire/quartz where direction-dependent thermal expansion
matters
- creep_rate = [{temp_K, stress_MPa, strain_per_hr}, ...] — sparse
creep measurements for cryostat long-term load planning. Stored as
a plain list[dict] (no special dataclass — points are sparse and
heterogeneous; consumers index by temp/stress as needed)
Plus matching `*_qty` Pint-Quantity accessors for the 4 new scalar
fields.
Tests: tests/test_mechanical_fields.py (8 tests) + full corpus
regression. 552 passed, 11 skipped, no regressions.
Closes #151
This was referenced May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pure additive — 5 new optional fields on
MechanicalProperties. No backwards-compat concern, no API surface change.flexural_modulusflexural_strengthfatigue_limitcticte_anisotropic[a, b, c]for non-cubic crystals (sapphire, quartz)creep_rate[{temp_K, stress_MPa, strain_per_hr}, ...]sparse points for cryostat long-term loadsPlus matching
*_qtyPint-Quantity accessors for the 4 new scalar fields.creep_rateis stored as a plainlist[dict]rather than a new dataclass — points are sparse and heterogeneous; consumers index by temp/stress as needed. Promotable to a structured type later if a real consumer surfaces.Test plan
pytest tests/test_mechanical_fields.py— 8 tests passruff checkclean,ruff formatno diffCloses #151