-
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
issue with _rem_part!
and injective index
#60
Comments
cascading_rem_parts!
_rem_part!
and injective index
Doing some digging reveals, as I thought, the problem is not in if haskey(acs.subparts[@ct f], last_part)
set_subpart!(acs, part, (@ct f), subpart(acs, last_part, @ct f))
end
clear_subpart!(acs, last_part, @ct f) We go into the line in the This seems to be a tricky problem. |
One thing I thought of doing was changing those lines to look like: if haskey(acs.subparts[@ct f], last_part)
last_part_f = subpart(acs, last_part, @ct f)
clear_subpart!(acs, last_part, @ct f)
set_subpart!(acs, part, (@ct f), last_part_f)
else
clear_subpart!(acs, last_part, @ct f)
end Which actually does work and give the correct results for the MWE for both injective and noninjective index. However then it ends up failing in tests because there's some tests which check for |
I suspect this is a bug, although I think it is not directly related to
cascading_rem_parts!
, I discovered the problem by using that function. Basically, when there are uniquely indexed homs,cascading_rem_parts!
leads to an "injectivity violated" error, but using the same schema with just standard indexing does not lead to this issue. I checked out the branch associated with #59 and can confirm that the behavior is still observed there.Also, while I'm asking, in the docstring "Remove part and all parts incident to it, recursively.", does this mean that it only walks "backwards" along arrows in the presentation? (i.e. thinking of the word "incident" like how it is used in the
incident
function).MWE here:
The text was updated successfully, but these errors were encountered: