Skip to content

refactor: simplify time step conversion#247

Open
nightcityblade wants to merge 1 commit into
alliander-opensource:mainfrom
nightcityblade:fix/issue-243
Open

refactor: simplify time step conversion#247
nightcityblade wants to merge 1 commit into
alliander-opensource:mainfrom
nightcityblade:fix/issue-243

Conversation

@nightcityblade

Copy link
Copy Markdown

Fixes #243

Summary

  • Cast datetime deltas directly to minutes in BaseInputProfile.time_step instead of seconds followed by / 60.

Tests

  • uv run ruff check transformer_thermal_model/schemas/thermal_model/input_profile.py
  • uv run ruff format --check transformer_thermal_model/schemas/thermal_model/input_profile.py
  • uv run mypy transformer_thermal_model/schemas/thermal_model/input_profile.py
  • uv run pytest tests/schemas/test_thermal_model_profile_input.py

Note: uv run pre-commit run --files transformer_thermal_model/schemas/thermal_model/input_profile.py was attempted but timed out while installing hook environments locally.

@nightcityblade
nightcityblade requested a review from a team as a code owner May 19, 2026 15:17
@thewouter

Copy link
Copy Markdown
Contributor

@nightcityblade Thank you for your contribution!

Would you mind signing your commits with the developer certificate or origin?

For more information about the DCO, see our contributer guidelines

The automated DCO workflow shows some tips regarding back-signing your commits.

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.

Refactor: Remove unnecessary / 60 in BaseInputProfile.time_step()

2 participants