The limit 0 < end_length_ratio < 0.5 should apply to all cases.
Also, in preparation for #153, we could consider here to allow nSegments=2 and nSegments=1 (which would simply return segment_ratios=numpy.array([0.5, 0.5]) and numpy.array([1.0])). A warning will be required in these cases to warn the user that the end_length_ratio parameter is overwritten.
The limit
0 < end_length_ratio < 0.5
should apply to all cases.Also, in preparation for #153, we could consider here to allow
nSegments=2
andnSegments=1
(which would simply returnsegment_ratios=numpy.array([0.5, 0.5])
andnumpy.array([1.0])
). A warning will be required in these cases to warn the user that theend_length_ratio
parameter is overwritten.closes #159