Skip to content

Commit 995334b

Browse files
committed
deploy: 1dbca47
1 parent 29c8cda commit 995334b

File tree

12 files changed

+536
-25
lines changed

12 files changed

+536
-25
lines changed

_sources/index.rst.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ Countoscope
88
Indices and tables
99
==================
1010

11-
* :ref:`genindex`
12-
* :ref:`modindex`
13-
* :ref:`search`
11+
.. toctree::
12+
:caption: Tutorial
13+
:maxdepth: 2
14+
:hidden:
15+
16+
tutorials/tutorial
1417

15-
.. toctree::
18+
.. toctree::
19+
:caption: Python modules
1620
:maxdepth: 2
1721
:hidden:
1822

1923
modules/trajectorytool
2024
modules/boxcountingtool
21-
modules/countoscope
25+
modules/countoscope

_sources/tutorials/tutorial.rst.txt

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
Tutorial
2+
========
3+
4+
Installation
5+
------------
6+
7+
In order to install the Countoscope Python tool, clone the repository using:
8+
9+
.. code:: bash
10+
11+
git clone https://github.com/Countoscope/countoscope.git
12+
13+
Install all the required Python packages using:
14+
15+
.. code:: bash
16+
17+
pip install -r requirements.txt
18+
19+
Then, type:
20+
21+
.. code:: bash
22+
23+
pip install .
24+
25+
Use
26+
---
27+
28+
In a Python script or a Jupyter Notebook, define the path to the data trajectory
29+
file. For instance, using the `3D-closed` dataset provided in the `datasets`
30+
repository:
31+
32+
.. code:: python
33+
34+
path_to_data = "/mpath/datasets/datasets/3D-closed/trajectory.xyz"
35+
36+
Import the Countoscope as well as NumPy by typing:
37+
38+
.. code:: python
39+
40+
from countoscope import Countoscope
41+
import numpy as np
42+
43+
The trajectory file `trajectory.xyz` corresponds to a system of 190 particles in
44+
a :math:`(30 Å)^3` box. Let us define the system size as a NumPy array:
45+
46+
.. code:: python
47+
48+
system_size = np.array([30, 30, 30])
49+
50+
Finally, let us choose a grid size for the Countoscope measurement:
51+
52+
.. code:: python
53+
54+
box_size=np.array([10, 10, 10])
55+
56+
Then, launch the Countoscope calculation using *trajectory_file*, *system_size*,
57+
and *box_size* as input parameters:
58+
59+
.. code:: python
60+
61+
results = Countoscope(trajectory_file = path_to_data,
62+
system_size=system_size,
63+
box_size=box_size)
64+
results.run()
65+
66+
After the calculation is done, all the computed data can be obtained from the
67+
`results`object. For instance, for :math:`<N>`, type:
68+
69+
.. code:: python
70+
71+
print(np.round(results.mean_of_N,2))
72+
73+
which will return:
74+
75+
.. code:: bash
76+
77+
0.84
78+
79+
To plot :math:`<\Delta N^2>`, let us import Pyplot first:
80+
81+
.. code:: python
82+
83+
import matplotlib.pyplot as plt
84+
plt.loglog(results.delta_n2)

genindex.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,12 @@
196196
<input type="hidden" name="area" value="default">
197197
</form>
198198
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
199-
<ul>
199+
<p class="caption" role="heading"><span class="caption-text">Tutorial</span></p>
200+
<ul>
201+
<li class="toctree-l1"><a class="reference internal" href="tutorials/tutorial.html">Tutorial</a></li>
202+
</ul>
203+
<p class="caption" role="heading"><span class="caption-text">Python modules</span></p>
204+
<ul>
200205
<li class="toctree-l1"><a class="reference internal" href="modules/trajectorytool.html">Trajectory Tool</a></li>
201206
<li class="toctree-l1"><a class="reference internal" href="modules/boxcountingtool.html">Box Counting Tool</a></li>
202207
<li class="toctree-l1"><a class="reference internal" href="modules/countoscope.html">Countoscope</a></li>

index.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head><meta charset="utf-8"/>
44
<meta name="viewport" content="width=device-width,initial-scale=1"/>
55
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
6-
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Trajectory Tool" href="modules/trajectorytool.html" />
6+
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Tutorial" href="tutorials/tutorial.html" />
77

