Skip to content

Commit

Permalink
Merge pull request #679 from kris-brown/no_hom_schema
Browse files Browse the repository at this point in the history
Small fix for Presentation -> SchemaDesc function
  • Loading branch information
olynch authored Sep 26, 2022
2 parents 09ef64a + e913dff commit a8fc062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/theories/Schema.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ function SchemaDesc(p::Presentation)
obs,homs,attrtypes,attrs = map(t -> p.generators[t],[:Ob,:Hom,:AttrType,:Attr])
ob_syms,hom_syms,attrtype_syms,attr_syms = map(xs -> Symbol[nameof.(xs)...],
[obs,homs,attrtypes,attrs])
doms = Dict(nameof(f) => nameof(dom(f)) for f in [homs; attrs])
codoms = Dict(nameof(f) => nameof(codom(f)) for f in [homs; attrs])
doms = Dict{Symbol,Symbol}(nameof(f) => nameof(dom(f)) for f in [homs; attrs])
codoms = Dict{Symbol,Symbol}(nameof(f) => nameof(codom(f)) for f in [homs; attrs])
SchemaDesc(ob_syms, hom_syms, attrtype_syms, attr_syms, doms, codoms)
end

Expand Down

0 comments on commit a8fc062

Please sign in to comment.