Skip to content

Commit

Permalink
wip - unhandled internal-nodes-only stream
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Nov 14, 2024
1 parent 8f86cb4 commit e143ca7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/partitionIntoStreams.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export function partitionIntoStreams(enabled, branchLabel, nodes, visibility, co
stack.push(child)
}
}
if (nodesInStream.length===0) {
throw new Error("Stream constructed without any terminal tips. This is currently an unhandled error.")
}
// categories may have zero counts associated with them (over all pivots) depending on visibility settings
stream.categories = observedCategories(nodesInStream, colorScale);
stream.categoryColors = stream.categories.map((value) => colorScale.scale(value))
Expand Down

0 comments on commit e143ca7

Please sign in to comment.