Changeset c125e0c in sasview for DataLoader/readers/IgorReader.py


Ignore:
Timestamp:
Jul 2, 2008 10:39:39 AM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
9e85792
Parents:
70e9610
Message:

unit test added

File:
1 moved

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/IgorReader.py

    rbb03739 rc125e0c  
    7272                    wavelength = float(line_toks[1]) 
    7373                except: 
    74                     raise ValueError,"DataReader: can't read this file, missing wavelength" 
     74                    raise ValueError,"IgorReader: can't read this file, missing wavelength" 
    7575                # Distance in meters 
    7676                try: 
    7777                    distance = float(line_toks[3]) 
    7878                except: 
    79                     raise ValueError,"DataReader: can't read this file, missing distance" 
     79                    raise ValueError,"IgorReader: can't read this file, missing distance" 
    8080                 
    8181            if line.count("LAMBDA")>0: 
     
    103103                    or center_x == None \ 
    104104                    or center_y == None: 
    105                     raise ValueError, "Missing information in data file" 
     105                    raise ValueError, "IgorReader:Missing information in data file" 
    106106                 
    107107            if dataStarted == True: 
     
    165165        self.center_x = center_x 
    166166        self.center_y = center_y 
    167          
     167        print "IgorReader reading %s"%self.file 
    168168        return Z, xmin-xstep/2.0, xmax+xstep/2.0, ymin-ystep/2.0, ymax+ystep/2.0 
    169169      
Note: See TracChangeset for help on using the changeset viewer.