Changeset 7247844 in sasview for sansdataloader/docs/sphinx/html/api/loader.html
- Timestamp:
- Oct 24, 2011 2:02:30 PM (13 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:
- 70ecd530
- Parents:
- a4f04f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansdataloader/docs/sphinx/html/api/loader.html
rfc5d49e3 r7247844 3 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 6 7 <html xmlns="http://www.w3.org/1999/xhtml"> … … 8 9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 9 10 10 <title>loader — DataLoader v0.1.0 documentation</title> 11 <title>loader — DataLoader 0.1.0 documentation</title> 12 11 13 <link rel="stylesheet" href="../_static/default.css" type="text/css" /> 12 14 <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> 15 13 16 <script type="text/javascript"> 14 17 var DOCUMENTATION_OPTIONS = { … … 23 26 <script type="text/javascript" src="../_static/underscore.js"></script> 24 27 <script type="text/javascript" src="../_static/doctools.js"></script> 25 <link rel="top" title="DataLoader v0.1.0 documentation" href="../index.html" />28 <link rel="top" title="DataLoader 0.1.0 documentation" href="../index.html" /> 26 29 <link rel="up" title="Reference" href="index.html" /> 27 30 <link rel="next" title="manipulations" href="manipulations.html" /> … … 44 47 <a href="data_info.html" title="data_info" 45 48 accesskey="P">previous</a> |</li> 46 <li><a href="../index.html">DataLoader v0.1.0 documentation</a> »</li>49 <li><a href="../index.html">DataLoader 0.1.0 documentation</a> »</li> 47 50 <li><a href="index.html" accesskey="U">Reference</a> »</li> 48 51 </ul> … … 56 59 <div class="section" id="loader"> 57 60 <h1>loader<a class="headerlink" href="#loader" title="Permalink to this headline">¶</a></h1> 58 <div class="section" id=" module-DataLoader.loader">59 < span id="dataloader-loader"></span><h2><a class="reference internal" href="#module-DataLoader.loader" title="DataLoader.loader"><tt class="xref py py-mod docutils literal"><span class="pre">DataLoader.loader</span></tt></a><a class="headerlink" href="#module-DataLoader.loader" title="Permalink to this headline">¶</a></h2>60 < p>File handler to support different file extensions.61 <div class="section" id="sans-dataloader-loader"> 62 <h2><a class="reference internal" href="#module-sans.dataloader.loader" title="sans.dataloader.loader"><tt class="xref py py-mod docutils literal"><span class="pre">sans.dataloader.loader</span></tt></a><a class="headerlink" href="#sans-dataloader-loader" title="Permalink to this headline">¶</a></h2> 63 <span class="target" id="module-sans.dataloader.loader"></span><p>File handler to support different file extensions. 61 64 Uses reflectometry’s registry utility.</p> 62 65 <p>The default readers are found in the ‘readers’ sub-module … … 68 71 look for new readers/writers.</p> 69 72 <dl class="class"> 70 <dt id=" DataLoader.loader.Loader">71 <em class="property">class </em><tt class="descclassname"> DataLoader.loader.</tt><tt class="descname">Loader</tt><a class="headerlink" href="#DataLoader.loader.Loader" title="Permalink to this definition">¶</a></dt>73 <dt id="sans.dataloader.loader.Loader"> 74 <em class="property">class </em><tt class="descclassname">sans.dataloader.loader.</tt><tt class="descname">Loader</tt><a class="headerlink" href="#sans.dataloader.loader.Loader" title="Permalink to this definition">¶</a></dt> 72 75 <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p> 73 76 <p>Utility class to use the Registry as a singleton.</p> 74 <dl class="method"> 75 <dt id="DataLoader.loader.Loader.associate_file_reader"> 76 <tt class="descname">associate_file_reader</tt><big>(</big><em>ext</em>, <em>loader</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Loader.associate_file_reader" title="Permalink to this definition">¶</a></dt> 77 <dl class="attribute"> 78 <dt id="sans.dataloader.loader.Loader._Loader__registry"> 79 <tt class="descname">_Loader__registry</tt><em class="property"> = <sans.dataloader.loader.Registry object at 0x023A7870></em><a class="headerlink" href="#sans.dataloader.loader.Loader._Loader__registry" title="Permalink to this definition">¶</a></dt> 80 <dd></dd></dl> 81 82 <dl class="attribute"> 83 <dt id="sans.dataloader.loader.Loader.__class__"> 84 <tt class="descname">__class__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__class__" title="Permalink to this definition">¶</a></dt> 85 <dd><p>alias of <tt class="xref py py-class docutils literal"><span class="pre">type</span></tt></p> 86 </dd></dl> 87 88 <dl class="attribute"> 89 <dt id="sans.dataloader.loader.Loader.__delattr__"> 90 <tt class="descname">__delattr__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__delattr__" title="Permalink to this definition">¶</a></dt> 91 <dd><p>x.__delattr__(‘name’) <==> del x.name</p> 92 </dd></dl> 93 94 <dl class="attribute"> 95 <dt id="sans.dataloader.loader.Loader.__dict__"> 96 <tt class="descname">__dict__</tt><em class="property"> = <dictproxy object at 0x01D4DD30></em><a class="headerlink" href="#sans.dataloader.loader.Loader.__dict__" title="Permalink to this definition">¶</a></dt> 97 <dd></dd></dl> 98 99 <dl class="attribute"> 100 <dt id="sans.dataloader.loader.Loader.__getattribute__"> 101 <tt class="descname">__getattribute__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__getattribute__" title="Permalink to this definition">¶</a></dt> 102 <dd><p>x.__getattribute__(‘name’) <==> x.name</p> 103 </dd></dl> 104 105 <dl class="attribute"> 106 <dt id="sans.dataloader.loader.Loader.__hash__"> 107 <tt class="descname">__hash__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__hash__" title="Permalink to this definition">¶</a></dt> 108 <dd><p>x.__hash__() <==> hash(x)</p> 109 </dd></dl> 110 111 <dl class="attribute"> 112 <dt id="sans.dataloader.loader.Loader.__init__"> 113 <tt class="descname">__init__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__init__" title="Permalink to this definition">¶</a></dt> 114 <dd><p>x.__init__(...) initializes x; see x.__class__.__doc__ for signature</p> 115 </dd></dl> 116 117 <dl class="attribute"> 118 <dt id="sans.dataloader.loader.Loader.__module__"> 119 <tt class="descname">__module__</tt><em class="property"> = 'sans.dataloader.loader'</em><a class="headerlink" href="#sans.dataloader.loader.Loader.__module__" title="Permalink to this definition">¶</a></dt> 120 <dd></dd></dl> 121 122 <dl class="staticmethod"> 123 <dt id="sans.dataloader.loader.Loader.__new__"> 124 <em class="property">static </em><tt class="descname">__new__</tt><big>(</big><em>S</em>, <em>...</em><big>)</big> → a new object with type S, a subtype of T<a class="headerlink" href="#sans.dataloader.loader.Loader.__new__" title="Permalink to this definition">¶</a></dt> 125 <dd></dd></dl> 126 127 <dl class="method"> 128 <dt id="sans.dataloader.loader.Loader.__reduce__"> 129 <tt class="descname">__reduce__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader.__reduce__" title="Permalink to this definition">¶</a></dt> 130 <dd><p>helper for pickle</p> 131 </dd></dl> 132 133 <dl class="method"> 134 <dt id="sans.dataloader.loader.Loader.__reduce_ex__"> 135 <tt class="descname">__reduce_ex__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader.__reduce_ex__" title="Permalink to this definition">¶</a></dt> 136 <dd><p>helper for pickle</p> 137 </dd></dl> 138 139 <dl class="attribute"> 140 <dt id="sans.dataloader.loader.Loader.__repr__"> 141 <tt class="descname">__repr__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__repr__" title="Permalink to this definition">¶</a></dt> 142 <dd><p>x.__repr__() <==> repr(x)</p> 143 </dd></dl> 144 145 <dl class="attribute"> 146 <dt id="sans.dataloader.loader.Loader.__setattr__"> 147 <tt class="descname">__setattr__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__setattr__" title="Permalink to this definition">¶</a></dt> 148 <dd><p>x.__setattr__(‘name’, value) <==> x.name = value</p> 149 </dd></dl> 150 151 <dl class="attribute"> 152 <dt id="sans.dataloader.loader.Loader.__str__"> 153 <tt class="descname">__str__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__str__" title="Permalink to this definition">¶</a></dt> 154 <dd><p>x.__str__() <==> str(x)</p> 155 </dd></dl> 156 157 <dl class="attribute"> 158 <dt id="sans.dataloader.loader.Loader.__weakref__"> 159 <tt class="descname">__weakref__</tt><a class="headerlink" href="#sans.dataloader.loader.Loader.__weakref__" title="Permalink to this definition">¶</a></dt> 160 <dd><p>list of weak references to the object (if defined)</p> 161 </dd></dl> 162 163 <dl class="method"> 164 <dt id="sans.dataloader.loader.Loader._get_registry_creation_time"> 165 <tt class="descname">_get_registry_creation_time</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader._get_registry_creation_time" title="Permalink to this definition">¶</a></dt> 166 <dd><p>Internal method used to test the uniqueness 167 of the registry object</p> 168 </dd></dl> 169 170 <dl class="method"> 171 <dt id="sans.dataloader.loader.Loader.associate_file_reader"> 172 <tt class="descname">associate_file_reader</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader.associate_file_reader" title="Permalink to this definition">¶</a></dt> 77 173 <dd><p>Append a reader object to readers</p> 78 174 <table class="docutils field-list" frame="void" rules="none"> … … 80 176 <col class="field-body" /> 81 177 <tbody valign="top"> 82 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">178 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 83 179 <li><strong>ext</strong> – file extension [string]</li> 84 180 <li><strong>module</strong> – reader object</li> … … 91 187 92 188 <dl class="method"> 93 <dt id=" DataLoader.loader.Loader.associate_file_type">94 <tt class="descname">associate_file_type</tt><big>(</big>< em>ext</em>, <em>module</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Loader.associate_file_type" title="Permalink to this definition">¶</a></dt>189 <dt id="sans.dataloader.loader.Loader.associate_file_type"> 190 <tt class="descname">associate_file_type</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader.associate_file_type" title="Permalink to this definition">¶</a></dt> 95 191 <dd><p>Look into a module to find whether it contains a 96 192 Reader class. If so, append it to readers and (potentially) … … 100 196 <col class="field-body" /> 101 197 <tbody valign="top"> 102 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">198 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 103 199 <li><strong>ext</strong> – file extension [string]</li> 104 200 <li><strong>module</strong> – module object</li> … … 111 207 112 208 <dl class="method"> 113 <dt id=" DataLoader.loader.Loader.find_plugins">114 <tt class="descname">find_plugins</tt><big>(</big>< em>dir</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Loader.find_plugins" title="Permalink to this definition">¶</a></dt>209 <dt id="sans.dataloader.loader.Loader.find_plugins"> 210 <tt class="descname">find_plugins</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader.find_plugins" title="Permalink to this definition">¶</a></dt> 115 211 <dd><p>Find plugins in a given directory</p> 116 212 <table class="docutils field-list" frame="void" rules="none"> … … 118 214 <col class="field-body" /> 119 215 <tbody valign="top"> 120 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>dir</strong> – directory to look into to find new readers/writers</td>121 </tr> 122 </tbody> 123 </table> 124 </dd></dl> 125 126 <dl class="method"> 127 <dt id=" DataLoader.loader.Loader.get_wildcards">128 <tt class="descname">get_wildcards</tt><big>(</big><big>)</big><a class="headerlink" href="# DataLoader.loader.Loader.get_wildcards" title="Permalink to this definition">¶</a></dt>129 <dd></dd></dl> 130 131 <dl class="method"> 132 <dt id=" DataLoader.loader.Loader.load">133 <tt class="descname">load</tt><big>(</big>< em>file</em>, <em>format=None</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Loader.load" title="Permalink to this definition">¶</a></dt>216 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>dir</strong> – directory to look into to find new readers/writers</td> 217 </tr> 218 </tbody> 219 </table> 220 </dd></dl> 221 222 <dl class="method"> 223 <dt id="sans.dataloader.loader.Loader.get_wildcards"> 224 <tt class="descname">get_wildcards</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader.get_wildcards" title="Permalink to this definition">¶</a></dt> 225 <dd></dd></dl> 226 227 <dl class="method"> 228 <dt id="sans.dataloader.loader.Loader.load"> 229 <tt class="descname">load</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader.load" title="Permalink to this definition">¶</a></dt> 134 230 <dd><p>Load a file</p> 135 231 <table class="docutils field-list" frame="void" rules="none"> … … 137 233 <col class="field-body" /> 138 234 <tbody valign="top"> 139 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">235 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> 140 236 <li><strong>file</strong> – file name (path)</li> 141 237 <li><strong>format</strong> – specified format to use (optional)</li> … … 143 239 </td> 144 240 </tr> 145 <tr class="field "><th class="field-name">Returns:</th><td class="field-body"><p class="first last">DataInfo object</p>146 </td> 147 </tr> 148 </tbody> 149 </table> 150 </dd></dl> 151 152 <dl class="method"> 153 <dt id=" DataLoader.loader.Loader.save">154 <tt class="descname">save</tt><big>(</big>< em>file</em>, <em>data</em>, <em>format</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Loader.save" title="Permalink to this definition">¶</a></dt>241 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">DataInfo object</p> 242 </td> 243 </tr> 244 </tbody> 245 </table> 246 </dd></dl> 247 248 <dl class="method"> 249 <dt id="sans.dataloader.loader.Loader.save"> 250 <tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Loader.save" title="Permalink to this definition">¶</a></dt> 155 251 <dd><p>Save a DataInfo object to file 156 252 :param file: file name (path) … … 162 258 163 259 <dl class="class"> 164 <dt id=" DataLoader.loader.Registry">165 <em class="property">class </em><tt class="descclassname"> DataLoader.loader.</tt><tt class="descname">Registry</tt><a class="headerlink" href="#DataLoader.loader.Registry" title="Permalink to this definition">¶</a></dt>260 <dt id="sans.dataloader.loader.Registry"> 261 <em class="property">class </em><tt class="descclassname">sans.dataloader.loader.</tt><tt class="descname">Registry</tt><a class="headerlink" href="#sans.dataloader.loader.Registry" title="Permalink to this definition">¶</a></dt> 166 262 <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">data_util.registry.ExtensionRegistry</span></tt></p> 167 263 <p>Registry class for file format extensions. 168 264 Readers and writers are supported.</p> 169 <dl class="method"> 170 <dt id="DataLoader.loader.Registry.associate_file_reader"> 171 <tt class="descname">associate_file_reader</tt><big>(</big><em>ext</em>, <em>loader</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Registry.associate_file_reader" title="Permalink to this definition">¶</a></dt> 265 <dl class="attribute"> 266 <dt id="sans.dataloader.loader.Registry.__class__"> 267 <tt class="descname">__class__</tt><a class="headerlink" href="#sans.dataloader.loader.Registry.__class__" title="Permalink to this definition">¶</a></dt> 268 <dd><p>alias of <tt class="xref py py-class docutils literal"><span class="pre">type</span></tt></p> 269 </dd></dl> 270 271 <dl class="method"> 272 <dt id="sans.dataloader.loader.Registry.__contains__"> 273 <tt class="descname">__contains__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.__contains__" title="Permalink to this definition">¶</a></dt> 274 <dd></dd></dl> 275 276 <dl class="attribute"> 277 <dt id="sans.dataloader.loader.Registry.__delattr__"> 278 <tt class="descname">__delattr__</tt><a class="headerlink" href="#sans.dataloader.loader.Registry.__delattr__" title="Permalink to this definition">¶</a></dt> 279 <dd><p>x.__delattr__(‘name’) <==> del x.name</p> 280 </dd></dl> 281 282 <dl class="attribute"> 283 <dt id="sans.dataloader.loader.Registry.__dict__"> 284 <tt class="descname">__dict__</tt><em class="property"> = <dictproxy object at 0x01D30550></em><a class="headerlink" href="#sans.dataloader.loader.Registry.__dict__" title="Permalink to this definition">¶</a></dt> 285 <dd></dd></dl> 286 287 <dl class="attribute"> 288 <dt id="sans.dataloader.loader.Registry.__getattribute__"> 289 <tt class="descname">__getattribute__</tt><a class="headerlink" href="#sans.dataloader.loader.Registry.__getattribute__" title="Permalink to this definition">¶</a></dt> 290 <dd><p>x.__getattribute__(‘name’) <==> x.name</p> 291 </dd></dl> 292 293 <dl class="method"> 294 <dt id="sans.dataloader.loader.Registry.__getitem__"> 295 <tt class="descname">__getitem__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.__getitem__" title="Permalink to this definition">¶</a></dt> 296 <dd></dd></dl> 297 298 <dl class="attribute"> 299 <dt id="sans.dataloader.loader.Registry.__hash__"> 300 <tt class="descname">__hash__</tt><a class="headerlink" href="#sans.dataloader.loader.Registry.__hash__" title="Permalink to this definition">¶</a></dt> 301 <dd><p>x.__hash__() <==> hash(x)</p> 302 </dd></dl> 303 304 <dl class="method"> 305 <dt id="sans.dataloader.loader.Registry.__init__"> 306 <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.__init__" title="Permalink to this definition">¶</a></dt> 307 <dd></dd></dl> 308 309 <dl class="attribute"> 310 <dt id="sans.dataloader.loader.Registry.__module__"> 311 <tt class="descname">__module__</tt><em class="property"> = 'sans.dataloader.loader'</em><a class="headerlink" href="#sans.dataloader.loader.Registry.__module__" title="Permalink to this definition">¶</a></dt> 312 <dd></dd></dl> 313 314 <dl class="staticmethod"> 315 <dt id="sans.dataloader.loader.Registry.__new__"> 316 <em class="property">static </em><tt class="descname">__new__</tt><big>(</big><em>S</em>, <em>...</em><big>)</big> → a new object with type S, a subtype of T<a class="headerlink" href="#sans.dataloader.loader.Registry.__new__" title="Permalink to this definition">¶</a></dt> 317 <dd></dd></dl> 318 319 <dl class="method"> 320 <dt id="sans.dataloader.loader.Registry.__reduce__"> 321 <tt class="descname">__reduce__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.__reduce__" title="Permalink to this definition">¶</a></dt> 322 <dd><p>helper for pickle</p> 323 </dd></dl> 324 325 <dl class="method"> 326 <dt id="sans.dataloader.loader.Registry.__reduce_ex__"> 327 <tt class="descname">__reduce_ex__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.__reduce_ex__" title="Permalink to this definition">¶</a></dt> 328 <dd><p>helper for pickle</p> 329 </dd></dl> 330 331 <dl class="attribute"> 332 <dt id="sans.dataloader.loader.Registry.__repr__"> 333 <tt class="descname">__repr__</tt><a class="headerlink" href="#sans.dataloader.loader.Registry.__repr__" title="Permalink to this definition">¶</a></dt> 334 <dd><p>x.__repr__() <==> repr(x)</p> 335 </dd></dl> 336 337 <dl class="attribute"> 338 <dt id="sans.dataloader.loader.Registry.__setattr__"> 339 <tt class="descname">__setattr__</tt><a class="headerlink" href="#sans.dataloader.loader.Registry.__setattr__" title="Permalink to this definition">¶</a></dt> 340 <dd><p>x.__setattr__(‘name’, value) <==> x.name = value</p> 341 </dd></dl> 342 343 <dl class="method"> 344 <dt id="sans.dataloader.loader.Registry.__setitem__"> 345 <tt class="descname">__setitem__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.__setitem__" title="Permalink to this definition">¶</a></dt> 346 <dd></dd></dl> 347 348 <dl class="attribute"> 349 <dt id="sans.dataloader.loader.Registry.__str__"> 350 <tt class="descname">__str__</tt><a class="headerlink" href="#sans.dataloader.loader.Registry.__str__" title="Permalink to this definition">¶</a></dt> 351 <dd><p>x.__str__() <==> str(x)</p> 352 </dd></dl> 353 354 <dl class="attribute"> 355 <dt id="sans.dataloader.loader.Registry.__weakref__"> 356 <tt class="descname">__weakref__</tt><a class="headerlink" href="#sans.dataloader.loader.Registry.__weakref__" title="Permalink to this definition">¶</a></dt> 357 <dd><p>list of weak references to the object (if defined)</p> 358 </dd></dl> 359 360 <dl class="method"> 361 <dt id="sans.dataloader.loader.Registry._identify_plugin"> 362 <tt class="descname">_identify_plugin</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry._identify_plugin" title="Permalink to this definition">¶</a></dt> 363 <dd><p>Look into a module to find whether it contains a 364 Reader class. If so, add it to readers and (potentially) 365 to the list of writers. 366 :param module: module object</p> 367 </dd></dl> 368 369 <dl class="method"> 370 <dt id="sans.dataloader.loader.Registry.associate_file_reader"> 371 <tt class="descname">associate_file_reader</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.associate_file_reader" title="Permalink to this definition">¶</a></dt> 172 372 <dd><p>Append a reader object to readers</p> 173 373 <table class="docutils field-list" frame="void" rules="none"> … … 175 375 <col class="field-body" /> 176 376 <tbody valign="top"> 177 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">377 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 178 378 <li><strong>ext</strong> – file extension [string]</li> 179 379 <li><strong>module</strong> – reader object</li> … … 186 386 187 387 <dl class="method"> 188 <dt id=" DataLoader.loader.Registry.associate_file_type">189 <tt class="descname">associate_file_type</tt><big>(</big>< em>ext</em>, <em>module</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Registry.associate_file_type" title="Permalink to this definition">¶</a></dt>388 <dt id="sans.dataloader.loader.Registry.associate_file_type"> 389 <tt class="descname">associate_file_type</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.associate_file_type" title="Permalink to this definition">¶</a></dt> 190 390 <dd><p>Look into a module to find whether it contains a 191 391 Reader class. If so, APPEND it to readers and (potentially) … … 195 395 <col class="field-body" /> 196 396 <tbody valign="top"> 197 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">397 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 198 398 <li><strong>ext</strong> – file extension [string]</li> 199 399 <li><strong>module</strong> – module object</li> … … 206 406 207 407 <dl class="method"> 208 <dt id=" DataLoader.loader.Registry.extensions">209 <tt class="descname">extensions</tt><big>(</big><big>)</big><a class="headerlink" href="# DataLoader.loader.Registry.extensions" title="Permalink to this definition">¶</a></dt>408 <dt id="sans.dataloader.loader.Registry.extensions"> 409 <tt class="descname">extensions</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.extensions" title="Permalink to this definition">¶</a></dt> 210 410 <dd><p>Return a sorted list of registered extensions.</p> 211 411 </dd></dl> 212 412 213 413 <dl class="method"> 214 <dt id=" DataLoader.loader.Registry.find_plugins">215 <tt class="descname">find_plugins</tt><big>(</big>< em>dir</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Registry.find_plugins" title="Permalink to this definition">¶</a></dt>414 <dt id="sans.dataloader.loader.Registry.find_plugins"> 415 <tt class="descname">find_plugins</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.find_plugins" title="Permalink to this definition">¶</a></dt> 216 416 <dd><p>Find readers in a given directory. This method 217 417 can be used to inspect user plug-in directories to … … 221 421 <col class="field-body" /> 222 422 <tbody valign="top"> 223 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>dir</strong> – directory to search into</td>224 </tr> 225 <tr class="field "><th class="field-name">Returns:</th><td class="field-body">number of readers found</td>226 </tr> 227 </tbody> 228 </table> 229 </dd></dl> 230 231 <dl class="method"> 232 <dt id=" DataLoader.loader.Registry.formats">233 <tt class="descname">formats</tt><big>(</big><big>)</big><a class="headerlink" href="# DataLoader.loader.Registry.formats" title="Permalink to this definition">¶</a></dt>423 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>dir</strong> – directory to search into</td> 424 </tr> 425 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">number of readers found</td> 426 </tr> 427 </tbody> 428 </table> 429 </dd></dl> 430 431 <dl class="method"> 432 <dt id="sans.dataloader.loader.Registry.formats"> 433 <tt class="descname">formats</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.formats" title="Permalink to this definition">¶</a></dt> 234 434 <dd><p>Return a sorted list of the registered formats.</p> 235 435 </dd></dl> 236 436 237 437 <dl class="method"> 238 <dt id=" DataLoader.loader.Registry.load">239 <tt class="descname">load</tt><big>(</big>< em>path</em>, <em>format=None</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Registry.load" title="Permalink to this definition">¶</a></dt>438 <dt id="sans.dataloader.loader.Registry.load"> 439 <tt class="descname">load</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.load" title="Permalink to this definition">¶</a></dt> 240 440 <dd><p>Call the loader for the file type of path.</p> 241 441 <table class="docutils field-list" frame="void" rules="none"> … … 243 443 <col class="field-body" /> 244 444 <tbody valign="top"> 245 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">445 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 246 446 <li><strong>path</strong> – file path</li> 247 447 <li><strong>format</strong> – explicit extension, to force the use … … 258 458 259 459 <dl class="method"> 260 <dt id=" DataLoader.loader.Registry.lookup">261 <tt class="descname">lookup</tt><big>(</big>< em>path</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Registry.lookup" title="Permalink to this definition">¶</a></dt>460 <dt id="sans.dataloader.loader.Registry.lookup"> 461 <tt class="descname">lookup</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.lookup" title="Permalink to this definition">¶</a></dt> 262 462 <dd><p>Return the loader associated with the file type of path.</p> 263 463 <p>Raises ValueError if file type is not known.</p> … … 265 465 266 466 <dl class="method"> 267 <dt id=" DataLoader.loader.Registry.lookup_writers">268 <tt class="descname">lookup_writers</tt><big>(</big>< em>path</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Registry.lookup_writers" title="Permalink to this definition">¶</a></dt>467 <dt id="sans.dataloader.loader.Registry.lookup_writers"> 468 <tt class="descname">lookup_writers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.lookup_writers" title="Permalink to this definition">¶</a></dt> 269 469 <dd><table class="docutils field-list" frame="void" rules="none"> 270 470 <col class="field-name" /> 271 471 <col class="field-body" /> 272 472 <tbody valign="top"> 273 <tr class="field "><th class="field-name">Returns:</th><td class="field-body">the loader associated with the file type of path.</td>274 </tr> 275 <tr class="field "><th class="field-name" colspan="2">Raises ValueError:</th></tr>276 <tr ><td> </td><td class="field-body">if file type is not known.</td>277 </tr> 278 </tbody> 279 </table> 280 </dd></dl> 281 282 <dl class="method"> 283 <dt id=" DataLoader.loader.Registry.save">284 <tt class="descname">save</tt><big>(</big>< em>path</em>, <em>data</em>, <em>format=None</em><big>)</big><a class="headerlink" href="#DataLoader.loader.Registry.save" title="Permalink to this definition">¶</a></dt>473 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the loader associated with the file type of path.</td> 474 </tr> 475 <tr class="field-even field"><th class="field-name" colspan="2">Raises ValueError:</th></tr> 476 <tr class="field-even field"><td> </td><td class="field-body">if file type is not known.</td> 477 </tr> 478 </tbody> 479 </table> 480 </dd></dl> 481 482 <dl class="method"> 483 <dt id="sans.dataloader.loader.Registry.save"> 484 <tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.dataloader.loader.Registry.save" title="Permalink to this definition">¶</a></dt> 285 485 <dd><p>Call the writer for the file type of path.</p> 286 486 <p>Raises ValueError if no writer is available. … … 303 503 <ul> 304 504 <li><a class="reference internal" href="#">loader</a><ul> 305 <li><a class="reference internal" href="# module-DataLoader.loader"><tt class="docutils literal"><span class="pre">DataLoader.loader</span></tt></a></li>505 <li><a class="reference internal" href="#sans-dataloader-loader"><tt class="docutils literal"><span class="pre">sans.dataloader.loader</span></tt></a></li> 306 506 </ul> 307 507 </li> … … 322 522 <h3>Quick search</h3> 323 523 <form class="search" action="../search.html" method="get"> 324 <input type="text" name="q" size="18"/>524 <input type="text" name="q" /> 325 525 <input type="submit" value="Go" /> 326 526 <input type="hidden" name="check_keywords" value="yes" /> … … 351 551 <a href="data_info.html" title="data_info" 352 552 >previous</a> |</li> 353 <li><a href="../index.html">DataLoader v0.1.0 documentation</a> »</li>553 <li><a href="../index.html">DataLoader 0.1.0 documentation</a> »</li> 354 554 <li><a href="index.html" >Reference</a> »</li> 355 555 </ul> … … 357 557 <div class="footer"> 358 558 © Copyright 2010, sans group. 359 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 0.7.559 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. 360 560 </div> 361 561 </body>
Note: See TracChangeset
for help on using the changeset viewer.