Skip to content

Commit

Permalink
Merge pull request #490 from kris-brown/rempart_bug
Browse files Browse the repository at this point in the history
minor rem_part bug for certain ACSet schemas
  • Loading branch information
epatters authored Aug 27, 2021
2 parents db2de1b + 8279ea3 commit ad0bd96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/categorical_algebra/CSetDataStructures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ end

make_table(::Type{T}, cols) where T = T(cols)
make_table(::Type{NamedTuple}, cols) = cols # No copy constructor defined.

# StructACSet Operations
########################

Expand Down Expand Up @@ -308,7 +308,7 @@ function incident_body(s::SchemaDesc,
throw(ArgumentError("$(repr(f)) not in $(s.homs)"))
end
end

@generated function _incident(acs::StructACSet{S,Ts,Idxed,UniqueIdxed},
part, ::Type{Val{f}}; copy::Bool=false) where
{S,Ts,Idxed,UniqueIdxed,f}
Expand Down 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

0 comments on commit ad0bd96

Please sign in to comment.