Changeset 4538 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Aug 6, 2020 9:59:46 AM (3 years 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

File:
1 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'):
Note: See TracChangeset for help on using the changeset viewer.