88
<!-- Generated with Sphinx 7.4.7 and Furo 2024.08.06 -->
99
<title>Countoscope 0.0.1 documentation</title>
@@ -198,7 +198,12 @@
198198
<input type="hidden" name="area" value="default">
199199
</form>
200200
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
201-
<ul>
201+
<p class="caption" role="heading"><span class="caption-text">Tutorial</span></p>
202+
<ul>
203+
<li class="toctree-l1"><a class="reference internal" href="tutorials/tutorial.html">Tutorial</a></li>
204+
</ul>
205+
<p class="caption" role="heading"><span class="caption-text">Python modules</span></p>
206+
<ul>
202207
<li class="toctree-l1"><a class="reference internal" href="modules/trajectorytool.html">Trajectory Tool</a></li>
203208
<li class="toctree-l1"><a class="reference internal" href="modules/boxcountingtool.html">Box Counting Tool</a></li>
204209
<li class="toctree-l1"><a class="reference internal" href="modules/countoscope.html">Countoscope</a></li>
@@ -249,11 +254,8 @@ <h1>Countoscope<a class="headerlink" href="#countoscope" title="Link to this hea
249254
</section>
250255
<section id="indices-and-tables">
251256
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Link to this heading"></a></h1>
252-
<ul class="simple">
253-
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
254-
<li><p><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></p></li>
255-
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
256-
</ul>
257+
<div class="toctree-wrapper compound">
258+
</div>
257259
<div class="toctree-wrapper compound">
258260
</div>
259261
</section>
@@ -263,12 +265,12 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Li
263265
<footer>
264266

265267
<div class="related-pages">
266-
<a class="next-page" href="modules/trajectorytool.html">
268+
<a class="next-page" href="tutorials/tutorial.html">
267269
<div class="page-info">
268270
<div class="context">
269271
<span>Next</span>
270272
</div>
271-
<div class="title">Trajectory Tool</div>
273+
<div class="title">Tutorial</div>
272274
</div>
273275
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
274276
</a>
@@ -301,5 +303,6 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Li
301303
<script src="_static/doctools.js?v=9a2dae69"></script>
302304
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
303305
<script src="_static/scripts/furo.js?v=5fa4622c"></script>
306+
<script async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
304307
</body>
305308
</html>

modules/boxcountingtool.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,12 @@
198198
<input type="hidden" name="area" value="default">
199199
</form>
200200
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
201-
<ul class="current">
201+
<p class="caption" role="heading"><span class="caption-text">Tutorial</span></p>
202+
<ul>
203+
<li class="toctree-l1"><a class="reference internal" href="../tutorials/tutorial.html">Tutorial</a></li>
204+
</ul>
205+
<p class="caption" role="heading"><span class="caption-text">Python modules</span></p>
206+
<ul class="current">
202207
<li class="toctree-l1"><a class="reference internal" href="trajectorytool.html">Trajectory Tool</a></li>
203208
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Box Counting Tool</a></li>
204209
<li class="toctree-l1"><a class="reference internal" href="countoscope.html">Countoscope</a></li>

modules/countoscope.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,12 @@
198198
<input type="hidden" name="area" value="default">
199199
</form>
200200
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
201-
<ul class="current">
201+
<p class="caption" role="heading"><span class="caption-text">Tutorial</span></p>
202+
<ul>
203+
<li class="toctree-l1"><a class="reference internal" href="../tutorials/tutorial.html">Tutorial</a></li>
204+
</ul>
205+
<p class="caption" role="heading"><span class="caption-text">Python modules</span></p>
206+
<ul class="current">
202207
<li class="toctree-l1"><a class="reference internal" href="trajectorytool.html">Trajectory Tool</a></li>
203208
<li class="toctree-l1"><a class="reference internal" href="boxcountingtool.html">Box Counting Tool</a></li>
204209
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Countoscope</a></li>

modules/trajectorytool.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head><meta charset="utf-8"/>
44
<meta name="viewport" content="width=device-width,initial-scale=1"/>
55
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
6-
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Box Counting Tool" href="boxcountingtool.html" /><link rel="prev" title="Countoscope" href="../index.html" />
6+
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Box Counting Tool" href="boxcountingtool.html" /><link rel="prev" title="Tutorial" href="../tutorials/tutorial.html" />
77

