Changeset 4571 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Sep 17, 2020 3:50:24 PM (16 months ago)
Author:
vondreele
Message:

Improvements to polarization stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r4570 r4571  
    137137       
    138138    def OnPolaCalib(event):
    139         IOtth = [data['IOtth'][0]+2.,data['IOtth'][1]-2.]
     139        if data['IOtth'][1] < 34.:
     140            G2G.G2MessageBox(G2frame,'Maximum 2-theta not greater than 34 deg',
     141                    'Polarization Calibration Error')
     142            return
     143        IOtth = [32.,data['IOtth'][1]-2.]
    140144        dlg = G2G.SingleFloatDialog(G2frame,'Polarization test arc mask',
    141145''' Do not use if pattern has uneven absorption
    142  Set 2-theta max in image controls to be fully inside image  
    143  Enter 2-theta position for arc mask (%.1f-%.1f) '''%(IOtth[0],IOtth[1]),IOtth[1],IOtth,format='%.2f')
     146 Set 2-theta max in image controls to be fully inside image
     147 Enter 2-theta position for arc mask (32-%.1f) '''%IOtth[1],IOtth[1],IOtth,format='%.2f')
    144148        if dlg.ShowModal() == wx.ID_OK:
    145149            arcTth = dlg.GetValue()
Note: See TracChangeset for help on using the changeset viewer.