- Timestamp:
- Feb 22, 2013 3:21:48 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/Wrapper_v40.ipf
r891 r901 1176 1176 1177 1177 //save the notebook and the graphic file 1178 // saving with a unique name can be an issue if there are a lot of files with similar names 1179 // and the fit function has a long name 1178 1180 if(yesSave) 1179 String nameStr=CleanupName(func,0) 1180 nameStr += "_"+dataname 1181 String nameStr 1182 // function first 1183 // nameStr=CleanupName(func,0) 1184 // nameStr += "_"+dataname 1185 // nameStr = ReplaceString("Smeared",nameStr,"Sm_") //if Smeared function, shorten the name 1186 // -- or 1187 // data first 1188 nameStr = dataname+"_" 1189 nameStr += CleanupName(func,0) 1181 1190 nameStr = ReplaceString("Smeared",nameStr,"Sm_") //if Smeared function, shorten the name 1191 1182 1192 //make sure the name is no more than 31 characters 1183 1193 namestr = namestr[0,30] //if shorter than 31, this will NOT pad to 31 characters 1194 1184 1195 Print "file saved as ",nameStr 1185 1196 SaveNotebook /O/P=home/S=2 $nb as nameStr
Note: See TracChangeset
for help on using the changeset viewer.