def _validate_sr(radius):
 if isinstance(radius, Quantity):
  sr_angle = radius.to(u.degree)
 else:
  sr_angle = (radius * u.degree)
 return sr_angle.value

def _validate_sr ( radius ) : if isinstance ( radius , Quantity ) : sr_angle = radius . to ( u . degree ) else : sr_angle = ( radius * u . degree ) return sr_angle . value
validate search radius .