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

[BUG]: TemplateModel.substitute_parameter does not substitute parameter used in initial expressions #424

Closed
liunelson opened this issue Jan 31, 2025 · 0 comments · Fixed by #426

Comments

@liunelson
Copy link

This method should also check the initial expressions:

def substitute_parameter(self, name, value=None):

Proposal:

        for template in self.templates:
            template.substitute_parameter(name, value)
        for observable in self.observables.values():
            observable.substitute_parameter(name, value)
        for initial in self.initials.values():
            initial.substitute_parameter(name, value)
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 a pull request may close this issue.

1 participant