-
Notifications
You must be signed in to change notification settings - Fork 2
Polish documentation #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3fb7627
4bb1806
7d6d8d7
3197ed1
fb2e8ad
680d240
28aeaf9
75b0378
97e1349
4b17744
e5250ea
0e932a9
df2434f
69ad6e7
0502450
3c4df67
e339421
e77577d
c281b46
b073323
6ba53b5
0e1c759
fca1059
89cc9ba
80e5469
9e3b4fd
bd53a4e
973b088
2d50991
792f736
3d7797b
2e93508
0efea72
58adee8
2ab9a54
3f2f2c2
51089bb
14ac4b5
f78dfbd
6e522d0
051441b
3c785f1
9f18304
b3d1640
945be1d
7cffe33
3ac1681
22a73bb
ea36934
2fd3dd6
0c7c1b2
8c0b215
818070f
15ef37c
aa590cd
55cfa5d
a4a2f9c
5deb223
7087c51
39be512
4ac1e72
6fe4118
1127dc4
8b9f02b
b0eb7ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ __pycache__ | |
build | ||
*egg-info | ||
env | ||
doc/source/generated |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: quarterly | ||
|
||
repos: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2021-2024, Auburn University | ||
Copyright (c) 2021-2025, Auburn University | ||
|
||
All rights reserved. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import numpy | ||
|
||
try: | ||
import sybil | ||
import sybil.parsers.rest | ||
|
||
except ImportError: | ||
sybil = None | ||
|
||
import lammpsio | ||
|
||
try: | ||
import gsd.hoomd | ||
|
||
has_gsd = True | ||
except ModuleNotFoundError: | ||
has_gsd = False | ||
|
||
|
||
def setup_sybil_tests(namespace): | ||
"""Sybil setup function.""" | ||
# Common imports. | ||
namespace["numpy"] = numpy | ||
namespace["lammpsio"] = lammpsio | ||
if has_gsd: | ||
namespace["frame"] = gsd.hoomd.Frame() | ||
else: | ||
namespace["frame"] = 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why I would think you would want to optionally bind |
||
|
||
|
||
if sybil is not None: | ||
pytest_collect_file = sybil.Sybil( | ||
parsers=[ | ||
sybil.parsers.rest.PythonCodeBlockParser(), | ||
sybil.parsers.rest.SkipParser(), | ||
], | ||
pattern="*.py", | ||
setup=setup_sybil_tests, | ||
fixtures=["tmp_path"], | ||
).pytest() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
furo | ||
ipython==8.10.0 | ||
ipython==9.3.0 | ||
MyST-Parser | ||
nbsphinx==0.8.12 | ||
sphinx==6.1.3 | ||
sphinx_design==0.4.1 | ||
nbsphinx==0.9.7 | ||
sphinx==8.1.3 | ||
sphinx_design==0.6.1 | ||
sphinx_favicon==1.0.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{ fullname | escape | underline}} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. autoclass:: {{ objname }} | ||
|
||
{% block methods %} | ||
{% if methods %} | ||
.. rubric:: {{ _('Methods:') }} | ||
|
||
.. autosummary:: | ||
{% for item in methods %} | ||
{%- if not item in ['__init__'] %} | ||
~{{ name }}.{{ item }} | ||
{%- endif -%} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block attributes %} | ||
{% if attributes %} | ||
.. rubric:: {{ _('Attributes:') }} | ||
|
||
.. autosummary:: | ||
{% for item in attributes %} | ||
~{{ name }}.{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
API | ||
--- | ||
|
||
Particle data | ||
============= | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add short summary paragraphs for the sections of the API. I did this for the topology section. |
||
.. autosummary:: | ||
:nosignatures: | ||
:toctree: generated/ | ||
|
||
lammpsio.Box | ||
lammpsio.Snapshot | ||
lammpsio.LabelMap | ||
|
||
Topology | ||
======== | ||
|
||
The topology (bond information) can be stored in `Bonds`, `Angles`, `Dihedrals`, | ||
and `Impropers` objects. All these objects function similarly, differing only in | ||
the number of particles that are included in a connection (2 for a bond, 3 for | ||
an angle, 4 for a dihedral or improper). | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
:toctree: generated/ | ||
|
||
lammpsio.Angles | ||
lammpsio.Bonds | ||
lammpsio.Dihedrals | ||
lammpsio.Impropers | ||
|
||
File formats | ||
============ | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
:toctree: generated/ | ||
|
||
lammpsio.DataFile | ||
lammpsio.DumpFile |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = "lammmpsio" | ||
project = "lammpsio" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You will need to add and configure the logo somewhere in here. |
||
year = datetime.date.today().year | ||
copyright = f"2021-{year}, Auburn University" | ||
author = "Michael P. Howard" | ||
|
@@ -65,6 +65,8 @@ | |
|
||
autosummary_generate = True | ||
|
||
autodoc_member_order = "bysource" | ||
|
||
autodoc_default_options = {"inherited-members": None, "special-members": False} | ||
|
||
# -- Options for intersphinx ------------------------------------------------- | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ Credits | |
* Michael P. Howard | ||
* Mayukh Kundu | ||
* Philipp Leclercq | ||
* C. Levi Petix | ||
* C\. Levi Petix |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these default values need to be documented in the
Snapshot
. See what I did toTopology
for an example.