Changeset 4538


Ignore:
Timestamp:
Aug 6, 2020 9:59:46 AM (15 months ago)
Author:
vondreele
Message:

fix integer divide issue in ComputeArc? in G2plot
remove Spotmask is None message (Spotmask is missing was removed earlier)
in SaveIntegration? get polarization from dataPolaVal? instead of from Comments

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r4498 r4538  
    885885        Sample['Phi'] = data['GonioAngles'][2]
    886886        Sample['Azimuth'] = (azm+dazm)%360.    #put here as bin center
    887         polariz = 0.99    #set default polarization for synchrotron radiation!
     887        polariz = data['PolaVal'][0]
    888888        for item in Comments:
    889             if 'polariz' in item:
    890                 try:
    891                     polariz = float(item.split('=')[1])
    892                 except:
    893                     polariz = 0.99
     889            # if 'polariz' in item:
     890            #     try:
     891            #         polariz = float(item.split('=')[1])
     892            #     except:
     893            #         polariz = 0.99
    894894            for key in ('Temperature','Pressure','Time','FreePrm1','FreePrm2','FreePrm3','Omega',
    895895                'Chi','Phi'):
  • trunk/GSASIIplot.py

    r4537 r4538  
    67946794    xy2 = []
    67956795    aR = [azm0,azm1,max(3,int(0.5+azm1-azm0))] # number of points should be at least 3
    6796     if azm1-azm0 > 180: aR[2] /= 2  # for more than 180 degrees, steps can be 2 deg.
     6796    if azm1-azm0 > 180: aR[2] //= 2  # for more than 180 degrees, steps can be 2 deg.
    67976797    Azm = np.linspace(*aR)
    67986798    for azm in Azm:
     
    76417641                MaskA = ma.getmaskarray(MA)
    76427642            except TypeError: # needed if spotMasks set to initial value (None)
    7643                 if GSASIIpath.GetConfigValue('debug'): print('spotMask is None')
     7643#                if GSASIIpath.GetConfigValue('debug'): print('spotMask is None')
    76447644                MaskA = ma.getmaskarray(MA)
    76457645            for xline in Masks.get('Xlines',[]):
Note: See TracChangeset for help on using the changeset viewer.