Skip to content

Commit f53b0ef

Browse files
committed
return error for fusiontrees without coupled sector for GenericUnit
1 parent 847a9e0 commit f53b0ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fusiontrees/iterator.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ function fusiontrees(uncoupled::Tuple{Vararg{I}}, coupled::I) where {I <: Sector
1717
return fusiontrees(uncoupled, coupled, isdual)
1818
end
1919
function fusiontrees(uncoupled::Tuple{I, Vararg{I}}) where {I <: Sector}
20+
UnitStyle(I) isa GenericUnit && throw(
21+
ArgumentError("Must specify coupled sector when UnitStyle is GenericUnit.")
22+
)
2023
coupled = unit(I)
2124
isdual = ntuple(n -> false, length(uncoupled))
2225
return fusiontrees(uncoupled, coupled, isdual)

0 commit comments

Comments
 (0)