validate_small_angle#

jeanspy.model.ZhaoModel.validate_small_angle

Class and construction: ZhaoModel.

ZhaoModel.validate_small_angle(roi_deg)#

Validate cone half-angles for the small-angle J-factor methods.

roi_deg is a scalar or broadcastable array in degrees. Returns None when all values are finite, positive and no larger than small_angle_limit_deg. Otherwise raises ValueError.