Skip to content

Commit

Permalink
flattenTupleNames(::Vector)
Browse files Browse the repository at this point in the history
Added a flattenTupleNames(sn::Vector) method, which calls flattenTupleNames for each element and returns a vector.

Pullback required it.
  • Loading branch information
neonWhiteout authored Aug 24, 2023
1 parent a4c948d commit 70fa705
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SystemStructure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70fa705

Please sign in to comment.