Changeset 4549
- Timestamp:
- Aug 19, 2020 2:53:47 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4548 r4549 5034 5034 if OK: 5035 5035 Rw = Msg['Rwp'] 5036 rtext = 'LS Refinement: Rw = %.3f%%, GOF = %.2f, Nobs = %d, Max delt/sig = %.3f'%(Msg['Rwp'],Msg['GOF'],Msg['Nobs'],Msg['Max shft/sig']) 5036 5037 lamMax = Msg.get('lamMax',0.001) 5037 5038 lst = os.path.splitext(os.path.abspath(self.GSASprojectfile))[0] … … 5045 5046 if dlg2.ShowModal() == wx.ID_OK: 5046 5047 if refPlotUpdate: refPlotUpdate({},restore=True) 5047 wx.CallAfter(self.reloadFromGPX)5048 self.reloadFromGPX 5048 5049 else: 5049 5050 if refPlotUpdate: refPlotUpdate({},restore=True) 5051 self.AddToNotebook(rtext) 5050 5052 finally: 5051 5053 dlg2.Destroy() -
trunk/exports/G2export_csv.py
r4548 r4549 212 212 for val,digits in zip(vallist,digitList): 213 213 if line: line += ',' 214 line += G2py3.FormatValue(val,digits) 214 line += '%.6g'%val 215 # line += G2py3.FormatValue(val,digits) 215 216 self.Write(line) 216 217 self.CloseFile() … … 284 285 for val,digits in zip(vallist,digitList): 285 286 if line: line += ',' 286 line += G2py3.FormatValue(val,digits) 287 line += '%.6g'%val 288 # line += G2py3.FormatValue(val,digits) 287 289 self.Write(line) 288 290 self.CloseFile() … … 439 441 for val,digits in zip(vallist,digitList): 440 442 if line: line += ',' 441 line += G2py3.FormatValue(val,digits) 443 line += '%.6g'%val 444 # line += G2py3.FormatValue(val,digits) 442 445 self.Write(line) 443 446 self.CloseFile() … … 484 487 self.OpenFile(filename) 485 488 histblk = self.Histograms[TreeName] 486 # if len(self.Histograms[TreeName]['Models']['Size']['Distribution']):487 # self.Write('"Size Distribution"')488 # Distr = np.array(self.Histograms[TreeName]['Models']['Size']['Distribution'])489 # WriteList(self,("bin_pos","bin_width","bin_value"))490 # digitList = 2*((13,3),)+((13,4,'g'),)491 # for bindata in Distr.T:492 # line = ""493 # for val,digits in zip(bindata,digitList):494 # if line: line += ','495 # line += G2py3.FormatValue(val,digits)496 # self.Write(line)497 489 self.Write('"Reflectometry data"') 498 490 Parms = self.Histograms[TreeName]['Instrument Parameters'][0] … … 516 508 for val,digits in zip(vallist,digitList): 517 509 if line: line += ',' 518 line += G2py3.FormatValue(val,digits) 510 line += '%.6g'%val 511 # line += G2py3.FormatValue(val,digits) 519 512 self.Write(line) 520 513 self.CloseFile()
Note: See TracChangeset
for help on using the changeset viewer.