Changeset 3329
 Timestamp:
 Mar 30, 2018 2:25:41 PM (5 years ago)
 Location:
 trunk
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIImath.py
r3318 r3329 3071 3071 M = np.mgrid[0:4,0:4,0:4] 3072 3072 blkIds = np.array(list(zip(M[0].flatten(),M[1].flatten(),M[2].flatten()))) 3073 iBeg = blkIds*rho0.shape/ 43074 iFin = (blkIds+1)*rho0.shape/ 43073 iBeg = blkIds*rho0.shape//4 3074 iFin = (blkIds+1)*rho0.shape//4 3075 3075 rho_omit = np.zeros_like(rho0) 3076 3076 nBlk = 0 
trunk/GSASIIphsGUI.py
r3325 r3329 8725 8725 G2frame.ErrorDialog('Fourier map error','Fourier map type not defined') 8726 8726 return 8727 if not len(reflNames):8727 if not reflNames[0]: 8728 8728 G2frame.ErrorDialog('Fourier map error','No reflections defined for Fourier map') 8729 8729 return 8730 8730 phaseName = generalData['Name'] 8731 8731 ReflData = GetReflData(G2frame,phaseName,reflNames) 8732 if ReflData == None: return 8732 if ReflData == None: 8733 G2frame.ErrorDialog('Fourier map error','No reflections defined for Fourier map') 8734 return 8733 8735 if 'Omit' in mapData['MapType']: 8734 8736 dim = '3D ' … … 8823 8825 flipData = generalData['Flip'] 8824 8826 reflNames = flipData['RefList'] 8825 if not len(reflNames):8827 if not reflNames[0]: 8826 8828 G2frame.ErrorDialog('Charge flip error','No reflections defined for charge flipping') 8827 8829 return 8828 8830 phaseName = generalData['Name'] 8829 8831 ReflData = GetReflData(G2frame,phaseName,reflNames) 8830 if ReflData == None: return 8832 if ReflData == None: 8833 G2frame.ErrorDialog('Charge flip error','No reflections defined for charge flipping') 8834 return 8831 8835 pgbar = wx.ProgressDialog('Charge flipping','Residual Rcf =',101.0, 8832 8836 style = wx.PD_ELAPSED_TIMEwx.PD_AUTO_HIDEwx.PD_CAN_ABORT) … … 8859 8863 flipData = generalData['Flip'] 8860 8864 reflNames = flipData['RefList'] 8861 if not len(reflNames):8865 if not reflNames[0]: 8862 8866 G2frame.ErrorDialog('Charge flip error','No reflections defined for charge flipping') 8863 8867 return 8864 8868 phaseName = generalData['Name'] 8865 8869 ReflData = GetReflData(G2frame,phaseName,reflNames) 8866 if ReflData == None: return 8870 if ReflData == None: 8871 G2frame.ErrorDialog('Charge flip error','No reflections defined for charge flipping') 8872 return 8867 8873 pgbar = wx.ProgressDialog('Charge flipping','Residual Rcf =',101.0, 8868 8874 style = wx.PD_ELAPSED_TIMEwx.PD_AUTO_HIDEwx.PD_CAN_ABORT)
Note: See TracChangeset
for help on using the changeset viewer.