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

isInitial function #3431

Closed
isaacsas opened this issue Feb 27, 2025 · 1 comment · Fixed by #3433
Closed

isInitial function #3431

isaacsas opened this issue Feb 27, 2025 · 1 comment · Fixed by #3433
Assignees

Comments

@isaacsas
Copy link
Member

It would be nice to have an official API function to detect if a symbolic is an Initial(X) for some symbolic X. We need this in places to filter out such variables.

I know we can use something like the following to detect and remove them from a vector

function remove_inits(ps)
    filter(x -> !iscall(x) || !isa(operation(x), Initial), ps)
end

but it would be nice to have an official function in case the internal representation for them changes at some point.

@ChrisRackauckas
Copy link
Member

Agreed this seems pretty necessary. @vyudu can you prioritize this?

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.

3 participants