Changeset 4539 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Aug 7, 2020 8:50:02 AM (3 years ago)
Author:
vondreele
Message:

remove commented old/bad code in G2IO
fix Instrument parameters plots for pink patterns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r4538 r4539  
    851851    Azms = np.zeros(data['outAzimuths'])
    852852    dazm = 0.
    853 #    if data['fullIntegrate'] and data['outAzimuths'] == 1:
    854 #        Azms = [0.0,]                              #a poor man's average?
    855 #    else:
    856 ##        for i,azm in enumerate(azms[:-1]):
    857 ##            if azm > 360. and azms[i+1] > 360.:
    858 ##                Azms.append(G2img.meanAzm(azm%360.,azms[i+1]%360.))
    859 ##            else:   
    860 ##                Azms.append(G2img.meanAzm(azm,azms[i+1]))
    861853    if data['outAzimuths'] > 1:
    862854        dazm = np.min(np.abs(np.diff(azms)))/2.
     
    887879        polariz = data['PolaVal'][0]
    888880        for item in Comments:
    889             # if 'polariz' in item:
    890             #     try:
    891             #         polariz = float(item.split('=')[1])
    892             #     except:
    893             #         polariz = 0.99
    894881            for key in ('Temperature','Pressure','Time','FreePrm1','FreePrm2','FreePrm3','Omega',
    895882                'Chi','Phi'):
Note: See TracChangeset for help on using the changeset viewer.