Changeset 954c045 in sasview


Ignore:
Timestamp:
Apr 2, 2009 9:32:47 AM (16 years ago)
Author:
Jae Cho <jhjcho@…>
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:
e5bfd57
Parents:
470bf7e
Message:

ACS reads abs files when errored from abs reader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/loader.py

    rbbc8013 r954c045  
    126126                    if ext not in self.loaders: 
    127127                        self.loaders[ext] = [] 
    128                     self.loaders[ext].insert(0,loader.read) 
     128                    #The first reading will use the reader with only one ext. 
     129                    if len(self.loaders[ext])>0 and len(loader.ext)>2: 
     130                        self.loaders[ext].insert(1,loader.read) 
     131                    else: 
     132                        self.loaders[ext].insert(0,loader.read) 
     133 
    129134                    reader_found = True 
    130                          
     135                     
    131136                    # Keep track of wildcards 
    132137                    for wcard in loader.type: 
     
    140145                            self.writers[ext] = [] 
    141146                        self.writers[ext].insert(0,loader.write) 
     147                         
    142148            except: 
    143149                logging.error("Loader: Error accessing Reader in %s\n  %s" % (name, sys.exc_value)) 
Note: See TracChangeset for help on using the changeset viewer.