Changeset b99ac227 in sasview for DataLoader/data_info.py


Ignore:
Timestamp:
Aug 6, 2008 10:54:02 AM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
17a6843
Parents:
99d1af6
Message:

Updates and tests for readers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/data_info.py

    r99d1af6 rb99ac227  
    1414project funded by the US National Science Foundation.  
    1515 
    16 See the license text in license.txt 
     16If you use DANSE applications to do scientific research that leads to  
     17publication, we ask that you acknowledge the use of the software with the  
     18following sentence: 
     19 
     20"This work benefited from DANSE software developed under NSF award DMR-0520547."  
    1721 
    1822copyright 2008, University of Tennessee 
     
    307311    errors = [] 
    308312             
     313    def __init__(self): 
     314        """ 
     315            Initialization 
     316        """ 
     317        ## Title  
     318        self.title      = '' 
     319        ## Run number 
     320        self.run        = None 
     321        ## File name 
     322        self.filename   = '' 
     323        ## Notes 
     324        self.notes      = [] 
     325        ## Processes (Action on the data) 
     326        self.process    = [] 
     327        ## Instrument name 
     328        self.instrument = '' 
     329        ## Detector information 
     330        self.detector   = [] 
     331        ## Sample information 
     332        self.sample     = Sample() 
     333        ## Source information 
     334        self.source     = Source() 
     335        ## Collimation information 
     336        self.collimation = [] 
     337        ## Additional meta-data 
     338        self.meta_data  = {} 
     339        ## Loading errors 
     340        self.errors = []         
     341         
    309342    def __str__(self): 
    310343        """ 
     
    429462     
    430463    def __init__(self, x, y, dx=None, dy=None): 
     464        DataInfo.__init__(self) 
    431465        plottable_1D.__init__(self, x, y, dx, dy) 
     466        if len(self.detector)>0: 
     467            raise RuntimeError, "Data1D: Detector bank already filled at init" 
     468         
    432469         
    433470    def __str__(self): 
     
    553590     
    554591    def __init__(self, data=None, err_data=None): 
     592        DataInfo.__init__(self) 
    555593        plottable_2D.__init__(self, data, err_data) 
     594        if len(self.detector)>0: 
     595            raise RuntimeError, "Data2D: Detector bank already filled at init" 
    556596 
    557597    def __str__(self): 
Note: See TracChangeset for help on using the changeset viewer.