Changeset 1591
- Timestamp:
- Dec 2, 2014 1:30:45 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.BAT
r1575 r1591 14 14 @set gsasloc=%gsasloc:\\*=\*% 15 15 @set gsasloc=%gsasloc:\*=\% 16 D:\Python27\python "%gsasloc%\GSASII.py" %116 python "%gsasloc%\GSASII.py" %1 17 17 @REM To keep the window from disappearing with any error messages 18 18 pause -
trunk/GSASII.py
r1578 r1591 3434 3434 #works - but it'd be better if it could restore plots 3435 3435 dlg = wx.ProgressDialog('Residual','All data Rw =',101.0, 3436 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT )3437 screenSize = wx.ClientDisplayRect()3436 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT, 3437 parent=self) 3438 3438 Size = dlg.GetSize() 3439 Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x3440 dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))3441 dlg. SetSize(Size)3439 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 3440 dlg.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 3441 dlg.CenterOnParent() 3442 3442 Rw = 100.00 3443 3443 try: 3444 3444 Rw = G2stMn.Refine(self.GSASprojectfile,dlg) 3445 3445 finally: 3446 dlg.Update(101.) # forces the Auto_Hide; needed after move w/Win & wx3.0 3446 3447 dlg.Destroy() 3447 3448 wx.Yield() … … 3507 3508 return 3508 3509 dlg = wx.ProgressDialog('Residual for histogram 0','Powder profile Rwp =',101.0, 3509 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT )3510 screenSize = wx.ClientDisplayRect()3510 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT, 3511 parent=self) 3511 3512 Size = dlg.GetSize() 3512 Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x3513 dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))3514 dlg. SetSize(Size)3513 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 3514 dlg.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 3515 dlg.CenterOnParent() 3515 3516 try: 3516 3517 G2stMn.SeqRefine(self.GSASprojectfile,dlg) 3517 3518 finally: 3518 dlg.Destroy() 3519 dlg.Update(101.) # forces the Auto_Hide; needed after move w/Win & wx3.0 3520 dlg.Destroy() 3521 wx.Yield() 3519 3522 dlg = wx.MessageDialog(self,'Load new result?','Refinement results',wx.OK|wx.CANCEL) 3520 3523 try: -
trunk/GSASIIstrMath.py
r1562 r1591 2166 2166 dMdvh *= Wt 2167 2167 if dlg: 2168 dlg.Update(Histogram['Residuals']['wR'],newmsg='Hessian for histogram %d\nAll data Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%')) [0]2168 dlg.Update(Histogram['Residuals']['wR'],newmsg='Hessian for histogram %d\nAll data Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%')) 2169 2169 if len(Hess): 2170 2170 Hess += np.inner(dMdvh,dMdvh)
Note: See TracChangeset
for help on using the changeset viewer.