Changeset 3353
- Timestamp:
- Apr 20, 2018 2:08:08 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3336 r3353 2416 2416 for row in range(Atoms.GetNumberRows()): 2417 2417 Atoms.SelectRow(row,True) 2418 wx.CallAfter(Paint)2419 2418 return 2420 2419 if r < 0: #double click on col label! Change all atoms! -
trunk/GSASIIplot.py
r3352 r3353 2453 2453 SampleList.append(G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame, 2454 2454 id, 'Sample Parameters'))) 2455 if not G2frame.Contour: 2456 PlotList.reverse() 2457 ParmList.reverse() 2458 SampleList.reverse() 2455 2459 lenX = 0 2456 2460 Ymax = None … … 2520 2524 ContourY = [] 2521 2525 Nseq = 0 2526 Nmax = len(PlotList)-1 2522 2527 for N,Pattern in enumerate(PlotList): 2523 2528 Parms = ParmList[N] … … 2525 2530 ifpicked = False 2526 2531 LimitId = 0 2532 NoffY = offsetY*(Nmax-N) 2527 2533 if Pattern[1] is None: continue # skip over uncomputed simulations 2528 2534 xye = np.array(ma.getdata(Pattern[1])) # strips mask … … 2606 2612 elif 'PWDR' in plottype and G2frame.SinglePlot and not ( 2607 2613 G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour): 2608 Y = xye[1]*multArray+bxye+ offsetY*N*Ymax/100.02614 Y = xye[1]*multArray+bxye+NoffY*Ymax/100.0 2609 2615 else: 2610 Y = xye[1]+bxye+ offsetY*N*Ymax/100.02616 Y = xye[1]+bxye+NoffY*Ymax/100.0 2611 2617 elif plottype in ['SASD','REFD']: 2612 2618 if plottype == 'SASD': … … 2615 2621 B = np.zeros_like(xye[5]) 2616 2622 if G2frame.plotStyle['sqPlot']: 2617 Y = xye[1]*Sample['Scale'][0]*(1.05)** (offsetY*N)*X**42623 Y = xye[1]*Sample['Scale'][0]*(1.05)**NoffY*X**4 2618 2624 else: 2619 Y = xye[1]*Sample['Scale'][0]*(1.05)** (offsetY*N)2625 Y = xye[1]*Sample['Scale'][0]*(1.05)**NoffY 2620 2626 if LimitId and ifpicked: 2621 2627 limits = np.array(G2frame.GPXtree.GetItemPyData(LimitId)) … … 2661 2667 if 'PWDR' in plottype and G2frame.SinglePlot and not ( 2662 2668 G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour): 2663 Z = xye[3]*multArray+ offsetY*N*Ymax/100.02669 Z = xye[3]*multArray+NoffY*Ymax/100.0 2664 2670 else: 2665 Z = xye[3]+ offsetY*N*Ymax/100.02671 Z = xye[3]+NoffY*Ymax/100.0 2666 2672 if 'PWDR' in plottype: 2667 2673 if G2frame.plotStyle['sqrtPlot']: … … 2672 2678 elif 'PWDR' in plottype and G2frame.SinglePlot and not ( 2673 2679 G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour): 2674 W = xye[4]*multArray+ offsetY*N*Ymax/100.02680 W = xye[4]*multArray+NoffY*Ymax/100.0 2675 2681 D = multArray*xye[5]-Pattern[0]['delOffset'] #powder background 2676 2682 else: 2677 W = xye[4]+ offsetY*N*Ymax/100.02683 W = xye[4]+NoffY*Ymax/100.0 2678 2684 D = xye[5]-Pattern[0]['delOffset'] #powder background 2679 2685 elif plottype in ['SASD','REFD']: -
trunk/GSASIIstrMath.py
r3346 r3353 1090 1090 mSize = len(Mdata) 1091 1091 Mag = np.sqrt(np.array([np.inner(mag,np.inner(mag,GS)) for mag in Gdata.T])) 1092 dGdM = np. repeat(Gdata[:,nxs,:],Nops,axis=1)1092 dGdM = np.array([np.inner(mag,GS) for mag in Gdata.T]).T/Mag 1093 1093 1094 1094 Gdata = np.inner(Gdata.T,SGMT).T #apply sym. ops. … … 1158 1158 # dqmx2 = np.sum(dqmx,axis=1) #matrix * vector = vector 1159 1159 # dqmx1 = np.swapaxes(np.swapaxes(np.inner(dqdm.T,dGdm.T),0,1),2,3) 1160 dmx = (NQ*Q*dGdM[:,nxs, :,:])/Mag#just use dpdM term & ignore dqdM term(small)1160 dmx = (NQ*Q*dGdM[:,nxs,nxs,:]) #just use dpdM term & ignore dqdM term(small) 1161 1161 # dmx = (NQ*Q*dGdM[:,nxs,:,:]-Q*dqmx2)/Mag 1162 1162
Note: See TracChangeset
for help on using the changeset viewer.