Skip to content

Rename parameter keys to include units - #101

Open
Srikar-Kolli wants to merge 2 commits into
mainfrom
rename-parameter-keys-to-include-units
Open

Srikar-Kolli wants to merge 2 commits into
mainfrom
rename-parameter-keys-to-include-units

Conversation

@Srikar-Kolli

@Srikar-Kolli Srikar-Kolli commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Renames car parameter keys so their units are part of the name.

  • mass → mass_kg
  • battery_capacity → battery_capacity_wh
  • solar_panel_area → solar_panel_area_m2
  • C_dA → cda_m2
  • rho → air_density_kg_per_m3
  • tire_pressure → tire_pressure_bar

Testing

  • pytest tests: 354 passed, 0 failed.
  • New test in tests/test_config.py checks that a JSON file with the old names still loads into the new fields.
  • Existing tests were updated to use the new names.

Srikar-Kolli and others added 2 commits November 15, 2026 14:43
mass->mass_kg, battery_capacity->battery_capacity_wh,
solar_panel_area->solar_panel_area_m2, C_dA->cda_m2,
rho->air_density_kg_per_m3, tire_pressure->tire_pressure_bar.
Legacy names still load from JSON. Docs and tests updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant