Skip to content

PEP8 consistent model naming#190

Merged
ParticularlyPythonicBS merged 10 commits intotemoa_davey_codefrom
ref/naming_consistency_model_focus
Nov 11, 2025
Merged

PEP8 consistent model naming#190
ParticularlyPythonicBS merged 10 commits intotemoa_davey_codefrom
ref/naming_consistency_model_focus

Conversation

@ParticularlyPythonicBS
Copy link
Copy Markdown
Member

@ParticularlyPythonicBS ParticularlyPythonicBS commented Nov 6, 2025

renames attributes of TemoaModel to make them pep8 consistent and propagates the changes.

The migration scripts are spared and new migration scripts are added for v3_1 to v4 migration.

Also temporarily excludes ruff linting for the extensions directory to avoid cluttering the already huge PR.

Most changes are from mixed case to snake case with notable exceptions being:

time_season -> time_season_all
TimeSeason -> time_season
TimeNext -> time_manual
time_next -> time_next
CommodityDStreamProcess -> commodity_down_stream_process
commodityUStreamProcess -> commodity_up_stream_process
SegFrac -> segment_fraction
time_season_sequential -> time_season_to_sequential

Summary by CodeRabbit

  • New Features

    • Public schema, model attributes and output tables standardized to snake_case v4; new v4 schema and myopic/myopic_efficiency tables included.
  • Breaking Changes

    • Many public tables, parameters, variables and model attributes renamed to snake_case — update queries, configs and integrations accordingly.
  • Migration

    • New migration utilities to convert v3.1 dumps/databases to the v4 snake_case format.
  • Documentation

    • Examples and docs updated to snake_case identifiers.
  • Tests

    • Tests and fixtures updated to the new naming.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance Code quality fixes and deprecation management refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant