Ignore:
Timestamp:
Jun 21, 2011 1:07:46 PM (11 years ago)
Author:
srkline
Message:

Fixed comparison bug in NSORT / MRED / CatTable?

Fixed bug in writing of RAW VAX files (only used in simulation) that incorrectly converted 32 bit integer to 16 bit integer before compression, leading to negative counts for n ~> 37000.

Added source aperture and gravity to the MC simulation for a realistic beam profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/CatVSTable.ipf

    r707 r811  
    151151                        //write to notebook that file was not found 
    152152                        //if string is not a number, report the error 
    153                         if(str2num(partialName) == NaN) 
     153                        if(numtype(str2num(partialName)) == 2) 
    154154                                str = "this file was not found: "+partialName+"\r\r" 
    155155                                //Notebook CatWin,font="Times",fsize=12,text=str 
     
    508508                        //write to notebook that file was not found 
    509509                        //if string is not a number, report the error 
    510                         if(str2num(partialName) == NaN) 
     510                        if(numtype(str2num(partialName)) == 2) 
    511511                                str = "this file was not found: "+partialName+"\r\r" 
    512512                                Notebook CatWin,font="Times",fsize=12,text=str 
     
    677677                        //write to notebook that file was not found 
    678678                        //if string is not a number, report the error 
    679                         if(str2num(partialName) == NaN) 
     679                        if(numtype(str2num(partialName)) == 2) 
    680680                                str = "this file was not found: "+partialName+"\r\r" 
    681681                                Notebook CatWin,font="Times",fsize=12,text=str 
Note: See TracChangeset for help on using the changeset viewer.