Skip to content

Commit

Permalink
alternate solution that passes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-brown committed Aug 23, 2021
1 parent fbadbab commit 8279ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/categorical_algebra/CSetDataStructures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function getassigned(acs::StructACSet, arrows, i)
Dict(f => subpart(acs,i,f) for f in assigned_subparts)
end

function rem_part_body(s::SchemaDesc, idxed::Dict{Symbol,Bool}, ob::Symbol)
function rem_part_body(s::SchemaDesc, idxed, ob::Symbol)
in_homs = filter(hom -> s.codoms[hom] == ob, s.homs)
out_homs = filter(f -> s.doms[f] == ob, s.homs)
out_attrs = filter(f -> s.doms[f] == ob, s.attrs)
Expand Down Expand Up @@ -497,7 +497,7 @@ end

@generated function _rem_part!(acs::StructACSet{S,Ts,idxed}, ::Type{Val{ob}},
part::Int) where {S,Ts,ob,idxed}
rem_part_body(SchemaDesc(S),Dict{Symbol, Bool}(idxed),ob)
rem_part_body(SchemaDesc(S),Dict(idxed),ob)
end

function Base.copy(acs::StructACSet)
Expand Down

0 comments on commit 8279ea3

Please sign in to comment.