@@ -0,0 +1,1008 @@
+import cv2%0Aimport numpy as np%0Afrom plantcv.plantcv import outputs%0Afrom plantcv.plantcv.morphology import segment_angle%0A%0A%0Adef test_segment_angle(morphology_test_data):%0A    # Clear previous outputs%0A    outputs.clear()%0A    skeleton = cv2.imread(morphology_test_data.skel_img, -1)%0A    _ = segment_angle(segmented_img=skeleton,%0A                      objects=morphology_test_data.load_segments(morphology_test_data.segments_file, %22leaves%22))%0A    assert len(outputs.observations%5B'default'%5D%5B'segment_angle'%5D%5B'value'%5D) == 4%0A%0A%0Adef test_segment_angle_overflow():%0A    # Clear previous outputs%0A    outputs.clear()%0A    # Don't prune, would usually give overflow error without extra if statement in segment_angle%0A    skeleton = np.zeros((10, 10), dtype=np.uint8)%0A    edges = %5Bnp.array(%5B%5B%5B5, 3%5D%5D, %5B%5B5, 4%5D%5D, %5B%5B5, 5%5D%5D, %5B%5B5, 6%5D%5D, %5B%5B5, 7%5D%5D, %5B%5B5, 6%5D%5D, %5B%5B5, 5%5D%5D, %5B%5B5, 4%5D%5D%5D, dtype=np.int32)%5D%0A    _ = segment_angle(segmented_img=skeleton, objects=edges)%0A    assert len(outputs.observations%5B'default'%5D%5B'segment_angle'%5D%5B'value'%5D) == 1%0A

Add segment_angle tests module