Ignore:
Timestamp:
Sep 17, 2013 4:22:51 PM (8 years ago)
Author:
toby
Message:

reorg UserCalibrants? into ImageCalibrants?; Add trim (whitespace) routine; fix InstName? bug in GetHistogramPhaseData?; rework ValidatedTxtCtrl? for CIF; ScrolledMultiEditor? now resets after Cancel; CIF export progress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ImageCalibrants.py

    r1049 r1057  
    33----------------------------------------
    44
    5 GSASII powder calibrants as a dictionary of substances commonly used for powder
    6 calibrations for image data.
     5GSASII powder calibrants as a dictionary ``ImageCalibrants.Calibrants`` with substances
     6commonly used for powder calibrations for image data.
    77
    8 Create your own in file UserCalibrants.py following the format shown here;
    9 if you use the same names given here your entries will replace the corresponding
    10 ones given here.
    11 Each entry consists of:
    12  'name':(Bravais no,(a,b,c,alpha,beta,gamma),no. lines skipped,(dmin,pixLimit,cutOff)
    13 Useful Bravais nos.: F-cubic=0,I-cubic=1,P-cubic=2,R3/m(hex)=3, P6=4, P4mmm=6
     8Each entry in ``ImageCalibrants`` consists of::
     9
     10  'key':([Bravais num,],[(a,b,c,alpha,beta,gamma),],no. lines skipped,(dmin,pixLimit,cutOff))
     11
     12as an example::
     13
     14  'LaB6  SRM660a':([2,],[(4.1569162,4.1569162,4.1569162,90,90,90),],0,(1.0,10,10)),
     15
     16or where "Bravais num" and "(a,b,...)" are repeated in the case of mixtures::
     17
     18  'LaB6 & CeO2':([2,0], [(4.1569,4.1569,4.1569,90,90,90),(5.4117,5.4117,5.4117,90,90,90)], 0, (1.0,2,1)),
     19
     20To expand this list with locally needed additions, do not modify this file,
     21because you may lose these changes during a software update. Instead
     22duplicate the format of this file in a file named `UserCalibrants.py`
     23and there define the material(s) you want::
     24
     25  Calibrants={
     26    'LaB6 skip 2 lines':([2,],[(4.1569162,4.1569162,4.1569162,90,90,90),],2,(1.0,10,10)),
     27  }
     28
     29New key values will be added to the list of options.
     30If a key is duplicated, the information in  `UserCalibrants.py` will
     31override the information in this file.
     32
     33Note, some useful Bravais numbers are: F-cubic=0, I-cubic=1, P-cubic=2, R3/m (hex)=3, P6=4, P4mmm=6
    1434"""
    1535Calibrants={
     
    3151}
    3252   
     53# this should not be duplicated in the UserCalibrants.py file:
     54try:
     55    import UserCalibrants as userFile
     56    Calibrants.update(userFile.Calibrants)
     57except:
     58    pass
Note: See TracChangeset for help on using the changeset viewer.