Changelog¶
All notable changes to this project are listed here. The format follows Keep a Changelog, and versions follow Semantic Versioning.
Unreleased¶
Project¶
- Issue forms (bug report, protocol or limit correction, feature request, question), a pull request template, a code of conduct and a security policy.
- Test coverage measured in CI (summary of the Python 3.12 test job) and shown as a README badge, published with the documentation site.
0.23.0 - 2026-11-17¶
Added¶
crashmetrics.binout: LS-DYNA binout reader, written from the binary layout of the files (worked out from public binout files and checked against the ASCII files of the same runs; no code of other readers used).read_binout(a run folder, one file or several),Binout:branches,metadata,variables,time,read(one variable over all states),legend,output(any output as theAsciiOutputthe ASCII readers return: rcforc sides, sleout single-sided contacts, spcforc resultants, deforc rotational springs, swforc failure times and jntforc split by joint type handled),glstat(GlobalEnergies),matsum(PartEnergies),to_csv,summary,verify(symbol tables against the records). Single and double precision, several files (MPP), restarts, outputs with kinds (elout/shell,ncforc/slave_1...), files cut off while writing.write_binout,find_binout, and thecrashmetrics-binoutcommand.- Run folders with binout only:
read_run,check_run,check_model,load_runandload_weldsread the outputs they need from binout files when the ASCII file is missing. crashmetrics.synthetic:write(folder, binout=True)writes the run's time histories as a binout.- The plate run's binout, glstat and matsum (MIT) in
tests/data/lsdyna/pladebuk/, next to its rcforc and spcforc. - Guide "LS-DYNA binout" and example 36.
0.22.0 - 2026-11-17¶
Added¶
crashmetrics.pedestrian.clearance: why a headform point is red.clearance(free space under each impact point to the hard parts, a 165 mm sphere swept along the impact direction and along the surface normal),clearance_map,required_clearanceandclearance_table(deformation space a HIC15 target needs for a pulse shape),head_impact(the headform's motion from nodout, CFC 1000),assess_impact(HIC15, first peak, plateau, penetration, bottoming out from the geometry and the pulse with its time, residual speed and energy, extra space needed, diagnosis),assess_grid(map, table, points lost per cause, head score, CSV),compare_grids,read_impact_points,HEADFORMS,impact_direction.crashmetrics.mesh:read_mesh(nodes, shell, solid and beam elements and part titles of a keyword file, fixed, long and comma formats),Mesh(node coordinates per part, find parts by title, merge),write_mesh.crashmetrics.pedestrian.synthetic: a bonnet over hard parts and a headform impact at each of 130 grid points, writing a keyword mesh, the grid points and a nodout per impact; variantslower_engineandstiff_inner, with the truth of every impact.crashmetrics.synthetic.write_nodout.- Guide "Bonnet clearance and bottoming out" and example 34.
- Validation page: what every function is checked against (real data, independent implementations, protocol examples, closed forms, synthetic truth) and what is not validated yet.
- Real crash test data: vehicle acceleration channels of NHTSA tests
2320 and 4429 (
tests/data/nhtsa/).pulse_summarywith CFC 60 reproduces the peak, crush, time and restitution an independent project reports for test 2320 (restitution 0.162 against 0.163), and the two cars of test 4429 satisfy momentum conservation within 10 %. crashmetrics.deck: LS-DYNA keyword decks before a run.- Reading:
read_deck/parse_deckfollow*INCLUDE,*INCLUDE_PATH(_RELATIVE)and*INCLUDE_TRANSFORM(ID offsets,*DEFINE_TRANSFORMATION), read*PARAMETER,_LOCAL,_EXPRESSIONand_DUPLICATION, in fixed, long,%and comma formats, and keep every line, so a deck written back is unchanged except where edited.Deck.recordsgives typed card values for parts, sections, materials, contacts, connections, initial conditions, walls, boundary conditions, controls, outputs and definitions;nodes,elements,mass_elements,sets,curvesfor bulk data.Deck.info: title, files, the tool and version that wrote the deck, keywords without a layout (kept unchanged). - Model tables:
model_summary(parts with elements, section, thickness, material, density, mass and centre of gravity; total; units from*CONTROL_UNITSor guessed),time_steps(estimated element time steps, mass that mass scaling would add). - Checks:
check_deck(include files, parameters, duplicate IDs, missing references, parts without elements, thickness or density, degenerate elements, free nodes, parts in no contact, spot welds without a tied contact, time step and mass scaling, unused definitions). - Load case:
load_caseandoutput_requirements(whether the outputs give what the model quality, load path, spot weld, node channel, contact and rigid wall analyses read, including the nodout rate for CFC 1000). - Edits:
set_parameter,set_thickness(shared sections changed or copied),set_material,set_section,set_end_time,set_mass_scaling,set_initial_velocity,set_output,add_history_nodes,prepare_outputs;write_variantswrites one deck per DOE row with adesign.csv. crashmetrics-deckcommand.- Real keyword decks (MIT) in
tests/data/lsdyna/: the ball drop deck whose d3hsp was already included (part masses, centre of gravity and smallest time step from the deck equal the solver's), a tube crush, a block-on-plate deck and a copy with one fault, and an LS-PrePost 2024/R2 thermal deck. - Guide "Keyword decks: check before you run" and example 35.
Changed¶
crashmetrics.mesh: long-format keyword files are read with 20-character node and element fields, and%files with 10-character IDs.
0.21.0 - 2026-11-10¶
Added¶
crashmetrics.quality: model quality check sheet of a run from d3hsp, glstat, matsum and sleout.check_model/check_model_data(termination, end time, errors and warnings; total mass and centre of gravity against targets; added mass at the start, at its peak, its growth and per part; time step, mass scaling and the smallest elements; the energy checks; negative energy per contact), each with PASS / FAIL / WARN / INFO / SKIP;QualityLimits;QualitySheet(summary, Markdown table, failures);quality_matrixfor several runs.read_d3hspreads the mass centre of the model (D3hsp.mass_center).crashmetrics.synthetic:ModelQuality(added mass, time step, contact energies, warnings, error termination) and the filesglstat,sleoutandd3hsp(write_glstat,write_sleout,write_d3hsp); variantpoor_model_quality.-
Guide "Model quality check sheet" and example 33.
-
crashmetrics.spotweld: spot weld and connection failure from swforc.load_welds(kN and ms for any unit system, failure time of each weld);WeldLimits(force criterion and utilisation);weld_summary(peak forces, forces before failure, utilisation; failed and critical welds; per group);failure_history(failed welds over time, failure sequence, first failure per group, unzipping bursts);compare_welds(new, recovered, earlier and later failures, utilisation increases);groups_by_id;weld_report(Markdown). crashmetrics.synthetic: spot weld lines (WeldLine) on the crash boxes and rails that can fail and weaken their part;swforcwritten withmatsumandsecforc(write_swforc); variantweak_welds_front_rail_lh.- Guide "Spot weld failure" and example 32.
0.20.0 - 2026-11-07¶
Added¶
crashmetrics.loadpath: load paths and energy from matsum and secforc.load_run,select_parts/select_sections(IDs or title patterns);energy_ranking(absorbed energy per part and group, share, cumulative share, 10 / 50 / 90 % times, hourglass share) andenergy_history;section_forces(component, consistent sign, CFC filter with resampling of uneven MPP output) andforce_metrics;load_split(share of each load path against a target, over time);crush_sequence(order of chains of parts);compare_runs(energy and section changes, culprit parts, ISO/TS 18571 similarity of force curves);energy_matrix(runs side by side, CSV);loadpath_report(Markdown). Results in kJ, kN and ms for any unit system.crashmetrics.synthetic: a toy full-width frontal crash with upper, middle and lower load paths that writes LS-DYNA-style matsum and secforc (write_matsum,write_secforc), with variants of known cause (weak front rail, no lower load path).- Guide "Load paths and energy across runs", examples 30 and 31.
- Test data: a second helmet study secforc (MIT) to compare two real runs.
0.19.1 - 2026-11-07¶
Changed¶
- README and documentation home start with who the package is for and an
overview figure (HIC window, Bharat NCAP point losses,
*MAT_024curve, GISSMO failure curves), made from the examples bytools/make_readme_images.py. - Documentation pages carry share-card metadata (Open Graph, X) with a
social preview image, and a hook for the Google Search Console
verification tag (
extra.google_site_verificationinmkdocs.yml). - Package summary on PyPI names what the package covers.
0.19.0 - 2026-11-02¶
Added¶
crashmetrics.materials.gissmo: GISSMO failure from fracture tests. Stress states (TRIAXIALITY,triaxiality_from_strain_ratio,plane_stress_strains,lode_parameter,average_triaxiality);FractureTestwith the loading path of each test;fit_failure_curve(Hosford-Coulomb, Johnson-Cook or tabulated, fitted so that the damage reaches 1 at every measured fracture along its path);instability_from_flc(ECRIT from a forming limit curve);regularization_estimateandRegularizationCurve(LCREGD);integrate_damage(D, instability, stress fading along a path).GissmoCard: the*MAT_ADD_DAMAGE_GISSMOcard with its failure, instability, regularisation, fading and rate curves in mm-ms-kg, mm-s-t, mm-s-kg or m-s-kg;check(including large elements that fail without fading);damagealong a path with the card's curves.Mat024.write(..., damage=card)writes the*MAT_024and its GISSMO card into one include file.read_keywordreads*MAT_ADD_DAMAGE_GISSMO(KeywordDeck.gissmo,KeywordDeck.damage);check_gissmochecks the cards of a deck.- Guide "Failure with GISSMO" and example 29.
0.18.0 - 2026-11-02¶
Added¶
crashmetrics.materials(first steps towards LS-DYNA*MAT_024cards):read_tensilereads tensile tests from CSV / text (any separator, decimal commas) and.xlsx, as force-elongation with the specimen size or as stress-strain, with columns and units from the headers;clean_tensilecuts after fracture, smooths (Savitzky-Golay) and corrects the toe region;tensile_propertiesgives E, Rp0.2, Rm, Ag/Agt and A/At (ISO 6892-1 definitions).- Guide "Material cards: tensile tests to *MAT_024" and example 23.
crashmetrics.materials.corrections:luders_plateau(ReH, ReL with the ISO 6892-1 transient rule, yield point elongation Ae) andsmooth_luders(plateau flat at ReL, or removed so hardening starts at the yield point);correct_complianceremoves the machine compliance from cross-head strains using the known Young's modulus.crashmetrics.materials.specimens:mean_curve(mean, standard deviation, minimum and maximum of several specimens at equal strain) andproperty_scatter/scatter_summary(mean, std and CV of E, Rp, Rm, Ag, A). Example 24.crashmetrics.materials.hardening:true_curve,necking_point(maximum force with the Considère check),plastic_curve(true stress against effective plastic strain from Rp0.2 or the end of the linear part to necking),fit_hardening(Swift, Voce, Hockett-Sherby, Swift-Voce; NumPy-only Levenberg-Marquardt; RMS, R² and the Considère ratio at necking),compare_fits,extrapolate_curve(measured to necking, law beyond, no step) andn_value(n and K). Example 25.crashmetrics.materials.rate:fit_cowper_symonds(C and P from tests at several rates, with a non-static reference test),fit_johnson_cook_rate,rate_table_from_model/rate_table_from_curves,RateTable.check(crossing curves, rate order, ln-rate form, softening, spacing) andRateTable.keyword(*DEFINE_TABLEwith its*DEFINE_CURVEcards in mm-ms-kg, mm-s-t, mm-s-kg or m-s-kg; linear or ln rates). Example 26.crashmetrics.materials.card:Mat024writes the complete*MAT_PIECEWISE_LINEAR_PLASTICITYcard with its*DEFINE_CURVEor*DEFINE_TABLEfrom engineering units (kg/m³, MPa, 1/s) in mm-ms-kg, mm-s-t, mm-s-kg or m-s-kg;writeadds a provenance header;failure_strain/fracture_straingive a simple element-size dependent FAIL;keyword_numberformats fixed fields. Example 27.Mat024.stress(strain, rate): the stress a card gives (Cowper-Symonds scaling, table interpolation in ln(rate), linear extrapolation);keyword(points=None)keeps the curve's own points; TDEL is given in seconds and converted on writing.crashmetrics.materials.keyword:read_keyword(*MAT_024 with its curves and tables; fixed, long and comma formats),guess_unit_system,KeywordDeck.material,check_keyword(unit mix-ups, curve and table errors, slope above E, crossing rate curves, LCINT re-discretisation loss and more),convert_keyword,compare_cards.crashmetrics.materials.verify:single_element_deck(one-element tension test model),verify_single_element(spcforc and nodout read back and compared with the card),compare_tension.crashmetrics.materials.library:card_summary,summary_markdownandMaterialLibrary(JSON cards with provenance: save, load, info, summary, export). Example 28.
0.17.0 - 2026-10-31¶
Added¶
crashmetrics.bncap_channels: Bharat NCAP inputs straight from dummy channels.frontal_occupant_from_channels(Hybrid III 50th: HIC15, 3 ms, hard contact above 80 g, neck histories and extension, chest compression and VC, femur, knee, worst Tibia Index and compression),side_occupant_from_channels(ES-2, with the backplate and T12 modifiers from their channels),pole_test_from_channels, andchannels_from_isomme(Hybrid III codes of Euro NCAP CP 005, unit conversion, CFC filtering).crashmetrics.bncap_report.scorecard: adult occupant scorecard with points, colour and governing criterion per region, criterion values against the limits, where the points are lost, and the points to the next star; Markdown and CSV rows.bncap.frontal_modifiersandbncap.side_modifiers: every Annexure VII modifier by name (airbag, steering wheel, compartment integrity, shoulder belt, knee contact, footwell rupture, sliding ones), returning the points per region.- Bharat NCAP edition and validity years:
EDITION(2023),VALID_FROM(1 October 2023),VALID_UNTIL(30 September 2027),PROTOCOL,edition_for_date. The scoring functions takeedition=2023and refuse 2027 (Bharat NCAP 2.0, not implemented yet);TestResult,AopRating,CopScoreandBncapRatingcarry aprotocolfield, and ratings refuse results scored under another protocol. RegionResult.values: the criterion values behind each region score.- Modifiers checked against AIS-197 Annexure VII:
incorrect_airbag_deploymenttakes several regions (1 point each) infrontal_modifiersand, new, inside_modifiers;knee_variable_contact_areasgives the driver's 0.5-point column / facia split when no knee has the concentrated loading modifier. -
Example 22: Bharat NCAP from unfiltered channels to the scorecard.
-
CONTRIBUTING.md: contributor guide (set-up, coding standards, adding a criterion, an LS-DYNA reader, an example or a test, licensing and sources, pull request checklist), linked from the README and the development page.
Changed¶
BncapRating.summary()prints the protocol and its validity years.
0.16.0 - 2026-10-30¶
Added¶
calculate_hic(..., method="exact"): the exact HIC maximum over continuous end points of the linearly interpolated signal (closed-form stationary points, window-length and record-limit cases, with a branch-and-bound search), verified against closed forms and independent searches.- Documentation page "HIC accuracy and performance": verification,
grid-search accuracy against the exact value and run times;
examples/hic_convergence.pyreproduces it. - Release workflow: the built wheel is installed and tested on Python 3.10, 3.11, 3.12 and 3.13 before publishing.
Changed¶
- The HIC grid search is vectorised: 100 000 samples take about 0.1 s instead of 5 s. Records of more than 20 000 samples that are over four times as dense as the grid use the grid points only as end-point candidates (the integral is still exact); results for other records are unchanged.
- A tiny negative integral from rounding on a zero signal no longer produces a NumPy warning.
0.15.0 - 2026-10-30¶
Added¶
crashmetrics.doe: Latin hypercube (latin_hypercube), Halton (halton), full factorial (full_factorial) and Morris trajectory (morris_design) designs as aDesignwithrows(); LS-DYNA*PARAMETERcards per run (lsdyna_parameters).crashmetrics.sensitivity: Spearman (rank_correlation), partial rank correlation (partial_rank_correlation), standardised regression coefficients with R² (regression_coefficients), a ranked table from run rows (rank_sensitivity) and Morris elementary effects (morris_effects). Checked against SciPy and SALib.crashmetrics.margins: distance of criteria to their limits (position,margin_lpl,margin_hpl,sliding) for any limits or the Euro NCAP frontal limits (euroncap_margins), flattened for feature tables (margin_features).crashmetrics.uncertainty: Monte Carlo of any scoring function (monte_carlo) with normal, relative, uniform and scale scatter; probabilities, distributions, percentiles and star probabilities.- Guide "DOE, sensitivity and probabilistic ratings", examples
20_doe_margins_sensitivity.pyand21_probabilistic_rating.py. - Zenodo DOI badge and a "Citing" section in the README; DOI in
CITATION.cff. The API reference index lists every module.
0.14.0 - 2026-10-30¶
Added¶
crashmetrics.virtual_testing: Euro NCAP frontal sled and virtual testing (VTC), from the Crash Protection Virtual Testing Protocol v1.0.2 and the Frontal Impact Protocol v1.2: the load case matrix (FRONTAL_LOAD_CASES), model quality criteria (check_model_quality, withmodel_quality_inputsfrom LS-DYNA glstat and matsum), the end time (frontal_end_time), ISO/TS 18571 sensor scores with test-peak axis weights (sensor_score), assessment criteria deviations (kpi_check,kpi_checks), load case acceptance (validate_load_case) and the 10-point sled and virtual score per occupant (score_sled_virtual: two sled and three virtual load cases, default virtual lower leg points, HBM halving, sled only if not validated).crashmetrics.isomme: read ISO-MME (ISO/TS 13499) tests from a folder,.mmefile or zip (implicit and explicit time bases,NOVALUE, UTF-8 / Windows-1252 / ISO-8859-1), find channels by code pattern, parse channel codes, and write ISO-MME 1.6 test folders (for example simulation results for a virtual testing submission).frontal_scoring.score_dummy(..., exclude=...): leave criteria out of the assessment (used for virtual tests).- Guide "Euro NCAP sled and virtual testing (VTC)", protocol notes,
example
19_euroncap_virtual_testing.py; ISO-MME in "Loading your data". Test data: the pyisomme ISO-MME fixtures (MIT).
0.13.0 - 2026-10-29¶
Added¶
crashmetrics.lsdyna_ascii: readers for LS-DYNA ASCII time-history output:nodout,rcforc,sleout,secforc,rwforc,sbtout,deforc,jntforc,abstat,rbdout,spcforcandswforc(read_nodout...read_swforc,read_asciiwith type detection,read_runfor a whole run directory). Each returns anAsciiOutputwith times, entity IDs and legend titles, one array per channel (binout variable names), file totals,to_csvandsummary. Handles touching numbers, Fortran exponents withoutE, overflow fields, restarts,slave/masterandSURFA/SURFBlabels, and anidsfilter for large files. Also importable fromcrashmetrics.lsdyna.crashmetrics-asciicommand: summarise the ASCII files of runs and write them to CSV.- Test data: real LS-DYNA R16
nodoutandsecforcof a helmeted Hybrid III head and R14rcforcandspcforc(MIT-licensed public projects); the readers reproduce the helmet study's HIC, BrIC and neck moment. Guide "LS-DYNA ASCII output", protocol notes and example18_lsdyna_ascii.py.
Changed¶
- Documentation: "Loading your data" reads LS-DYNA output with the new
readers (a
read_nodoutheadform loader,read_run, CSV export); the README quick example starts from anodout; the intrusion, energy check, batch and machine learning guides point to the readers.
0.12.0 - 2026-10-29¶
Added¶
-
crashmetrics.whiplash: BioRIDnicandnkm(CP 005), the 2026 rear impact score (Crash Protection Rear Impact Protocol v1.2): pulse scores for the medium and high severity sled tests with all capping limits (score_whiplash_pulse), front seat geometry and the 4-point front seat score (front_geometry_score,score_front_seat), rear seat geometry and non-use position (rear_seat_score,score_rear_seats) and the 5-point total (score_whiplash). Guide "Rear impact (whiplash)", protocol notes and example17_whiplash.py. -
crashmetrics.bncap_cop: Bharat NCAP child occupant protection (AIS-197 Annexure V, 49 points): Q1.5 and Q3 dynamic scores in the ODB frontal and MDB side tests with all penalties (ejection, forward facing Q1.5, head contact with the vehicle, no recommendation), CRS installation (CRSi, installation list and recommended seats, halving; reproduces the standard's worked example 9.143), vehicle based assessments (13 points; two-seaters 10) and the COP total and stars. -
crashmetrics.bncap_rating: safety assist qualifiers (Annexure VI: pedestrian AIS-100, SBR AIS-145, ESC, side head protection with pole test and fitment share by publication year) as the highest allowed adult star level, andbncap_ratingfor the complete adult and child rating with what is missing for the next star. Guide "Bharat NCAP child occupant and complete rating", protocol notes and example16_bharat_ncap_cop_rating.py. -
crashmetrics.side_scoring: Euro NCAP 2026 side impact (Crash Protection Side Impact Protocol v1.1): AE-MDB (WorldSID 50th, Q10, Q6; 15 points) and pole (10 points) with colour bands, hard-contact rule, automatic shoulder and VC modifiers, airbag and test modifiers (doors, head protection zone, rollover); far side (10 points) with head excursion zones (far_side_zone), capping limits, pelvis/lumbar modifier, robustness, occupant-to-occupant and the disqualification rules (17-point near side threshold, structural or restraint failure);score_sidefor the 35-point total. Guide "Euro NCAP side and far side", protocol notes and example15_euroncap_side.py.
0.11.0 - 2026-10-29¶
Added¶
-
crashmetrics.homologation: pass/fail compliance checks per requirement, with clause, limit and utilisation, for UN R94 / AIS-098 (05 series; occupant and vehicle, neck and femur force-duration curves from time histories), UN R95 / AIS-099 (ES-2) and UN R135 (01 series, WorldSID; lower spine from the time history), and post-crash electrical safety (R94 and R137 5.2.8: voltage, energy, physical protection and isolation per high-voltage bus, electrolyte, REESS retention, fire). Unmeasured requirements are reported as not assessed. Guide "Homologation compliance", protocol notes and example14_homologation.py. -
crashmetrics.intrusion:intrusion(displacement of a point relative to the global system, one reference node, or a best-fit vehicle frame of three or more nodes that removes translation and rotation; dynamic and static values, overall and along a direction; reference fit error),intrusions(many points),node_distance(closing, opening and remaining space between two points) andnode_track. Works on CAE time histories and on before/after test measurements. Guide "Intrusion measurement", protocol notes and example13_intrusion.py, which feeds the Bharat NCAP steering column, A-pillar and pedal modifiers.
Changed¶
- Renamed
cora,CORAParametersandCORAResulttocc_rating,CCParametersandCCResult(corridor and cross-correlation rating),Comparison.coratoComparison.ccand thecora_parametersargument ofcomparetocc_parameters. The results are unchanged. The method is the published one of Gehre et al. (2009); the new names avoid implying a link to PDB's CORA tool. - Disclaimer: ISO and PDB added to the organisations crashmetrics is not affiliated with, and the sources of the correlation methods stated.
0.10.0 - 2026-10-28¶
Added¶
crashmetrics.featuresfor analytics and machine learning:signal_features(peaks, timing, rise time, pulse width, impulse, energy centroid, number of impacts, frequency content of any channel),head_featuresandpulse_features(criteria plus shape),flatten(any result object, however nested, as flat columns),feature_table(one row per run with design parameters; failing runs recorded in anerrorcolumn), andwrite_csv,to_dataframeandto_matrixfor CSV, pandas and NumPy. Guide "Features for machine learning" and example11_ml_features.py.crashmetrics.correlationfor test-versus-CAE correlation:iso18571(ISO/TS 18571:2024 corridor, phase, magnitude and slope scores, overall rating and grade; verified against TU Graz'sobjective-rating-metricsto machine precision),cora(corridor and cross-correlation phase, size and shape ratings; the defaults are the commonly cited CORA 3.6 values, not yet checked against the official manual, so check them against your CORA version and setCORAParametersto match),error_measures(peak and peak-time errors, RMSE, NRMSE, correlation, R², Sprague & Geers, Russell),compare(all three, with a text summary) andresample_pair(signals with different time bases). Guide "Test-versus-CAE correlation", protocol notes and example12_test_cae_correlation.py.CITATION.cff, so GitHub shows "Cite this repository" and papers can cite the package; a test keeps its version in step with the package.
Changed¶
- The Euro NCAP legform and Flex-PLI scores and the Bharat NCAP region
scores share one sliding-scale implementation.
bncap.sliding_pointsnow gives the same, more detailed error messages aspedestrian.sliding_scale; results are unchanged. - Test and release workflows use the current GitHub Actions versions (Node 24).
0.9.1 - 2026-10-28¶
Added¶
- Documentation site (https://vsk1729.github.io/crashmetrics/): getting
started, units and sign conventions, ten step-by-step guides, protocol
notes listing every interpretation, and the API reference generated
from the docstrings. Built on every pull request and published to
GitHub Pages from
main. - Ten runnable examples in
examples/, one per topic, with their expected output; the test suite checks that output. docsoptional dependencies (pip install -e ".[docs]").
Changed¶
- The README is now a short overview that links to the documentation.
- Module docstrings use Markdown lists and tables so they render in the API reference.
Fixed¶
bncap.curve_pointsreported a duration of 0 ms when the curve scored full points; it now reports the duration at the peak level.
0.9.0 - 2026-10-27¶
Added¶
- AIS-100 pedestrian compliance checks (
crashmetrics.pedestrian): Flex-PLI to bumper (Rev.1, 2024) and legacy legform (original edition) limits, upper legform to bumper,bumper_legform(which test applies by lower bumper height), the 264 mm relaxation width, and the HIC1000 / HIC1700 zone area and test rules. - Flex-PLI:
assessment_interval(AIS-100 Rev.1 3.2 / UN GTR 9),flexpli_peaks, and Euro NCAP (v10.0.5, 2014-2022) Flex-PLI point and grid scores (flexpli_point_score,flexpli_score).
0.8.0 - 2026-10-27¶
Added¶
crashmetrics.frontal_scoring: Euro NCAP frontal scoring to the Crash Protection Frontal Impact Protocol v1.1 (2026-2028) and CP 007 v1.1: colour bands from HPL / LPL (colour_band), limits for the Hybrid III 5th / 50th / 95th, THOR 50th, Q6 and Q10, body region and dummy scores with occupant modifiers (score_dummy), and the MPDB (score_mpdb) and full width (score_fwdb) test scores with full-scale modifiers; the CP 007 compatibility penalty (compatibility_penalty, checked against its worked examples),damage_modifier, and the protocol's modifier tables. The full width test uses the 35 km/h chest limits.crashmetrics.bncap: Bharat NCAP adult occupant protection scoring to AIS-197: sliding scales, exceedance-curve scoring of neck shear, neck tension and femur compression, ODB frontal and MDB side test scores with modifiers and capping, the pole test check, the AOP star rating with its caps and the child occupant star thresholds.crashmetrics.side: ES-2 rib deflection and VC (worst rib), total abdominal force and pubic symphysis force;"es2"VC constants.
0.7.0 - 2026-10-27¶
Added¶
- Frontal impact dummy criteria for the Hybrid III and THOR, following Euro NCAP CP 005 v1.4.1 unless noted:
crashmetrics.head: DAMAGE from angular velocity or acceleration (damage,damage_from_acceleration) with the Euro NCAP window (T0, 200 ms, external force below -500 N), BrIC (bric; Takhounts et al. 2013) andloading_phase_end.crashmetrics.neck:occipital_condyle_moment,neck_loads(shear, tension, compression, extension and flexion moments),neck_force_criterionwith the UN-ECE R94 tension and shear force-duration limits, and Nij (nij; FMVSS 208 intercepts).crashmetrics.thorax:chest_deflection,viscous_criterion, THORthor_rib_displacement/thor_chest_deflection(Rmax),thor_abdomen_deflection, and CTI (cti,cti_from_signals; Eppinger et al. 1999).crashmetrics.pelvis: THORacetabulum_forceandiliac_force_drop.crashmetrics.lower_extremity:tibia_compression(with the R94 limit) andknee_slider_displacement.crashmetrics.acceleration.exceedance_check: checks any signal against a force-duration (exceedance) limit, for positive, negative or absolute values.
Changed¶
femur_force_criterionusesexceedance_check; results are unchanged.
0.6.0 - 2026-10-26¶
Added¶
crashmetrics.d3hsp(also incrashmetrics.lsdyna):read_d3hsp/parse_d3hspfor LS-DYNA d3hsp files: run information, termination status, warnings and errors, model size, echoed settings, keyword counts, part masses, smallest time steps, timing and memory. Built and tested on real LS-DYNA R14.1 and R16.1 SMP files; MPP-tolerant.- Energy checks: part names from the matsum legend and per-part added
mass (
+mass=) inPartEnergiesandPartResult; the summary lists the parts with the most added mass. - Real LS-DYNA R14.1 test data (glstat, matsum, d3hsp excerpt) from the MIT-licensed K-agent project, with attribution.
Changed¶
- The d3hsp test file now holds only the machine-readable lines the reader uses; LS-DYNA's descriptive text was removed (67 KB -> 11 KB).
- README: trademarks and non-affiliation notice.
Fixed¶
- glstat labels that wrap onto a second line ("number of shell elements that" / "reached the minimum time step") are read as one label.
0.5.0 - 2026-10-26¶
Added¶
- Euro NCAP legform scoring in
crashmetrics.pedestrianfor the 2026 and 2023 protocols: sliding_scale,round_scoreandleg_colourapli_point_scoreandapli_score: femur (worst femur bending moment) and knee/tibia (lower of tibia moment and MCL elongation) pointsupper_legform_point_scoreandupper_legform_score: pelvis points from the sum of forcesupper_legform_alphaandupper_legform_energy: impact angle, nominal energy, test velocity and the 160 J rule- untested grid points filled by symmetry and the worst adjacent result per body region, with asymmetric points and the 10 % energy rule
vru_score: total passive VRU crash protection points (20 in 2026, 36 in 2023).crashmetrics.energy_check: solver-agnostic energy checks for any load case: energy ratio, hourglass / internal energy, negative contact energy, system damping, added mass, eroded energy, and per-part hourglass and negative internal energy, with configurableEnergyLimitsand a text summary.crashmetrics.lsdyna: glstat and matsum ASCII readers (label-based, Fortran exponents) andcheck_run.crashmetrics-energycommand: checks one or more run directories, exit code 0 (pass), 1 (fail) or 2 (unreadable).
0.4.0 - 2026-10-26¶
Added¶
crashmetrics.pedestrianheadform grid scoring for Euro NCAP 2026 (Crash Protection - VRU Impacts v1.1, head maximum 10 points, A-pillar rewards) and 2023 (VRU Assessment Protocol v11.4, 18 points):hic_colour,verification_colour(10 % tolerance),correction_factorandheadform_score, with blue, default red and A-pillar points and the 100 % cap.
0.3.0 - 2026-10-25¶
Added¶
crashmetrics.pulse: Occupant Load Criterion (olc) following the Euro NCAP definition, andpulse_summary(delta-V, time to zero velocity, maximum displacement, rebound, restitution, peak and mean deceleration).crashmetrics.lower_extremity:tibia_indexwith Euro NCAP critical values for Hybrid III 50th/5th/95th and THOR, andfemur_force_criterionagainst force-time limits, including the UN-ECE R94 Hybrid III 50th limit.crashmetrics.acceleration.exceedance_levelandexceedance_duration, generalising the 3 ms clip to any duration and signal.- Release workflow publishing to TestPyPI (manual run) and PyPI (GitHub release) with Trusted Publishing.
Fixed¶
- LICENSE now contains the complete MIT licence text, including the limitation of liability clause, and is included in the distributions.
0.2.0 - 2026-10-25¶
Added¶
crashmetrics.signals: SAE J211 CFC filter (cfc_filter),resultant, unit conversion (to_g,to_seconds) andresample_uniform.crashmetrics.acceleration:peakand the 3 ms clip (clip_3ms), cumulative or continuous.crashmetrics.energy:integrate_acceleration,absorbed_energy,crush_metrics(energy, mean and peak force, CFE, SEA, stroke limit) andkinetic_energy.HICResult.start_time_msandend_time_ms, andPeakResult.time_ms.- Type hints on the public API and a
py.typedmarker. - CI on Python 3.10–3.13 and NumPy 1.24, with ruff and mypy checks.
Changed¶
calculate_hicno longer raisesValueErrorwhen the record is shorter thanwindow_ms. It issues aUserWarningand evaluates HIC over the available duration.- The package version is defined once, in
crashmetrics.__version__.
Fixed¶
- The test suite no longer needs NumPy 2.0 (
np.trapezoid), matching the declarednumpy>=1.24requirement. - README no longer lists unimplemented features or a PyPI install.
0.1.0¶
Added¶
crashmetrics.pedestrian.calculate_hicfor HIC on a refined, linearly interpolated time grid.