f"The lengths of "flows" ({n}) and "labels" ({len(labels)}) "
f"are incompatible")
else:
labels = [labels] * n
if trunklength < 0:
raise ValueError(
""trunklength" is negative, which is not allowed because it "
After Change
f"{np.shape(orientations)} are incompatible"
) from None
try:
labels = np.broadcast_to(labels, n)
except ValueError:
raise ValueError(
f"The shapes of "flows" {np.shape(flows)} and "labels" "
f"{np.shape(labels)} are incompatible"