Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/add custom attributes link #967

Merged
merged 5 commits into from
Aug 10, 2023
Merged

Fix/add custom attributes link #967

merged 5 commits into from
Aug 10, 2023

Conversation

MaGering
Copy link
Contributor

@MaGering MaGering commented Aug 9, 2023

With this PR the Link component gets the argument custom_attributes.


Issue | Because I can't create an issue - here's the description:
The link component is missing the argument custom_attributes in its class.

I've discovered this using the link component in oemof-tabular. During the postprocessing I've been losing the type = 'link'. Instead it was set to None. This is due to these lines where kwargs_unexpected are lost if the component does not have the argument "custom_attributes".

Local system and env info

  • Linux Mint 20.2
  • Python version 3.10

@MaGering MaGering added the bug label Aug 9, 2023
@MaGering MaGering requested a review from p-snft August 9, 2023 13:20
@MaGering MaGering self-assigned this Aug 9, 2023
@p-snft
Copy link
Member

p-snft commented Aug 9, 2023

Thanks a lot for fixing this. You might want to add you name to AUTHORS.rst and CITATION.cff.

@MaGering
Copy link
Contributor Author

What do we do about coverage/coveralls failing @p-snft?

Copy link
Member

@p-snft p-snft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implements a pass-through for functionality that is proposed in oemof.network. As all other classes already implement it the same way, it's okay to have it here for consistency. (As the functionality is not implemented, I also do not see a way how to properly test this, so the decreasing coverage should be okay this time.)

@p-snft p-snft merged commit aa8ab52 into dev Aug 10, 2023
12 checks passed
@MaGering MaGering deleted the fix/add_custom_attributes_link branch August 10, 2023 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants