We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7d89d commit def95b7Copy full SHA for def95b7
GSASII/GSASIIpwdGUI.py
@@ -1644,7 +1644,13 @@ def OnBackSave(event):
1644
filename = os.path.splitext(filename)[0]+'.pwdrbck'
1645
File = open(filename,'w')
1646
File.write("#GSAS-II background parameter file; do not add/delete items!\n")
1647
- File.write(str(data[0])+'\n')
+ out_tmp = list()
1648
+ for item in data[0]:
1649
+ if isinstance(item, np.float64) or isinstance(item, float):
1650
+ out_tmp.append(float(item))
1651
+ else:
1652
+ out_tmp.append(item)
1653
+ File.write(str(out_tmp)+'\n')
1654
for item in data[1]:
1655
if item in ['nPeaks','background PWDR','nDebye'] or not len(data[1][item]):
1656
File.write(item+':'+str(data[1][item])+'\n')
0 commit comments