- Timestamp:
- Apr 6, 2018 3:02:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Transmission.ipf
r1084 r1094 259 259 gSamMatchList = quote + V_getFileIntentPurposeIDList("SAMPLE","SCATTERING",gTrnGrpID,0) + quote 260 260 // this resets a global string, since I can't pass a parameter (only constants) in value=fn() 261 PopupMenu popup_0,mode=1,value=#gSamMatchList 261 // PopupMenu popup_0,mode=1,value=#gSamMatchList 262 PopupMenu popup_0,mode=1,value=V_getSamListForPopup() 262 263 263 264 break … … 269 270 End 270 271 272 Function/S V_getSamListForPopup() 273 274 // String quote = "\"" 275 NVAR gTrnGrpID = root:Packages:NIST:VSANS:Globals:Transmission:gTrnGrpID 276 277 return(V_getFileIntentPurposeIDList("SAMPLE","SCATTERING",gTrnGrpID,0)) 278 End 271 279 272 280 Function V_TEmpBeamPopMenuProc(pa) : PopupMenuControl … … 281 289 SetVariable setvar_4,value=_STR:V_getSampleDescription(popStr) 282 290 283 // SetVariable setvar_6,value =_STR:"ML"284 291 285 292 WAVE boxCoord = V_getBoxCoordinates(popStr) … … 287 294 SetVariable setvar_5,value=_STR:V_NumWave2List(boxCoord,";") 288 295 296 String detStr = V_getReduction_BoxPanel(popStr) 297 SetVariable setvar_6,value =_STR:detStr 289 298 290 299 break … … 373 382 for(ii=0;ii<num;ii+=1) 374 383 SamFile = StringFromList(ii, list, ";") 375 V_CalcOneTransmission(SamFile,TransFile,EmptyFile) 384 385 if(ii==0) 386 // calculate the transmission for the first file 387 V_CalcOneTransmission(SamFile,TransFile,EmptyFile) 388 else 389 // then just write in the values (globals) that V_CalcOne determined 390 NVAR gTrans = root:Packages:NIST:VSANS:Globals:Transmission:gTrans 391 NVAR gTransErr = root:Packages:NIST:VSANS:Globals:Transmission:gTransErr 392 393 // write both out to the sample *scattering* file on disk 394 V_writeSampleTransmission(SamFile,gTrans) 395 V_writeSampleTransError(SamFile,gTransErr) 396 397 endif 376 398 endfor 377 399
Note: See TracChangeset
for help on using the changeset viewer.