Changeset 4792 for trunk/GSASIIindex.py


Ignore:
Timestamp:
Feb 2, 2021 11:01:51 AM (12 months ago)
Author:
toby
Message:

check in changes to allow cctbx to use DoIndexPeaks and !refinePeaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIindex.py

    r4791 r4792  
    787787    return len(HKL),M20,X20,Aref,Vref,Z
    788788   
    789 def refinePeaks(peaks,ibrav,A,ifX20=True,sg_type=None):
     789def refinePeaks(peaks,ibrav,A,ifX20=True,cctbx_args=None):
    790790    'needs a doc string'
    791791    dmin = getDmin(peaks)
     
    795795    OK = False
    796796    tries = 0
    797     sg_type = G2lat.make_sgtype(ibrav)
    798     HKL = G2lat.GenHBravais(dmin,ibrav,A,sg_type)
     797    HKL = G2lat.GenHBravais(dmin,ibrav,A,cctbx_args)
    799798    while len(HKL) > 2 and IndexPeaks(peaks,HKL)[0]:
    800799        Pwr = pwr - (tries % 2)
     
    811810            continue
    812811        try:
    813             HKL = G2lat.GenHBravais(dmin,ibrav,A,sg_type)
     812            HKL = G2lat.GenHBravais(dmin,ibrav,A,cctbx_args)
    814813        except FloatingPointError:
    815814            A = oldA
Note: See TracChangeset for help on using the changeset viewer.