88
<!-- Generated with Sphinx 7.4.7 and Furo 2024.08.06 -->
99
<title>Trajectory Tool - Countoscope 0.0.1 documentation</title>
@@ -198,7 +198,12 @@
198198
<input type="hidden" name="area" value="default">
199199
</form>
200200
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
201-
<ul class="current">
201+
<p class="caption" role="heading"><span class="caption-text">Tutorial</span></p>
202+
<ul>
203+
<li class="toctree-l1"><a class="reference internal" href="../tutorials/tutorial.html">Tutorial</a></li>
204+
</ul>
205+
<p class="caption" role="heading"><span class="caption-text">Python modules</span></p>
206+
<ul class="current">
202207
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Trajectory Tool</a></li>
203208
<li class="toctree-l1"><a class="reference internal" href="boxcountingtool.html">Box Counting Tool</a></li>
204209
<li class="toctree-l1"><a class="reference internal" href="countoscope.html">Countoscope</a></li>
@@ -299,14 +304,14 @@
299304
</div>
300305
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
301306
</a>
302-
<a class="prev-page" href="../index.html">
307+
<a class="prev-page" href="../tutorials/tutorial.html">
303308
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
304309
<div class="page-info">
305310
<div class="context">
306311
<span>Previous</span>
307312
</div>
308313

309-
<div class="title">Home</div>
314+
<div class="title">Tutorial</div>
310315

311316
</div>
312317
</a>

objects.inv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# Project: Countoscope
33
# Version:
44
# The remainder of this file is compressed using zlib.
5-
xڵUMS� ��W0��D�G{��{�Pxmp���4�zIi�$��ms�c����vh���qǚ��[�(IY��Jy$a`��pJޅ���� �˞q�8�W~&��dv�����u�+Ph��=��o-T(�����N/c*=��'�[�t*$0��r+��j�&6��Vh�4*�� &Tu�;����� ����G-�Ş�cw��sm���\a=zՋ)�ʪq3Cc@R'PO��A:��4����2t��`.�r�~x�l��>��@W��XHǸ�E�qpM ��:P9ޜv���V���BB�h|�W'�iG�ɗ� P�Sl�F�w�嶠��#��k�$��vu�#/�09�8��At|�x�cY��F8���Gr��v.��O{��=i�D<cZzx�H�b4��S��u*�Ki��o��W�5�� k��{�_�-$��N�6
5+
xڵUMS� ��W0��Əc�z�㌽g(�-��8��^R�6��j���x�����%�Kȗ��T�!jV�s����nY��&_��Wqsv�f���p���-���{vw����9�'( t��@k��*��Apৗq��N$�`:���k%���/A��:����D^}����!S!]���B���Go��d{̎���!�І?(��דO=�>��7 t4'�v" ����D���2le��N�"�?��Bo�Ӈ��u1�.vӱ&���i.��6�kO`
6+
��9�XZ/�6���)х�[�H��v(5�_Ηr�e�b����y�>nVY �I�5_�f�;֭nq�f{�Dрz������`,�Y��<GgD�W;֚Y���k���O��l�mh��K�K�$��� �7�E��м�!y�0B��Ãq-�y���|UM�q�Վ�w���޷�e߽��$

py-modindex.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,12 @@
196196
<input type="hidden" name="area" value="default">
197197
</form>
198198
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
199-
<ul>
199+
<p class="caption" role="heading"><span class="caption-text">Tutorial</span></p>
200+
<ul>
201+
<li class="toctree-l1"><a class="reference internal" href="tutorials/tutorial.html">Tutorial</a></li>
202+
</ul>
203+
<p class="caption" role="heading"><span class="caption-text">Python modules</span></p>
204+
<ul>
200205
<li class="toctree-l1"><a class="reference internal" href="modules/trajectorytool.html">Trajectory Tool</a></li>
201206
<li class="toctree-l1"><a class="reference internal" href="modules/boxcountingtool.html">Box Counting Tool</a></li>
202207
<li class="toctree-l1"><a class="reference internal" href="modules/countoscope.html">Countoscope</a></li>

search.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,12 @@
198198
<input type="hidden" name="area" value="default">
199199
</form>
200200
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
201-
<ul>
201+
<p class="caption" role="heading"><span class="caption-text">Tutorial</span></p>
202+
<ul>
203+
<li class="toctree-l1"><a class="reference internal" href="tutorials/tutorial.html">Tutorial</a></li>
204+
</ul>
205+
<p class="caption" role="heading"><span class="caption-text">Python modules</span></p>
206+
<ul>
202207
<li class="toctree-l1"><a class="reference internal" href="modules/trajectorytool.html">Trajectory Tool</a></li>
203208
<li class="toctree-l1"><a class="reference internal" href="modules/boxcountingtool.html">Box Counting Tool</a></li>
204209
<li class="toctree-l1"><a class="reference internal" href="modules/countoscope.html">Countoscope</a></li>

0 commit comments

Comments
 (0)