Changeset 1107 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
Oct 15, 2013 3:01:21 PM (8 years ago)
Author:
vondreele
Message:

make reflist np.array
fix bug - hfx+'Type' needs to be in parmDict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrIO.py

    r1106 r1107  
    303303                        RefData['Phi'].append(ref[12])
    304304                        RefData['FF'].append(ref[14])
     305                    RefData['RefList'] = np.array(RefData['RefList'])
    305306                    datum[1][1] = RefData
    306307#end patch
     
    17721773                        else:
    17731774                            raise ValueError
    1774                     Histogram['Reflection Lists'][phase] = {'RefList':refList,'Uniq':Uniq,'Phi':Phi,'FF':FF}
     1775                    Histogram['Reflection Lists'][phase] = {'RefList':np.array(refList),
     1776                        'Uniq':Uniq,'Phi':Phi,'FF':FF}
    17751777            elif 'HKLF' in histogram:
    17761778                inst = Histogram['Instrument Parameters'][0]
     
    17781780                hfx = ':%d:'%(hId)
    17791781                for item in inst:
    1780                     if type(inst) is not list: continue # skip over non-refined items (such as InstName)
     1782                    if type(inst) is not list and item != 'Type': continue # skip over non-refined items (such as InstName)
    17811783                    hapDict[hfx+item] = inst[item][1]
    17821784                pfx = str(pId)+':'+str(hId)+':'
Note: See TracChangeset for help on using the changeset viewer.