Changeset 4387

Show
Ignore:
Timestamp:
07/17/07 12:41:58 (6 years ago)
Author:
DrewCormier
Message:

for new dir structure. assume that DAS file has the same waveform name as the sad file so that list of available waveforms can populate correctly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • experimental/ALF/trunk/alf/ALF.py

    r4385 r4387  
    423423                        sad_file = fname 
    424424                        full_sad_file = dirpath + "/" + fname 
    425                 if fname.find("_DAS.xml") != -1: 
    426                     # make sure that the '_DAS.xml' comes at the end of the file name 
    427                     if fname[-8:] == "_DAS.xml":     
    428                         das_file = fname 
    429                         full_das_file = dirpath + "/" + fname 
     425                        # for framework > r2983, assume DAS file has the same waveform 
     426                        # name as the sad file, and assume that both files are in the  
     427                        # same directory.  similar to c_wavLoader. 
     428                        das_file = fname.strip(".sad.xml") + "_DAS.xml" 
     429                        full_das_file = dirpath + "/" + das_file 
     430 
     431                # for framework <= r2983: 
     432                # if fname.find("_DAS.xml") != -1: 
     433                #     # make sure that the '_DAS.xml' comes at the end of the file name 
     434                #     if fname[-8:] == "_DAS.xml":     
     435                #         das_file = fname 
     436                #         full_das_file = dirpath + "/" + fname 
     437 
     438 
    430439            if (sad_file == None and das_file != None) or (sad_file != None and das_file == None): 
    431440                #errorMsg(self, "Could not find both a SAD file and a DAS in this directory:\n " + dirpath) 
     
    439448                errorMsg(self, "Conflicting waveform name: " + wavename) 
    440449                continue 
    441                  
     450                
    442451            self.availableWaveforms[wavename] = (sad_file, full_sad_file, das_file, full_das_file) 
    443452 
     
    484493        self.domMgr.installApplication(name_SAD) 
    485494 
     495 
     496        print name_SAD 
     497        print absolute_name_SAD 
     498        print name_DAS 
     499        print absolute_name_DAS 
    486500         
    487501        dasxml = importResource.stripDoctype(absolute_name_DAS)