source: sasview/sansdataloader/docs/sphinx/html/api/readers/ascii_reader.html @ 440f020

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 440f020 was fc5d49e3, checked in by Jessica Tumarkin <jtumarki@…>, 13 years ago
  • Property mode set to 100644
File size: 6.5 KB
Line 
1
2
3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
6<html xmlns="http://www.w3.org/1999/xhtml">
7  <head>
8    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9   
10    <title>ascii_reader &mdash; DataLoader v0.1.0 documentation</title>
11    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
12    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
13    <script type="text/javascript">
14      var DOCUMENTATION_OPTIONS = {
15        URL_ROOT:    '../../',
16        VERSION:     '0.1.0',
17        COLLAPSE_INDEX: false,
18        FILE_SUFFIX: '.html',
19        HAS_SOURCE:  true
20      };
21    </script>
22    <script type="text/javascript" src="../../_static/jquery.js"></script>
23    <script type="text/javascript" src="../../_static/underscore.js"></script>
24    <script type="text/javascript" src="../../_static/doctools.js"></script>
25    <link rel="top" title="DataLoader v0.1.0 documentation" href="../../index.html" />
26    <link rel="up" title="Readers" href="index.html" />
27    <link rel="next" title="associations" href="associations.html" />
28    <link rel="prev" title="abs_reader" href="abs_reader.html" /> 
29  </head>
30  <body>
31    <div class="related">
32      <h3>Navigation</h3>
33      <ul>
34        <li class="right" style="margin-right: 10px">
35          <a href="../../genindex.html" title="General Index"
36             accesskey="I">index</a></li>
37        <li class="right" >
38          <a href="../../py-modindex.html" title="Python Module Index"
39             >modules</a> |</li>
40        <li class="right" >
41          <a href="associations.html" title="associations"
42             accesskey="N">next</a> |</li>
43        <li class="right" >
44          <a href="abs_reader.html" title="abs_reader"
45             accesskey="P">previous</a> |</li>
46        <li><a href="../../index.html">DataLoader v0.1.0 documentation</a> &raquo;</li>
47          <li><a href="index.html" accesskey="U">Readers</a> &raquo;</li> 
48      </ul>
49    </div> 
50
51    <div class="document">
52      <div class="documentwrapper">
53        <div class="bodywrapper">
54          <div class="body">
55           
56  <div class="section" id="ascii-reader">
57<h1>ascii_reader<a class="headerlink" href="#ascii-reader" title="Permalink to this headline">¶</a></h1>
58<div class="section" id="module-DataLoader.readers.ascii_reader">
59<span id="dataloader-readers-ascii-reader"></span><h2><a class="reference internal" href="#module-DataLoader.readers.ascii_reader" title="DataLoader.readers.ascii_reader"><tt class="xref py py-mod docutils literal"><span class="pre">DataLoader.readers.ascii_reader</span></tt></a><a class="headerlink" href="#module-DataLoader.readers.ascii_reader" title="Permalink to this headline">¶</a></h2>
60<dl class="class">
61<dt id="DataLoader.readers.ascii_reader.Reader">
62<em class="property">class </em><tt class="descclassname">DataLoader.readers.ascii_reader.</tt><tt class="descname">Reader</tt><a class="headerlink" href="#DataLoader.readers.ascii_reader.Reader" title="Permalink to this definition">¶</a></dt>
63<dd><p>Class to load ascii files (2, 3 or 4 columns).</p>
64<dl class="method">
65<dt id="DataLoader.readers.ascii_reader.Reader.read">
66<tt class="descname">read</tt><big>(</big><em>path</em><big>)</big><a class="headerlink" href="#DataLoader.readers.ascii_reader.Reader.read" title="Permalink to this definition">¶</a></dt>
67<dd><p>Load data file</p>
68<table class="docutils field-list" frame="void" rules="none">
69<col class="field-name" />
70<col class="field-body" />
71<tbody valign="top">
72<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>path</strong> &#8211; file path</p>
73</td>
74</tr>
75<tr class="field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Data1D object, or None</p>
76</td>
77</tr>
78<tr class="field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
79<li><strong>RuntimeError</strong> &#8211; when the file can&#8217;t be opened</li>
80<li><strong>ValueError</strong> &#8211; when the length of the data vectors are inconsistent</li>
81</ul>
82</td>
83</tr>
84</tbody>
85</table>
86</dd></dl>
87
88</dd></dl>
89
90</div>
91</div>
92
93
94          </div>
95        </div>
96      </div>
97      <div class="sphinxsidebar">
98        <div class="sphinxsidebarwrapper">
99  <h3><a href="../../index.html">Table Of Contents</a></h3>
100  <ul>
101<li><a class="reference internal" href="#">ascii_reader</a><ul>
102<li><a class="reference internal" href="#module-DataLoader.readers.ascii_reader"><tt class="docutils literal"><span class="pre">DataLoader.readers.ascii_reader</span></tt></a></li>
103</ul>
104</li>
105</ul>
106
107  <h4>Previous topic</h4>
108  <p class="topless"><a href="abs_reader.html"
109                        title="previous chapter">abs_reader</a></p>
110  <h4>Next topic</h4>
111  <p class="topless"><a href="associations.html"
112                        title="next chapter">associations</a></p>
113  <h3>This Page</h3>
114  <ul class="this-page-menu">
115    <li><a href="../../_sources/api/readers/ascii_reader.txt"
116           rel="nofollow">Show Source</a></li>
117  </ul>
118<div id="searchbox" style="display: none">
119  <h3>Quick search</h3>
120    <form class="search" action="../../search.html" method="get">
121      <input type="text" name="q" size="18" />
122      <input type="submit" value="Go" />
123      <input type="hidden" name="check_keywords" value="yes" />
124      <input type="hidden" name="area" value="default" />
125    </form>
126    <p class="searchtip" style="font-size: 90%">
127    Enter search terms or a module, class or function name.
128    </p>
129</div>
130<script type="text/javascript">$('#searchbox').show(0);</script>
131        </div>
132      </div>
133      <div class="clearer"></div>
134    </div>
135    <div class="related">
136      <h3>Navigation</h3>
137      <ul>
138        <li class="right" style="margin-right: 10px">
139          <a href="../../genindex.html" title="General Index"
140             >index</a></li>
141        <li class="right" >
142          <a href="../../py-modindex.html" title="Python Module Index"
143             >modules</a> |</li>
144        <li class="right" >
145          <a href="associations.html" title="associations"
146             >next</a> |</li>
147        <li class="right" >
148          <a href="abs_reader.html" title="abs_reader"
149             >previous</a> |</li>
150        <li><a href="../../index.html">DataLoader v0.1.0 documentation</a> &raquo;</li>
151          <li><a href="index.html" >Readers</a> &raquo;</li> 
152      </ul>
153    </div>
154    <div class="footer">
155        &copy; Copyright 2010, sans group.
156      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
157    </div>
158  </body>
159</html>
Note: See TracBrowser for help on using the repository browser.