Changeset 480ddb4 in sasview
- Timestamp:
- Jun 24, 2010 6:00:12 PM (14 years ago)
- 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
- Location:
- DataLoader
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/docs/sphinx/api/index.rst
r0997158f r480ddb4 15 15 16 16 data_info.rst 17 loader.rst 17 18 manipulations.rst 18 19 qsmearing.rst -
DataLoader/docs/sphinx/api/readers/index.rst
r0997158f r480ddb4 18 18 associations.rst 19 19 cansas_reader.rst 20 danse_reader.rst 20 21 hfir1d_reader.rst 21 22 IgorReader.rst -
DataLoader/docs/sphinx/conf.py
r0997158f r480ddb4 12 12 # serve to show the default. 13 13 14 import sys, os 14 import sys, os, glob 15 15 16 16 # If extensions (or modules to document with autodoc) are in another directory, 17 17 # add these directories to sys.path here. If the directory is relative to the 18 18 # 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 20 path = glob.glob('../../build/lib.*')[0] 21 sys.path.append(path) 22 21 23 sys.path.append(os.path.abspath('_extensions')) 22 24 # -- General configuration ----------------------------------------------------- -
DataLoader/docs/sphinx/genmods.py
r0997158f r480ddb4 51 51 f.write(INDEX_TEMPLATE%locals()) 52 52 53 modules = [] 54 path = os.path.abspath(os.path.dirname('../../')) 53 55 54 modules=[ 55 ('data_info', 'data_info'), 56 ('loader', 'loader'), 57 ('manipulations', 'manipulations'), 58 ('qsmearing', 'qsmearing'), 59 ('smearing_2d', 'smearing_2d'), 60 ] 56 57 list = os.listdir(path) 58 for 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 61 64 package='DataLoader' 62 65 package_name='Reference' 63 #genfiles(package, package_name, modules)64 66 65 67 if __name__ == "__main__": 66 68 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) 78 77 package='DataLoader.readers' 79 78 package_name='Readers' -
DataLoader/loader.py
r0997158f r480ddb4 76 76 return super(Registry, self).load(path, format=format) 77 77 except: 78 raise 78 79 # 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) 81 82 82 83 def find_plugins(self, dir):
Note: See TracChangeset
for help on using the changeset viewer.