Skip to content

fix: allow passing gainPI__k to PI component#437

Closed
AayushSabharwal wants to merge 1 commit intomainfrom
as/fix-pi
Closed

fix: allow passing gainPI__k to PI component#437
AayushSabharwal wants to merge 1 commit intomainfrom
as/fix-pi

Conversation

@AayushSabharwal
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

See also [`LimPI`](@ref)
"""
@component function PI(; name, k = 1.0, T = 1.0)
@component function PI(; name, k = 1.0, T = 1.0, gainPI__k = nothing)
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's used by a test in MTK's downstream

Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't that test be updated instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can try. I'm not entirely sure why it needs to pass k down to a subcomponent, I just saw the stacktrace and made the PR 😅 .

@AayushSabharwal
Copy link
Member Author

This is not necessary anymore.

@AayushSabharwal AayushSabharwal deleted the as/fix-pi branch January 28, 2026 11:26
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.

2 participants