// search finished, update title and status message
else {
Search.stopPulse();
Search.title.text(_('Search Results'));
if (!resultCount)
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
else
Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount));
<h1>Welcome to pNbody’s documentation!<a class="headerlink" href="#welcome-to-pnbody-s-documentation" title="Permalink to this headline">¶</a></h1>
<h1>the Io module<a class="headerlink" href="#the-io-module" title="Permalink to this headline">¶</a></h1>
<dl class="function">
<dt id="pNbody.io.checkfile">
<tt class="descclassname">pNbody.io.</tt><tt class="descname">checkfile</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pNbody.io.checkfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Check if a file exists. An error is generated if the file
File <span class="nb">"<stdin>"</span>, line <span class="m">1</span>, in <span class="n-Identifier"><module></span>
File <span class="nb">"/home/epfl/revaz/local/lib64/python2.6/site-packages/pNbody/io.py"</span>, line <span class="m">33</span>, in <span class="n-Identifier">checkfile</span>
<span class="k">raise</span> <span class="ne">IOError</span><span class="p">(</span><span class="mi">915</span><span class="p">,</span><span class="s">'file </span><span class="si">%s</span><span class="s"> not found ! Pease check the file name.'</span><span class="o">%</span><span class="p">(</span><span class="n">name</span><span class="p">))</span>
<span class="nc">IOError</span>: <span class="n-Identifier">[Errno 915] file nofile not found ! Pease check the file name. </span>
</pre></div>
</div>
</dd></dl>
<dl class="function">
<dt id="pNbody.io.end_of_file">
<tt class="descclassname">pNbody.io.</tt><tt class="descname">end_of_file</tt><big>(</big><em>f</em>, <em>pio='no'</em>, <em>MPI=None</em><big>)</big><a class="headerlink" href="#pNbody.io.end_of_file" title="Permalink to this definition">¶</a></dt>
<dd><p>Return True if we have reached the end of the file f, False instead</p>
+<div><p>True if the we reached the end of the file
False if not</p>
-</blockquote>
+</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="pNbody.io.write_array">
<tt class="descclassname">pNbody.io.</tt><tt class="descname">write_array</tt><big>(</big><em>file</em>, <em>vec</em><big>)</big><a class="headerlink" href="#pNbody.io.write_array" title="Permalink to this definition">¶</a></dt>
-<dd><p>Write an array to a file.</p>
+<dd><p>Write an array to a file, in a very simple ascii format.</p>
-<tt class="descclassname">pNbody.io.</tt><tt class="descname">testfct</tt><big>(</big><big>)</big><a class="headerlink" href="#pNbody.io.testfct" title="Permalink to this definition">¶</a></dt>
-<dd><p>Raise a square matrix to the (integer) power <cite>n</cite>.</p>
-<p>For positive integers <cite>n</cite>, the power is computed by repeated matrix
-squarings and matrix multiplications. If <tt class="docutils literal"><span class="pre">n</span> <span class="pre">==</span> <span class="pre">0</span></tt>, the identity matrix
-of the same shape as M is returned. If <tt class="docutils literal"><span class="pre">n</span> <span class="pre"><</span> <span class="pre">0</span></tt>, the inverse
-is computed and then raised to the <tt class="docutils literal"><span class="pre">abs(n)</span></tt>.</p>
+<dt id="pNbody.io.read_ascii">
+<tt class="descclassname">pNbody.io.</tt><tt class="descname">read_ascii</tt><big>(</big><em>file</em>, <em>columns=None</em>, <em>lines=None</em>, <em>dtype=<type 'float'></em>, <em>skipheader=False</em>, <em>cchar='#'</em><big>)</big><a class="headerlink" href="#pNbody.io.read_ascii" title="Permalink to this definition">¶</a></dt>
+<dd><p>Read an ascii file.
+The function allows to set the number of columns or line to read.
+If it contains a header, the header is used to label all column. In
+<tr class="field"><th class="field-name">Parameters :</th><td class="field-body"><p class="first"><strong>file</strong> : the path to a file or an open file</p>
+<p><strong>columns</strong> : list</p>
<blockquote>
-<p>Matrix to be “powered.” Must be square, i.e. <tt class="docutils literal"><span class="pre">M.shape</span> <span class="pre">==</span> <span class="pre">(m,</span> <span class="pre">m)</span></tt>,
-with <cite>m</cite> a positive integer.</p>
-</blockquote>
-<p><strong>n</strong> : int</p>
+<div><p>the list of the columns to read
+if none, all columns are read</p>
+</div></blockquote>
+<p><strong>lines</strong> : list</p>
<blockquote>
-<p>The exponent can be any integer or long integer, positive,
-<dd>Provides an equivalent function as the exponentiation operator (<tt class="docutils literal"><span class="pre">**</span></tt>, not <tt class="docutils literal"><span class="pre">^</span></tt>).</dd>
+<tt class="descclassname">pNbody.io.</tt><tt class="descname">write_dump</tt><big>(</big><em>file</em>, <em>data</em><big>)</big><a class="headerlink" href="#pNbody.io.write_dump" title="Permalink to this definition">¶</a></dt>
+<tt class="descclassname">pNbody.io.</tt><tt class="descname">read_dump</tt><big>(</big><em>file</em><big>)</big><a class="headerlink" href="#pNbody.io.read_dump" title="Permalink to this definition">¶</a></dt>
-Search.setIndex({objects:{"pNbody.io":{write_array:[0,0,1],checkfile:[0,0,1],testfct:[0,0,1],end_of_file:[0,0,1]}},terms:{testfct:0,checkfil:0,shape:0,end_of_fil:0,paramet:0,also:0,should:0,vec:0,input:[],expon:0,local:0,modul:[0,1],"return":0,read:0,mpi:0,dat:0,python2:0,name:0,quarternion:0,integ:0,found:0,path:0,revaz:0,page:1,zero:0,arg:0,home:0,tmp:0,index:1,statu:0,matrix:0,neg:0,content:1,matrix_pow:0,an_existing_fil:0,"import":0,lib64:0,equiv:0,imaginari:0,nofil:0,power:0,numer:0,gener:0,sophist:0,linalgerror:0,element:0,epfl:0,interpret:[],search:1,last:0,traceback:0,equal:0,oper:0,point:0,overview:[1,2],arrai:0,"float":0,three:0,filenam:0,unlik:[],alreadi:[],ioerror:0,comput:0,open:0,unit:0,from:0,exponenti:0,errno:0,invert:0,numpi:0,invers:0,"long":0,call:0,valu:0,recent:0,type:0,more:0,"function":0,linalg:0,copi:[],ani:0,somewhat:0,line:0,"true":0,those:0,must:0,commun:0,none:0,ident:0,provid:0,see:0,can:0,error:0,posit:0,write_arrai:0,file:0,pio:0,"int":0,site:0,indic:1,packag:0,exist:0,have:0,tabl:1,asmatrix:[],ascii:[],check:0,end:0,welcom:1,a_non_existing_fil:0,pnbodi:[0,1],make:[],same:0,write:0,fals:0,bool:0,instead:0,document:1,repeat:0,mat:[],object:0,reach:0,peas:0,ndarrai:0,most:0,rais:0,multipl:0,data:[],parallel:0,squar:0,equival:0,array_lik:[],stdin:0,doe:0,exampl:0},objtypes:{"0":"py:function"},titles:["the Io module","Welcome to pNbody’s documentation!","Overview"],objnames:{"0":"Python function"},filenames:["rst/Io","index","rst/Overview"]})
\ No newline at end of file
+Search.setIndex({objects:{"pNbody.io":{read_dump:[1,1,1],checkfile:[1,1,1],read_ascii:[1,1,1],write_dump:[1,1,1],write_array:[1,1,1],end_of_file:[1,1,1]}},terms:{load:7,all:1,design7:5,movi:5,ndtype:1,thi:[1,6],testfct:[],checkfil:1,squar:[],shape:[],pythonx:6,end_of_fil:1,follow:[4,5],afil:1,fine:5,languag:7,paramet:[1,7],write:1,onli:[2,7],depend:4,system:7,read_ascii:1,also:7,skipe:1,should:[],openmpi:5,dict:1,vec:1,densiti:7,mpich:[],input:[],expon:[],local:1,modul:[4,0,5,1,7],applic:5,scipi:5,"return":1,format:[1,5,7],read:[1,7],doe:1,pypi:5,mpi:[1,5,7],dat:1,an_existing_fil:1,graphic:7,testal:6,commun:1,"new":[5,7],veri:[1,7],toolbox:7,now:4,special:5,python2:1,like:[6,7],specif:[],header:1,quarternion:[],list:1,prefix:4,integ:[],"default":4,approch:7,each:7,found:1,path:1,revaz:1,where:6,page:0,compil:[4,5,2],www:5,set:1,dump:1,map:7,write_dump:1,begin:1,redefin:7,zero:[],possibl:4,design:7,tempertur:7,arg:[],home:1,orient:7,particl:7,mat:[],tmp:1,index:[0,5],statu:1,mpeg:5,matrix:1,neg:[],label:1,content:0,python_directori:6,prerequist:[0,5,2],matrix_pow:[],mencod:5,"import":1,lib64:1,equiv:[],complic:7,imaginari:[],php:5,nofil:1,arang:1,write_arrai:1,million:7,imagemagick:5,power:[],numer:[],gener:1,manipul:7,chang:6,sophist:[],len:1,standard:[4,5],bodi:7,linalgerror:[],explor:7,dictionari:1,epfl:1,mplayer:5,valu:7,addit:5,mplayerhq:5,convert:5,last:1,capabl:[5,7],column:1,traceback:1,equal:[],etc:7,rais:1,xrang:1,fals:1,implement:7,com:5,interact:7,first:1,oper:[],useful:5,point:[],dtype:1,arrai:1,"float":1,prefer:7,number:1,two:5,filenam:1,unlik:[],alreadi:7,been:7,linux:2,wrap:5,pythonwar:5,txt:1,open:1,your:[4,6],unit:[],three:[],from:[4,0,2,1],creat:7,simpli:6,script:[5,7],errno:1,invert:[],support:2,numpi:[1,5],invers:[],"long":[],name:1,gif:5,without:7,call:1,interpret:7,desing:7,basic:5,overview:[0,7],lage:7,ioerror:1,velocit:7,type:[1,6],usr:6,"function":[1,5],gnu:5,option:4,linalg:[],python:[4,1,5,6,7],imag:5,copi:[],search:0,site:[1,6],warn:6,somewhat:[],cheeseshop:5,line:1,"true":1,than:4,those:[],must:6,"case":1,read_dump:1,none:1,ident:[],word:1,other_directori:4,comput:7,provid:[],gcc:5,setup:4,work:7,displai:7,can:7,mpi4pi:5,dmp:1,directori:[4,6],recent:1,limit:7,pickabl:1,error:1,posit:[],consumpt:7,more:[],root:4,html:5,pil:5,file:[4,1,7],tar:4,pio:1,"int":[],few:7,indic:0,facil:7,"char":1,cluster:7,sourc:[4,0,2],exponenti:[],have:1,tabl:0,close:1,exist:1,asmatrix:[],ascii:1,check:[1,0,6,2],sever:7,packag:[1,5,6],tarbal:[4,2],end:1,welcom:0,lib:6,perform:[4,7],pnbodi:[0,1,2,4,5,6,7],make:7,skiphead:1,same:[],instal:[4,0,6,2],note:6,how:7,need:[4,5],curent:2,bool:1,build:4,test:7,instead:1,you:4,document:0,simpl:1,cchar:1,higher:5,lam:[],product:5,repeat:[],http:5,distribut:5,see:[],org:5,object:[1,7],reach:1,peas:1,ndarrai:1,decompress:[4,2],most:1,xzf:4,want:4,user:7,consid:1,aproch:[],mai:7,multipl:[],memeri:[],contain:[1,7],data:1,parallel:[1,5,7],physic:7,a_non_existing_fil:1,other:1,memori:7,stereo:7,equival:[],array_lik:[],ani:[],stdin:1,well:5,element:[],pickl:1,look:6,anoth:4,exampl:[1,0,3,6,2],command:[4,7],allow:[1,7],enter:4,order:5,usual:6},objtypes:{"0":"py:function","1":"np:function"},titles:["Welcome to pNbody’s documentation!","the Io module","Installation","Examples","Installing from source","Prerequiste","Check the installation","Overview"],objnames:{"0":"Python function","1":"Python function"},filenames:["index","rst/Io","rst/Installation","rst/Documentation_and_examples","rst/Installing_from_tarball","rst/Prerequiste","rst/Test_the_installation","rst/Overview"]})