Offset 1, 4 lines modified | Offset 1, 4 lines modified | ||
1 | · | 1 | ·16e86ef58422ecf548c69b1a52743dfe·119960·doc·optional·python-gsd-doc_3.0.1-3_all.deb |
2 | ·db62f0df1c966c54385264229ef537ca·608612·debug·optional·python3-gsd-dbgsym_3.0.1-3_i386.deb | 2 | ·db62f0df1c966c54385264229ef537ca·608612·debug·optional·python3-gsd-dbgsym_3.0.1-3_i386.deb |
3 | ·5bf4872d42bb84f4d53fb290ab899681·241024·python·optional·python3-gsd_3.0.1-3_i386.deb | 3 | ·5bf4872d42bb84f4d53fb290ab899681·241024·python·optional·python3-gsd_3.0.1-3_i386.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2023-08-02·12:37:21.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2023-08-02·12:37:21.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····25 | 2 | -rw-r--r--···0········0········0·····2552·2023-08-02·12:37:21.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···117216·2023-08-02·12:37:21.000000·data.tar.xz | 3 | -rw-r--r--···0········0········0···117216·2023-08-02·12:37:21.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | ··Streams:···········1 | 1 | ··Streams:···········1 |
2 | ··Blocks:············1 | 2 | ··Blocks:············1 |
3 | ··Compressed·size:···25 | 3 | ··Compressed·size:···2552·B |
4 | ··Uncompressed·size:·10.0·KiB·(10240·B) | 4 | ··Uncompressed·size:·10.0·KiB·(10240·B) |
5 | ··Ratio:·············0.249 | 5 | ··Ratio:·············0.249 |
6 | ··Check:·············CRC64 | 6 | ··Check:·············CRC64 |
7 | ··Stream·Padding:····0·B | 7 | ··Stream·Padding:····0·B |
8 | ··Streams: | 8 | ··Streams: |
9 | ····Stream····Blocks······CompOffset····UncompOffset········CompSize······UncompSize··Ratio··Check······Padding | 9 | ····Stream····Blocks······CompOffset····UncompOffset········CompSize······UncompSize··Ratio··Check······Padding |
10 | ·········1·········1···············0···············0············25 | 10 | ·········1·········1···············0···············0············2552···········10240··0.249··CRC64············0 |
11 | ··Blocks: | 11 | ··Blocks: |
12 | ····Stream·····Block······CompOffset····UncompOffset·······TotalSize······UncompSize··Ratio··Check | 12 | ····Stream·····Block······CompOffset····UncompOffset·······TotalSize······UncompSize··Ratio··Check |
13 | ·········1·········1··············12···············0············251 | 13 | ·········1·········1··············12···············0············2516···········10240··0.246··CRC64 |
Offset 65, 15 lines modified | Offset 65, 15 lines modified | ||
65 | -rw-r--r--···0·root·········(0)·root·········(0)····23806·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-api.html | 65 | -rw-r--r--···0·root·········(0)·root·········(0)····23806·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-api.html |
66 | -rw-r--r--···0·root·········(0)·root·········(0)····87993·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-module-gsd.fl.html | 66 | -rw-r--r--···0·root·········(0)·root·········(0)····87993·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-module-gsd.fl.html |
67 | -rw-r--r--···0·root·········(0)·root·········(0)····91372·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-module-gsd.hoomd.html | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····91372·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-module-gsd.hoomd.html |
68 | -rw-r--r--···0·root·········(0)·root·········(0)····49733·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-module-gsd.pygsd.html | 68 | -rw-r--r--···0·root·········(0)·root·········(0)····49733·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-module-gsd.pygsd.html |
69 | -rw-r--r--···0·root·········(0)·root·········(0)····19294·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-module-gsd.version.html | 69 | -rw-r--r--···0·root·········(0)·root·········(0)····19294·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/python-module-gsd.version.html |
70 | -rw-r--r--···0·root·········(0)·root·········(0)···108026·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/schema-hoomd.html | 70 | -rw-r--r--···0·root·········(0)·root·········(0)···108026·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/schema-hoomd.html |
71 | -rw-r--r--···0·root·········(0)·root·········(0)····16972·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/search.html | 71 | -rw-r--r--···0·root·········(0)·root·········(0)····16972·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/search.html |
72 | -rw-r--r--···0·root·········(0)·root·········(0)····805 | 72 | -rw-r--r--···0·root·········(0)·root·········(0)····80518·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/searchindex.js |
73 | -rw-r--r--···0·root·········(0)·root·········(0)····33183·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/shapes.html | 73 | -rw-r--r--···0·root·········(0)·root·········(0)····33183·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/shapes.html |
74 | -rw-r--r--···0·root·········(0)·root·········(0)····21209·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/specification.html | 74 | -rw-r--r--···0·root·········(0)·root·········(0)····21209·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/specification.html |
75 | -rw-r--r--···0·root·········(0)·root·········(0)····25504·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/style.html | 75 | -rw-r--r--···0·root·········(0)·root·········(0)····25504·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/style.html |
76 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-08-02·12:37:21.000000·./usr/share/doc-base/ | 76 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-08-02·12:37:21.000000·./usr/share/doc-base/ |
77 | -rw-r--r--···0·root·········(0)·root·········(0)······331·2023-08-02·12:37:21.000000·./usr/share/doc-base/python-gsd-doc.python-gsd | 77 | -rw-r--r--···0·root·········(0)·root·········(0)······331·2023-08-02·12:37:21.000000·./usr/share/doc-base/python-gsd-doc.python-gsd |
78 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/_static/doctools.js·->·../../../../javascript/sphinxdoc/1.0/doctools.js | 78 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/_static/doctools.js·->·../../../../javascript/sphinxdoc/1.0/doctools.js |
79 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/_static/language_data.js·->·../../../../javascript/sphinxdoc/1.0/language_data.js | 79 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2023-08-02·12:37:21.000000·./usr/share/doc/python-gsd-doc/html/_static/language_data.js·->·../../../../javascript/sphinxdoc/1.0/language_data.js |
Offset 373, 23 lines modified | Offset 373, 23 lines modified | ||
373 | <span·class="gh">Out[16]:·</span><span·class="go">5</span> | 373 | <span·class="gh">Out[16]:·</span><span·class="go">5</span> |
374 | <span·class="gp">In·[17]:·</span><span·class="n">frame</span><span·class="o">.</span><span·class="n">particles</span><span·class="o">.</span><span·class="n">N</span> | 374 | <span·class="gp">In·[17]:·</span><span·class="n">frame</span><span·class="o">.</span><span·class="n">particles</span><span·class="o">.</span><span·class="n">N</span> |
375 | <span·class="gh">Out[17]:·</span><span·class="go">9</span> | 375 | <span·class="gh">Out[17]:·</span><span·class="go">9</span> |
376 | <span·class="gp">In·[18]:·</span><span·class="n">frame</span><span·class="o">.</span><span·class="n">particles</span><span·class="o">.</span><span·class="n">position</span> | 376 | <span·class="gp">In·[18]:·</span><span·class="n">frame</span><span·class="o">.</span><span·class="n">particles</span><span·class="o">.</span><span·class="n">position</span> |
377 | <span·class="gh">Out[18]:·</span> | 377 | <span·class="gh">Out[18]:·</span> |
378 | <span·class="go">array([[0. | 378 | <span·class="go">array([[0.55901694,·0.8898271·,·0.43589562],</span> |
379 | <span·class="go">·······[0.63518625,·0.99724066,·0.6972499·],</span> | ||
379 | <span·class="go">·······[0.51 | 380 | <span·class="go">·······[0.75170743,·0.21675637,·0.44101864],</span> |
380 | <span·class="go">·······[0.940604··,·0.8364344·,·0.9780925·],</span> | ||
381 | <span·class="go">·······[0.66446984,·0.98288757,·0.7359086·],</span> | ||
382 | <span·class="go">·······[0.39177015,·0.07667109,·0.08814042],</span> | ||
383 | <span·class="go">·······[0.5378634·,·0.77295053,·0.88480115],</span> | ||
384 | <span·class="go">·······[0. | 381 | <span·class="go">·······[0.4138972·,·0.6034844·,·0.18022703],</span> |
382 | <span·class="go">·······[0.00870537,·0.9175535·,·0.44198006],</span> | ||
383 | <span·class="go">·······[0.9473444·,·0.49907002,·0.48010242],</span> | ||
384 | <span·class="go">·······[0.9689281·,·0.546104··,·0.46744704],</span> | ||
385 | <span·class="go">·······[0.4 | 385 | <span·class="go">·······[0.44002607,·0.93499434,·0.70172346],</span> |
386 | <span·class="go">·······[0. | 386 | <span·class="go">·······[0.21973263,·0.2530901·,·0.7392052·]],·dtype=float32)</span> |
387 | </pre></div> | 387 | </pre></div> |
388 | </div> | 388 | </div> |
389 | <p><a·class="reference·internal"·href="python-module-gsd.hoomd.html#gsd.hoomd.HOOMDTrajectory"·title="gsd.hoomd.HOOMDTrajectory"><code·class="xref·any·py·py-class·docutils·literal·notranslate"><span·class="pre">gsd.hoomd.HOOMDTrajectory</span></code></a>·supports·random·indexing·of·frames·in·the·file. | 389 | <p><a·class="reference·internal"·href="python-module-gsd.hoomd.html#gsd.hoomd.HOOMDTrajectory"·title="gsd.hoomd.HOOMDTrajectory"><code·class="xref·any·py·py-class·docutils·literal·notranslate"><span·class="pre">gsd.hoomd.HOOMDTrajectory</span></code></a>·supports·random·indexing·of·frames·in·the·file. |
390 | Indexing·into·a·trajectory·returns·a·<a·class="reference·internal"·href="python-module-gsd.hoomd.html#gsd.hoomd.Frame"·title="gsd.hoomd.Frame"><code·class="xref·any·py·py-class·docutils·literal·notranslate"><span·class="pre">gsd.hoomd.Frame</span></code></a>.</p> | 390 | Indexing·into·a·trajectory·returns·a·<a·class="reference·internal"·href="python-module-gsd.hoomd.html#gsd.hoomd.Frame"·title="gsd.hoomd.Frame"><code·class="xref·any·py·py-class·docutils·literal·notranslate"><span·class="pre">gsd.hoomd.Frame</span></code></a>.</p> |
391 | </section> | 391 | </section> |
392 | <section·id="slicing-and-selection"> | 392 | <section·id="slicing-and-selection"> |
393 | <h2>Slicing·and·selection<a·class="headerlink"·href="#slicing-and-selection"·title="Link·to·this·heading">¶</a></h2> | 393 | <h2>Slicing·and·selection<a·class="headerlink"·href="#slicing-and-selection"·title="Link·to·this·heading">¶</a></h2> |
Offset 416, 21 lines modified | Offset 416, 21 lines modified | ||
416 | <h2>Pure·python·reader<a·class="headerlink"·href="#pure-python-reader"·title="Link·to·this·heading">¶</a></h2> | 416 | <h2>Pure·python·reader<a·class="headerlink"·href="#pure-python-reader"·title="Link·to·this·heading">¶</a></h2> |
417 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[23]:·</span><span·class="n">f</span>·<span·class="o">=</span>·<span·class="n">gsd</span><span·class="o">.</span><span·class="n">pygsd</span><span·class="o">.</span><span·class="n">GSDFile</span><span·class="p">(</span><span·class="nb">open</span><span·class="p">(</span><span·class="s1">'example.gsd'</span><span·class="p">,</span>·<span·class="s1">'rb'</span><span·class="p">))</span> | 417 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[23]:·</span><span·class="n">f</span>·<span·class="o">=</span>·<span·class="n">gsd</span><span·class="o">.</span><span·class="n">pygsd</span><span·class="o">.</span><span·class="n">GSDFile</span><span·class="p">(</span><span·class="nb">open</span><span·class="p">(</span><span·class="s1">'example.gsd'</span><span·class="p">,</span>·<span·class="s1">'rb'</span><span·class="p">))</span> |
418 | <span·class="gp">In·[24]:·</span><span·class="n">trajectory</span>·<span·class="o">=</span>·<span·class="n">gsd</span><span·class="o">.</span><span·class="n">hoomd</span><span·class="o">.</span><span·class="n">HOOMDTrajectory</span><span·class="p">(</span><span·class="n">f</span><span·class="p">);</span> | 418 | <span·class="gp">In·[24]:·</span><span·class="n">trajectory</span>·<span·class="o">=</span>·<span·class="n">gsd</span><span·class="o">.</span><span·class="n">hoomd</span><span·class="o">.</span><span·class="n">HOOMDTrajectory</span><span·class="p">(</span><span·class="n">f</span><span·class="p">);</span> |
419 | <span·class="gp">In·[25]:·</span><span·class="n">trajectory</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">particles</span><span·class="o">.</span><span·class="n">position</span> | 419 | <span·class="gp">In·[25]:·</span><span·class="n">trajectory</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span><span·class="o">.</span><span·class="n">particles</span><span·class="o">.</span><span·class="n">position</span> |
420 | <span·class="gh">Out[25]:·</span> | 420 | <span·class="gh">Out[25]:·</span> |
421 | <span·class="go">array([[0. | 421 | <span·class="go">array([[0.89493656,·0.37098098,·0.49399412],</span> |
422 | <span·class="go">·······[0.04967985,·0.79632515,·0.8515382·],</span> | ||
423 | <span·class="go">·······[0.54768705,·0.79555255,·0.8117533·],</span> | ||
422 | <span·class="go">·······[0. | 424 | <span·class="go">·······[0.5035941·,·0.4786534·,·0.10695654],</span> |
423 | <span·class="go">·······[0.48936406,·0.8055861·,·0.91310847],</span> | ||
424 | <span·class="go">·······[0.12624218,·0.93906635,·0.12888773],</span> | ||
425 | <span·class="go">·······[0. | 425 | <span·class="go">·······[0.6661297·,·0.9253157·,·0.4248592·],</span> |
426 | <span·class="go">·······[0.21 | 426 | <span·class="go">·······[0.82117325,·0.9103132·,·0.16975206],</span> |
427 | <span·class="go">·······[0.9 | 427 | <span·class="go">·······[0.90396005,·0.08394167,·0.9519467·]],·dtype=float32)</span> |
428 | </pre></div> | 428 | </pre></div> |
429 | </div> | 429 | </div> |
430 | <p>You·can·use·<strong>GSD</strong>·without·needing·to·compile·C·code·to·read·<strong>GSD</strong>·files | 430 | <p>You·can·use·<strong>GSD</strong>·without·needing·to·compile·C·code·to·read·<strong>GSD</strong>·files |
431 | using·<a·class="reference·internal"·href="python-module-gsd.pygsd.html#gsd.pygsd.GSDFile"·title="gsd.pygsd.GSDFile"><code·class="xref·any·py·py-class·docutils·literal·notranslate"><span·class="pre">gsd.pygsd.GSDFile</span></code></a>·in·combination·with·<a·class="reference·internal"·href="python-module-gsd.hoomd.html#gsd.hoomd.HOOMDTrajectory"·title="gsd.hoomd.HOOMDTrajectory"><code·class="xref·any·py·py-class·docutils·literal·notranslate"><span·class="pre">gsd.hoomd.HOOMDTrajectory</span></code></a>.·It | 431 | using·<a·class="reference·internal"·href="python-module-gsd.pygsd.html#gsd.pygsd.GSDFile"·title="gsd.pygsd.GSDFile"><code·class="xref·any·py·py-class·docutils·literal·notranslate"><span·class="pre">gsd.pygsd.GSDFile</span></code></a>·in·combination·with·<a·class="reference·internal"·href="python-module-gsd.hoomd.html#gsd.hoomd.HOOMDTrajectory"·title="gsd.hoomd.HOOMDTrajectory"><code·class="xref·any·py·py-class·docutils·literal·notranslate"><span·class="pre">gsd.hoomd.HOOMDTrajectory</span></code></a>.·It |
432 | only·supports·the·<code·class="docutils·literal·notranslate"><span·class="pre">rb</span></code>·mode·and·does·not·read·files·as·fast·as·the·C | 432 | only·supports·the·<code·class="docutils·literal·notranslate"><span·class="pre">rb</span></code>·mode·and·does·not·read·files·as·fast·as·the·C |
433 | implementation.·It·takes·in·a·python·file-like·object,·so·it·can·be·used·with | 433 | implementation.·It·takes·in·a·python·file-like·object,·so·it·can·be·used·with |
434 | in-memory·IO·classes,·and·grid·file·classes·that·access·data·over·the·internet.</p> | 434 | in-memory·IO·classes,·and·grid·file·classes·that·access·data·over·the·internet.</p> |
Offset 96, 23 lines modified | Offset 96, 23 lines modified | ||
96 | Out[16]:·5 | 96 | Out[16]:·5 |
97 | In·[17]:·frame.particles.N | 97 | In·[17]:·frame.particles.N |
98 | Out[17]:·9 | 98 | Out[17]:·9 |
99 | In·[18]:·frame.particles.position | 99 | In·[18]:·frame.particles.position |
100 | Out[18]: | 100 | Out[18]: |
101 | array([[0.49011478,·0.3184916·,·0.34635413], | ||
102 | ·······[0.51997113,·0.31424052,·0.43918642], | ||
103 | ·······[0.940604··,·0.8364344·,·0.9780925·], | ||
104 | ·······[0.66446984,·0.98288757,·0.7359086·], | ||
105 | ·······[0.39177015,·0.07667109,·0.08814042], | ||
106 | ·······[0.5378634·,·0.77295053,·0.88480115], | ||
107 | ·······[0.38424742,·0.56573063,·0.5122713·], | ||
108 | ·······[0.49346748,·0.2559301·,·0.7543343·], | ||
109 | 101 | array([[0.55901694,·0.8898271·,·0.43589562], | |
102 | ·······[0.63518625,·0.99724066,·0.6972499·], | ||
103 | ·······[0.75170743,·0.21675637,·0.44101864], | ||
104 | ·······[0.4138972·,·0.6034844·,·0.18022703], | ||
105 | ·······[0.00870537,·0.9175535·,·0.44198006], | ||
106 | ·······[0.9473444·,·0.49907002,·0.48010242], | ||
107 | ·······[0.9689281·,·0.546104··,·0.46744704], | ||
108 | ·······[0.44002607,·0.93499434,·0.70172346], | ||
109 | ·······[0.21973263,·0.2530901·,·0.7392052·]],·dtype=float32) | ||
110 | _\x8g_\x8s_\x8d_\x8._\x8h_\x8o_\x8o_\x8m_\x8d_\x8._\x8H_\x8O_\x8O_\x8M_\x8D_\x8T_\x8r_\x8a_\x8j_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y·supports·random·indexing·of·frames·in·the·file. | 110 | _\x8g_\x8s_\x8d_\x8._\x8h_\x8o_\x8o_\x8m_\x8d_\x8._\x8H_\x8O_\x8O_\x8M_\x8D_\x8T_\x8r_\x8a_\x8j_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y·supports·random·indexing·of·frames·in·the·file. |
111 | Indexing·into·a·trajectory·returns·a·_\x8g_\x8s_\x8d_\x8._\x8h_\x8o_\x8o_\x8m_\x8d_\x8._\x8F_\x8r_\x8a_\x8m_\x8e. | 111 | Indexing·into·a·trajectory·returns·a·_\x8g_\x8s_\x8d_\x8._\x8h_\x8o_\x8o_\x8m_\x8d_\x8._\x8F_\x8r_\x8a_\x8m_\x8e. |
112 | *\x8**\x8**\x8**\x8**\x8*·S\x8Sl\x8li\x8ic\x8ci\x8in\x8ng\x8g·a\x8an\x8nd\x8d·s\x8se\x8el\x8le\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 112 | *\x8**\x8**\x8**\x8**\x8*·S\x8Sl\x8li\x8ic\x8ci\x8in\x8ng\x8g·a\x8an\x8nd\x8d·s\x8se\x8el\x8le\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
113 | Use·the·slicing·operator·to·select·individual·frames·or·a·subset·of·a | 113 | Use·the·slicing·operator·to·select·individual·frames·or·a·subset·of·a |
114 | trajectory. | 114 | trajectory. |
115 | In·[19]:·f·=·gsd.hoomd.open(name='example.gsd',·mode='r') | 115 | In·[19]:·f·=·gsd.hoomd.open(name='example.gsd',·mode='r') |
Offset 131, 21 lines modified | Offset 131, 21 lines modified | ||
131 | *\x8**\x8**\x8**\x8**\x8*·P\x8Pu\x8ur\x8re\x8e·p\x8py\x8yt\x8th\x8ho\x8on\x8n·r\x8re\x8ea\x8ad\x8de\x8er\x8r_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 131 | *\x8**\x8**\x8**\x8**\x8*·P\x8Pu\x8ur\x8re\x8e·p\x8py\x8yt\x8th\x8ho\x8on\x8n·r\x8re\x8ea\x8ad\x8de\x8er\x8r_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
132 | In·[23]:·f·=·gsd.pygsd.GSDFile(open('example.gsd',·'rb')) | 132 | In·[23]:·f·=·gsd.pygsd.GSDFile(open('example.gsd',·'rb')) |
133 | In·[24]:·trajectory·=·gsd.hoomd.HOOMDTrajectory(f); | 133 | In·[24]:·trajectory·=·gsd.hoomd.HOOMDTrajectory(f); |
134 | In·[25]:·trajectory[3].particles.position | 134 | In·[25]:·trajectory[3].particles.position |
135 | Out[25]: | 135 | Out[25]: |
136 | array([[0.65356326,·0.7962737·,·0.07955366], | ||
137 | ·······[0.31323192,·0.78354025,·0.29654226], | ||
138 | ·······[0.48936406,·0.8055861·,·0.91310847], | ||
139 | ·······[0.12624218,·0.93906635,·0.12888773], | ||
140 | ·······[0.21377043,·0.37677625,·0.2331857·], | ||
141 | 136 | array([[0.89493656,·0.37098098,·0.49399412], | |
137 | ·······[0.04967985,·0.79632515,·0.8515382·], | ||
138 | ·······[0.54768705,·0.79555255,·0.8117533·], | ||
139 | ·······[0.5035941·,·0.4786534·,·0.10695654], | ||
140 | ·······[0.6661297·,·0.9253157·,·0.4248592·], | ||
141 | ·······[0.82117325,·0.9103132·,·0.16975206], | ||
142 | ·······[0.9 | 142 | ·······[0.90396005,·0.08394167,·0.9519467·]],·dtype=float32) |
143 | You·can·use·G\x8GS\x8SD\x8D·without·needing·to·compile·C·code·to·read·G\x8GS\x8SD\x8D·files·using | 143 | You·can·use·G\x8GS\x8SD\x8D·without·needing·to·compile·C·code·to·read·G\x8GS\x8SD\x8D·files·using |
144 | _\x8g_\x8s_\x8d_\x8._\x8p_\x8y_\x8g_\x8s_\x8d_\x8._\x8G_\x8S_\x8D_\x8F_\x8i_\x8l_\x8e·in·combination·with·_\x8g_\x8s_\x8d_\x8._\x8h_\x8o_\x8o_\x8m_\x8d_\x8._\x8H_\x8O_\x8O_\x8M_\x8D_\x8T_\x8r_\x8a_\x8j_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y.·It·only | 144 | _\x8g_\x8s_\x8d_\x8._\x8p_\x8y_\x8g_\x8s_\x8d_\x8._\x8G_\x8S_\x8D_\x8F_\x8i_\x8l_\x8e·in·combination·with·_\x8g_\x8s_\x8d_\x8._\x8h_\x8o_\x8o_\x8m_\x8d_\x8._\x8H_\x8O_\x8O_\x8M_\x8D_\x8T_\x8r_\x8a_\x8j_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y.·It·only |
145 | supports·the·rb·mode·and·does·not·read·files·as·fast·as·the·C·implementation. | 145 | supports·the·rb·mode·and·does·not·read·files·as·fast·as·the·C·implementation. |
146 | It·takes·in·a·python·file-like·object,·so·it·can·be·used·with·in-memory·IO | 146 | It·takes·in·a·python·file-like·object,·so·it·can·be·used·with·in-memory·IO |
147 | classes,·and·grid·file·classes·that·access·data·over·the·internet. | 147 | classes,·and·grid·file·classes·that·access·data·over·the·internet. |
148 | Warning | 148 | Warning |
149 | _\x8g_\x8s_\x8d_\x8._\x8p_\x8y_\x8g_\x8s_\x8d·is·s\x8sl\x8lo\x8ow\x8w.·Use·_\x8g_\x8s_\x8d_\x8._\x8h_\x8o_\x8o_\x8m_\x8d_\x8._\x8o_\x8p_\x8e_\x8n·whenever·possible. | 149 | _\x8g_\x8s_\x8d_\x8._\x8p_\x8y_\x8g_\x8s_\x8d·is·s\x8sl\x8lo\x8ow\x8w.·Use·_\x8g_\x8s_\x8d_\x8._\x8h_\x8o_\x8o_\x8m_\x8d_\x8._\x8o_\x8p_\x8e_\x8n·whenever·possible. |
Offset 890, 65 lines modified | Offset 890, 65 lines modified | ||
890 | ········"create_fram":·8, | 890 | ········"create_fram":·8, |
891 | ········"step":·[8,·11,·15,·18], | 891 | ········"step":·[8,·11,·15,·18], |
892 | ········"random":·[8,·9], | 892 | ········"random":·[8,·9], |
893 | ········"extend":·[8,·15], | 893 | ········"extend":·[8,·15], |
894 | ········"rang":·[8,·14], | 894 | ········"rang":·[8,·14], |
895 | ········"similar":·8, | 895 | ········"similar":·8, |
896 | ········"express":·[8,·12], | 896 | ········"express":·[8,·12], |
897 | ········" | 897 | ········"55901694":·8, |
898 | ········"3184916":·8, | ||
899 | ········"34635413":·8, | ||
900 | ········" | 898 | ········"8898271":·8, |
901 | ········"31424052":·8, | ||
902 | ········"43 | 899 | ········"43589562":·8, |
900 | ········"63518625":·8, | ||
901 | ········"99724066":·8, | ||
902 | ········"6972499":·8, | ||
903 | ········"75170743":·8, | ||
904 | ········"21675637":·8, | ||
905 | ········"44101864":·8, | ||
906 | ········"4138972":·8, | ||
907 | ········"6034844":·8, | ||
908 | ········"18022703":·8, | ||
909 | ········"00870537":·8, | ||
910 | ········"9175535":·8, | ||
911 | ········"44198006":·8, | ||
912 | ········"9473444":·8, | ||
913 | ········"49907002":·8, | ||
914 | ········"48010242":·8, | ||
915 | ········"9689281":·8, | ||
903 | ········" | 916 | ········"546104":·8, |
904 | ········" | 917 | ········"46744704":·8, |
905 | ········"9780925":·8, | ||
906 | ········"66446984":·8, | ||
907 | ········"98288757":·8, | ||
908 | ········"7359086":·8, | ||
909 | ········"39177015":·8, | ||
910 | ········"07667109":·8, | ||
911 | ········"08814042":·8, | ||
912 | ········"5378634":·8, | ||
913 | ········"77295053":·8, | ||
914 | ········"88480115":·8, | ||
915 | ········"38424742":·8, | ||
916 | ········"56573063":·8, | ||
917 | ········"5122713":·8, | ||
918 | ········"4 | 918 | ········"44002607":·8, |
919 | ········"93499434":·8, | ||
920 | ········"70172346":·8, | ||
921 | ········"21973263":·8, | ||
919 | ········"25 | 922 | ········"2530901":·8, |
920 | ········"7543343":·8, | ||
921 | ········"8017965":·8, | ||
922 | ········"13090031":·8, | ||
923 | ········" | 923 | ········"7392052":·8, |
924 | ········"individu":·8, | 924 | ········"individu":·8, |
925 | ········"print":·[8,·16], | 925 | ········"print":·[8,·16], |
926 | ········"every_2nd_fram":·8, | 926 | ········"every_2nd_fram":·8, |
927 | ········"65356326":·8, | ||
928 | ········"7962737":·8, | ||
929 | ········"07955366":·8, | ||
930 | ········"31323192":·8, | ||
931 | ········"78354025":·8, | ||
932 | ········"29654226":·8, | ||
933 | ········" | 927 | ········"89493656":·8, |
928 | ········"37098098":·8, | ||
929 | ········"49399412":·8, | ||
930 | ········"04967985":·8, | ||
931 | ········"79632515":·8, | ||
934 | ········"8 | 932 | ········"8515382":·8, |
935 | ········"91310847":·8, | ||
936 | ········"12624218":·8, | ||
937 | ········"93906635":·8, | ||
938 | ········"12888773":·8, | ||
939 | ········"21377043":·8, | ||
940 | ········" | 933 | ········"54768705":·8, |
934 | ········"79555255":·8, | ||
935 | ········"8117533":·8, | ||
936 | ········"5035941":·8, | ||
937 | ········"4786534":·8, | ||
938 | ········"10695654":·8, | ||
939 | ········"6661297":·8, | ||
941 | ········"2 | 940 | ········"9253157":·8, |
942 | ········"21309707":·8, | ||
943 | ········"1822277":·8, | ||
944 | ········"283754":·8, | ||
945 | ········"96963763":·8, | ||
946 | ········"35292706":·8, | ||
947 | ········" | 941 | ········"4248592":·8, |
942 | ········"82117325":·8, | ||
943 | ········"9103132":·8, | ||
944 | ········"16975206":·8, | ||
945 | ········"90396005":·8, | ||
946 | ········"08394167":·8, | ||
947 | ········"9519467":·8, | ||
948 | ········"It":·[8,·13,·16,·18], | 948 | ········"It":·[8,·13,·16,·18], |
949 | ········"like":·[8,·14,·16], | 949 | ········"like":·[8,·14,·16], |
950 | ········"grid":·[8,·16], | 950 | ········"grid":·[8,·16], |
951 | ········"over":·[8,·15], | 951 | ········"over":·[8,·15], |
952 | ········"internet":·[8,·11], | 952 | ········"internet":·[8,·11], |
953 | ········"slow":·8, | 953 | ········"slow":·8, |
954 | ········"whenev":·8, | 954 | ········"whenev":·8, |