Changeset 7406040 in sasview for DataLoader/readers/cansas_reader.py


Ignore:
Timestamp:
Oct 25, 2010 1:02:45 PM (14 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:
c4d6900
Parents:
d7b7156
Message:

added NIST 1D reduced xml format extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/cansas_reader.py

    r0997158f r7406040  
    112112    type_name = "CanSAS 1D" 
    113113    ## Wildcards 
    114     type = ["CanSAS 1D files (*.xml)|*.xml"] 
     114    type = ["CanSAS 1D files (*.xml)|*.xml", 
     115                        "CanSAS 1D AVE files (*.AVEx)|*.AVEx", 
     116                         "CanSAS 1D AVE files (*.ABSx)|*.ABSx"] 
     117 
    115118    ## List of allowed extensions 
    116     ext=['.xml', '.XML' 
     119    ext=['.xml', '.XML','.avex', '.AVEx', '.absx', 'ABSx' 
    117120     
    118121    def __init__(self): 
     
    134137        """ 
    135138        output = [] 
    136          
    137139        if os.path.isfile(path): 
    138140            basename  = os.path.basename(path) 
     
    159161        else: 
    160162            raise RuntimeError, "%s is not a file" % path 
    161          
    162163        # Return output consistent with the loader's api 
    163164        if len(output)==0: 
     
    540541         
    541542        write_node(doc, entry_node, "Title", datainfo.title) 
    542          
    543543        for item in datainfo.run: 
    544544            runname = {} 
Note: See TracChangeset for help on using the changeset viewer.