Changeset 480ddb4 in sasview


Ignore:
Timestamp:
Jun 24, 2010 6:00:12 PM (14 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:
697d798
Parents:
6db541f
Message:

working on documentation

Location:
DataLoader
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/docs/sphinx/api/index.rst

    r0997158f r480ddb4  
    1515 
    1616   data_info.rst 
     17   loader.rst 
    1718   manipulations.rst 
    1819   qsmearing.rst 
  • DataLoader/docs/sphinx/api/readers/index.rst

    r0997158f r480ddb4  
    1818   associations.rst 
    1919   cansas_reader.rst 
     20   danse_reader.rst 
    2021   hfir1d_reader.rst 
    2122   IgorReader.rst 
  • DataLoader/docs/sphinx/conf.py

    r0997158f r480ddb4  
    1212# serve to show the default. 
    1313 
    14 import sys, os 
     14import sys, os, glob 
    1515 
    1616# If extensions (or modules to document with autodoc) are in another directory, 
    1717# add these directories to sys.path here. If the directory is relative to the 
    1818# documentation root, use os.path.abspath to make it absolute, like shown here. 
    19 sys.path.append(os.path.abspath(os.path.dirname('../../DataLoader'))) 
    20 sys.path.append(os.path.abspath(os.path.dirname('../../DataLoader/readers'))) 
     19 
     20path = glob.glob('../../build/lib.*')[0] 
     21sys.path.append(path) 
     22 
    2123sys.path.append(os.path.abspath('_extensions')) 
    2224# -- General configuration ----------------------------------------------------- 
  • DataLoader/docs/sphinx/genmods.py

    r0997158f r480ddb4  
    5151        f.write(INDEX_TEMPLATE%locals()) 
    5252 
     53modules = [] 
     54path = os.path.abspath(os.path.dirname('../../')) 
    5355 
    54 modules=[ 
    55     ('data_info', 'data_info'), 
    56     ('loader', 'loader'), 
    57     ('manipulations', 'manipulations'), 
    58     ('qsmearing', 'qsmearing'), 
    59     ('smearing_2d', 'smearing_2d'), 
    60 ] 
     56 
     57list = os.listdir(path) 
     58for item in list: 
     59    toks = os.path.splitext(os.path.basename(item)) 
     60    if toks[1]=='.py' and toks[0] not in ["__init__", "setup"]: 
     61        exec "module = ('%s', '%s')"%(toks[0], toks[0]) 
     62        modules.append(module) 
     63 
    6164package='DataLoader' 
    6265package_name='Reference' 
    63 #genfiles(package, package_name, modules) 
    6466 
    6567if __name__ == "__main__": 
    6668    genfiles(package, package_name, modules, dir='api') 
    67      
    68     modules=[ 
    69     ('abs_reader', 'abs_reader'), 
    70     ('ascii_reader', 'ascii_reader'), 
    71     ('associations', 'associations'), 
    72     ('cansas_reader', 'cansas_reader'), 
    73     ('hfir1d_reader', 'hfir1d_reader'), 
    74     ('IgorReader', 'IgorReader'), 
    75     ('red2d_reader', 'red2d_reader'), 
    76     ('tiff_reader', 'tiff_reader'), 
    77     ] 
     69    modules = [] 
     70    path = os.path.abspath(os.path.dirname('../../readers/')) 
     71    list = os.listdir(path) 
     72    for item in list: 
     73        toks = os.path.splitext(os.path.basename(item)) 
     74        if toks[1]=='.py' and toks[0] not in ["__init__", "setup"]: 
     75         exec "module = ('%s', '%s')"%(toks[0], toks[0]) 
     76         modules.append(module) 
    7877    package='DataLoader.readers' 
    7978    package_name='Readers' 
  • DataLoader/loader.py

    r0997158f r480ddb4  
    7676            return super(Registry, self).load(path, format=format) 
    7777        except: 
     78            raise 
    7879            # No reader was found. Default to the ascii reader. 
    79             ascii_loader = ascii_reader.Reader() 
    80             return ascii_loader.read(path) 
     80            #ascii_loader = ascii_reader.Reader() 
     81            #return ascii_loader.read(path) 
    8182         
    8283    def find_plugins(self, dir): 
Note: See TracChangeset for help on using the changeset viewer.