-
Notifications
You must be signed in to change notification settings - Fork 8
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
collect_or_id
has problems with types from other packages
#128
Comments
Ok the issue has to do with I'm not sure what to do here, it's slightly odd that the JuMP type is subpart(graphopt, 3, :var)
ACSets.ACSetInterface.collect_or_id(subpart(graphopt, 3, :var)) |
subpart
collect_or_id
has problems with types from other packages
The really heavy-handed approach would be to have a JuMP extension and then overrides for the various container types so they interact with |
Thanks again @epatters and @kris-brown for the quick fix! Can confirm that the problem where I discovered this behavior now works flawlessly: https://github.com/slwu89/Orcas.jl/blob/main/src/BasicSchedule.jl#L278-L324 |
Consider the following example, which is a decorated graph, where an attribute on vertices will store objects of type
DenseAxisArray
(from JuMP https://jump.dev/JuMP.jl/stable/manual/containers/#DenseAxisArray). When grabbing the attribute using chained indexing versus directly indexing, the type of the return object is different. Strangely, the chained access returns some internal data of theDenseAxisArray
. See minimal ex below, on versionCatlab v0.16.8
Chained access returns:
Directly accessing returns (as expected):
The text was updated successfully, but these errors were encountered: