Changeset 738
- Timestamp:
- Sep 14, 2010 1:22:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/NSORT.ipf
r729 r738 1460 1460 popNum = WhichListItem(absStr,lowQPopStr,";",0) 1461 1461 if(popNum == -1) 1462 Abort "Could not find file: " + absStr +" aborting... "1462 Abort "Could not find file: " + absStr +" aborting... Be sure that your output format is the same as the input" 1463 1463 endif 1464 1464 popNum += 1 // add 1 to get the item number … … 1469 1469 popNum = WhichListItem(absStr,medHiQPopStr,";",0) 1470 1470 if(popNum == -1) 1471 Abort "Could not find file: "+absStr+" aborting... "1471 Abort "Could not find file: "+absStr+" aborting... Be sure that your output format is the same as the input" 1472 1472 endif 1473 1473 popNum += 1 // add 1 to get the item number … … 1480 1480 popNum = WhichListItem(absStr,medHiQPopStr,";",0) 1481 1481 if(popNum == -1) 1482 Abort "Could not find file: "+absStr+" aborting... "1482 Abort "Could not find file: "+absStr+" aborting... Be sure that your output format is the same as the input" 1483 1483 endif 1484 1484 popNum += 1 // add 1 to get the item number … … 1565 1565 RemoveTransFilesFromCombine() 1566 1566 // 1567 // make the waves and table for the sets to combine1568 Make/O/N=0 $"root:myGlobals:CombineTable:LowRun"1569 Make/O/N=0 $"root:myGlobals:CombineTable:MediumRun"1570 Make/O/N=0 $"root:myGlobals:CombineTable:HighRun"1571 Make/O/T/N=0 $"root:myGlobals:CombineTable:Prefix"1572 Make/O/T/N=0 $"root:myGlobals:CombineTable:SaveName"1573 1574 SetDataFolder root:myGlobals:CombineTable1575 1576 // make the second table1577 AppendToTable/W=CombinePanel#RunNumbersToCombine LowRun,MediumRun,HighRun,Prefix,SaveName1578 1579 1567 SetDataFolder root: 1568 1569 Killwaves/Z notRAWlist 1580 1570 End 1581 1571 … … 1843 1833 saveName[num] = saveStr 1844 1834 1835 KillWaves/Z tmpLbl,tmpRun,tmpSDD 1845 1836 return(0) 1846 1837 end … … 1855 1846 if(V_flag==0) 1856 1847 CombinePanel() 1848 CreateTableToCombine("") 1849 DoAlert 1,"Do you want to clear the list of runs and file names to combine?" 1850 TableToCombineAndSave(V_flag==1) // clear and initialize, if desired 1857 1851 endif 1858 1852 end … … 1867 1861 Button button0_2,pos={509,40},size={60,20},proc=CombinePanelDone,title="Done" 1868 1862 Button button0_3,pos={522,14},size={30,20},proc=ShowCombineHelp,title="?" 1863 Button button0_4,pos={500,220},size={120,20},proc=ClearCombineTable,title="Clear Table?" 1869 1864 Edit/W=(20,54,368,249)/HOST=# 1870 1865 ModifyTable format=1,width=0 … … 1892 1887 return(0) 1893 1888 end 1889 1890 Function ClearCombineTable(ctrlName) 1891 String ctrlName 1892 1893 DoAlert 1,"Do you want to clear the list of runs and file names to combine?" 1894 TableToCombineAndSave(V_flag==1) // clear and initialize, if desired 1895 return(0) 1896 end 1897 1898 Function TableToCombineAndSave(clear) 1899 Variable clear 1900 1901 if(clear) 1902 // make the waves and table for the sets to combine 1903 Make/O/N=0 $"root:myGlobals:CombineTable:LowRun" 1904 Make/O/N=0 $"root:myGlobals:CombineTable:MediumRun" 1905 Make/O/N=0 $"root:myGlobals:CombineTable:HighRun" 1906 Make/O/T/N=0 $"root:myGlobals:CombineTable:Prefix" 1907 Make/O/T/N=0 $"root:myGlobals:CombineTable:SaveName" 1908 endif 1909 SetDataFolder root:myGlobals:CombineTable 1910 1911 // make the second table 1912 AppendToTable/W=CombinePanel#RunNumbersToCombine LowRun,MediumRun,HighRun,Prefix,SaveName 1913 1914 SetDataFolder root: 1915 End
Note: See TracChangeset
for help on using the changeset viewer.