- Timestamp:
- Nov 16, 2017 10:57:32 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_FileCatalog.ipf
r1064 r1073 17 17 // some experiments (magnetic, rotation, temperature scans, etc.) but are necessary for others. 18 18 // 19 // TODO PRIORITY:19 // (DONE): 20 20 // x- clean up the list of files that now accumulates in the RawVSANS folder!!! Everything is there, including 21 21 // files that are NOT RAW VSANS data (MASK and DIV, but these are HDF) … … 31 31 // clear out the folders in the RawVSANS folder, otherwise any changes/patches written to disk 32 32 // will not be read in, the "bad" local copy will be read in. 33 // TODO:33 // (DONE) 34 34 // x- this *may* be a very slow operation. Warn users. Give them a choice to keep local copies. If 35 35 // the "patched" values are written locally too, then maybe the update from disk is not needed. 36 36 // But typically, I'd like to see that the disk version really did get updated... 37 // --make a background task to periodically "kill" a few of the files? maybe too dangerous.38 // --change the V_GetHeaderInfoToWave function to allow "refreshing" of a single row, say after37 // x- (NO)make a background task to periodically "kill" a few of the files? maybe too dangerous. 38 // x- (NO)change the V_GetHeaderInfoToWave function to allow "refreshing" of a single row, say after 39 39 // a file has been patched - then the disk and local copies are in sync 40 40 // … … 160 160 ModifyTable width(Point)=0 //JUN04, remove point numbers - confuses users since point != run 161 161 162 // TODO:162 // (DONE) 163 163 // x- experimental hook with contextual menu 164 164 // … … 171 171 // clear out the folders in the RawVSANS folder, otherwise any changes/patches written to disk 172 172 // will not be read in, the "bad" local copy will be read in for any subsequent operations. 173 // TODO:173 // (DONE) 174 174 // x- this *may* be a very slow operation. Warn users. Give them a choice to keep local copies? If 175 175 // the "patched" values are written locally too, then maybe the update from disk is not needed. … … 192 192 numitems = ItemsInList(list,";") 193 193 194 // show a progress bar for filling the file catalog 195 Variable indefinite=0,useIgorDraw=1 196 NewPanel /N=ProgressPanel /W=(285,111,739,193) 197 ValDisplay valdisp0,win=ProgressPanel,pos={18,32},size={342,18},limits={0,numitems,0},barmisc={0,0} 198 ValDisplay valdisp0,win=ProgressPanel,value= _NUM:0 199 DrawText 20,24,"Refreshing file catalog... Please Wait..." 200 201 if( indefinite ) 202 ValDisplay valdisp0,win=ProgressPanel,mode= 4 // candy stripe 203 else 204 ValDisplay valdisp0,win=ProgressPanel,mode= 3 // bar with no fractional part 205 endif 206 if( useIgorDraw ) 207 ValDisplay valdisp0,win=ProgressPanel,highColor=(49535,1000,1000) //(0,65535,0) 208 endif 209 Button bStop,win=ProgressPanel,pos={375,32},size={50,20},title="Stop" 210 DoUpdate /W=ProgressPanel /E=1 // mark this as our progress window 211 212 194 213 //loop through all of the files in the list, reading CAT/SHORT information if the file is RAW SANS 195 //***version numbers have been removed***196 214 String str,fullName 197 215 Variable lastPoint … … 232 250 Endif 233 251 ii+=1 252 253 ValDisplay valdisp0,win=ProgressPanel,value= _NUM:ii 254 DoUpdate /W=ProgressPanel 255 234 256 while(ii<numitems) 257 258 KillWindow ProgressPanel 259 235 260 //Now sort them all based on some criterion that may be facility dependent (aim is to order them as collected) 236 261 V_SortWaves() 262 237 263 //Append the files that are not raw files to the list 238 239 264 V_AppendNotRAWFiles(notRAWlist) 240 265 KillWaves/Z notRAWlist … … 245 270 // 246 271 // clean out again, so that the file SAVE is not slow due to the large experiment size 247 // TODOx- decide if this is really necessary (not necessary at this point)272 // (DONE) x- decide if this is really necessary (not necessary at this point) 248 273 // 249 274 // V_CleanOutRawVSANS() … … 339 364 End 340 365 341 //sorts all of the waves of header information using the suffix (A123) 342 //the result is that all of the data is in the order that it was collected, 343 // regardless of how the prefix or run numbers were changed by the user 366 // 344 367 Function V_SortWaves() 345 368 Wave/T GFilenames = $"root:Packages:NIST:VSANS:CatVSHeaderInfo:Filenames" … … 463 486 464 487 // //read the file alphanumeric suffix 465 // // TODOx- this does not exist for VSANS - so is there an equivalent, or delete? ((delete))488 // // (DONE) x- this does not exist for VSANS - so is there an equivalent, or delete? ((delete)) 466 489 // InsertPoints lastPoint,1,GSuffix 467 490 // GSuffix[lastPoint]="unknown" … … 492 515 493 516 //Attenuators 494 // TODO -- this is the "number" of the attenuator, but what is its relation to the 495 // stack of 4 plates? binary representation? 517 // (DONE) x- this is the "number" of the attenuator 496 518 InsertPoints lastPoint,1,GNumAttens 497 519 GNumAttens[lastPoint]=V_getAtten_number(fname)
Note: See TracChangeset
for help on using the changeset viewer.