Skip to content

Commit

Permalink
missing ACSetsGATsInterop methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Brown committed Apr 23, 2024
1 parent 8e295cd commit 1dd9ea8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/categorical_algebra/ACSetsGATsInterop.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ ACSetInterface.subpart(acs, part, expr::GATExpr{:compose}) =
subpart(acs, part, subpart_names(expr))

@inline ACSetInterface.subpart(acs, expr::GATExpr{:generator}) = subpart(acs, first(expr))
@inline ACSetInterface.subpart(acs, i, expr::GATExpr{:generator}) = subpart(acs, i, first(expr))
@inline ACSetInterface.subpart(acs, expr::GATExpr{:id}) = parts(acs, first(dom(expr)))
@inline ACSetInterface.subpart(acs, i::Int, ::GATExpr{:id}) = i
@inline ACSetInterface.subpart(acs, i::AbstractVector{Int}, ::GATExpr{:id}) = i
@inline ACSetInterface.subpart(acs, ::Colon, ::GATExpr{:id}) = parts(acs, first(dom(expr)))

Check warning on line 129 in src/categorical_algebra/ACSetsGATsInterop.jl

View check run for this annotation

Codecov / codecov/patch

src/categorical_algebra/ACSetsGATsInterop.jl#L128-L129

Added lines #L128 - L129 were not covered by tests

ACSetInterface.incident(acs, part, expr::GATExpr; kw...) =
incident(acs, part, subpart_names(expr); kw...)
Expand Down

0 comments on commit 1dd9ea8

Please sign in to comment.