Skip to content

fix: use self convention in transformer properties#246

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

fix: use self convention in transformer properties#246
nightcityblade wants to merge 1 commit into
alliander-opensource:mainfrom
nightcityblade:fix/issue-244

Conversation

@nightcityblade

Copy link
Copy Markdown

Summary

Use the conventional self name for instance property methods in transformer.py.

Changes

  • Renamed non-classmethod property parameters from cls to self.
  • Updated corresponding instance attribute and method references.

Testing

  • uv run ruff check transformer_thermal_model/schemas/specifications/transformer.py
  • uv run pytest tests/schemas/test_threewinding.py tests/model/test_transformer.py tests/model/test_model.py

Fixes #244

@nightcityblade nightcityblade requested a review from a team as a code owner May 19, 2026 15:08
@nightcityblade nightcityblade requested a review from thewouter May 19, 2026 15:08
@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.

Use self convention in transformer.py

2 participants