diff --git a/Project.toml b/Project.toml index 422956b8..1ebcb1bf 100644 --- a/Project.toml +++ b/Project.toml @@ -5,6 +5,7 @@ authors = ["Xiaoyan Li "] version = "0.1.0" [deps] +AlgebraicRewriting = "725a01d3-f174-5bbd-84e1-b9417bad95d9" Catlab = "134e5e36-593f-5add-ad60-77f754baafbe" Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" CompTime = "0fb5dd42-039a-4ca4-a1d7-89a96eae6d39" @@ -23,7 +24,8 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] -Catlab = "0.15" +AlgebraicRewriting = "≥ 0.2.1" +Catlab = "≥ 0.15.5" Combinatorics = "1.0.2" CompTime = "0.1" GraphViz = "0.2" diff --git a/src/SystemStructure.jl b/src/SystemStructure.jl index 9a6f7e09..417599fb 100644 --- a/src/SystemStructure.jl +++ b/src/SystemStructure.jl @@ -6,6 +6,7 @@ flattenTupleNames(sn::Tuple)=Symbol(foldr(string,map(x->string(x), sn))) flattenTupleNames(sn::Symbol)=sn flattenTupleNames(sn::SubArray{Symbol})=sn flattenTupleNames(sn::SubArray)=map(y->Symbol(foldr(string,map(x->string(x), y))),sn) +flattenTupleNames(sn::Vector)=[flattenTupleNames(x) for x in sn] function extracStocksStructureAndFlatten(p::AbstractStockAndFlowStructure)