def METHOD_NAME(ai,characteristic_sampling,max_cell):
    H = HemisphereSamplerBase(characteristic_grid = characteristic_sampling,max_cell=max_cell)
    H.hemisphere(ai,size=480,cutoff_divisor=1.5)
    #1.0/cutoff divisor is the height requirement (as a fraction of total Bragg spots)
    #required to consider a direction as a candidate basis vector.  4.0 good for
    #macromolecular work, 1.5 ok for small molecules; probably 1.1 would do.