From 70fa705308bfb0edd74b83ebc9dd39803a549101 Mon Sep 17 00:00:00 2001 From: Thomas Purdy <61016353+neonWhiteout@users.noreply.github.com> Date: Wed, 23 Aug 2023 23:35:22 -0600 Subject: [PATCH] flattenTupleNames(::Vector) Added a flattenTupleNames(sn::Vector) method, which calls flattenTupleNames for each element and returns a vector. Pullback required it. --- src/SystemStructure.jl | 1 + 1 file changed, 1 insertion(+) 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)