-
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
Open
clpetix
wants to merge
27
commits into
main
Choose a base branch
from
fix/documentation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
3fb7627
Fix project name typo.
clpetix 4bb1806
Add community guidelines section with contribution instructions
clpetix 7d6d8d7
Add statement of need to landing page.
clpetix 3197ed1
Update copyright year to 2025.
clpetix fb2e8ad
Add overview sections to API docs.
clpetix 680d240
Add examples to Box class.
clpetix 28aeaf9
Make doc strings consistent formatting for booleans.
clpetix 75b0378
Remove redundant :class: statements in docs.
clpetix 97e1349
Make API documentation 1 landing page.
clpetix 4b17744
Add installation instructions for conda.
clpetix e5250ea
Submodule topology rather than individual topology types.
clpetix 0e932a9
Fix formatting of class references in docstrings
clpetix df2434f
Add sybil testing to documentation.
clpetix 69ad6e7
Ensure doc test runs when sybil is installed
mayukh33 0502450
Add sybil to requirements.txt
mayukh33 3c4df67
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e339421
Minor fix
mayukh33 e77577d
Add example to the data module
mayukh33 c281b46
Add example to the dump module
mayukh33 b073323
Move confest.py to root dir.
mayukh33 6ba53b5
Add documentation for snapshot
mayukh33 0e1c759
Minor fix to box documentation
mayukh33 fca1059
Modify data documentation
mayukh33 89cc9ba
Modify the dump file documentation
mayukh33 80e5469
Ensure doc test runs if gsd.hoomd is not installed
mayukh33 9e3b4fd
Modify snapshot doc to ensure doc test runs
mayukh33 bd53a4e
Modify documentation confest to run doc test
mayukh33 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
lammpsio.Box | ||
============ | ||
|
||
.. currentmodule:: lammpsio | ||
|
||
.. autoclass:: Box | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~Box.__init__ | ||
~Box.cast | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~Box.high | ||
~Box.low | ||
~Box.tilt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
lammpsio.DataFile | ||
================= | ||
|
||
.. currentmodule:: lammpsio | ||
|
||
.. autoclass:: DataFile | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~DataFile.__init__ | ||
~DataFile.create | ||
~DataFile.read | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~DataFile.known_bodies | ||
~DataFile.known_headers | ||
~DataFile.unknown_bodies | ||
~DataFile.unknown_headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
lammpsio.DumpFile | ||
================= | ||
|
||
.. currentmodule:: lammpsio | ||
|
||
.. autoclass:: DumpFile | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~DumpFile.__init__ | ||
~DumpFile.create | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~DumpFile.copy_from | ||
~DumpFile.filename | ||
~DumpFile.schema |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
lammpsio.Snapshot | ||
================= | ||
|
||
.. currentmodule:: lammpsio | ||
|
||
.. autoclass:: Snapshot | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~Snapshot.__init__ | ||
~Snapshot.from_hoomd_gsd | ||
~Snapshot.has_angles | ||
~Snapshot.has_bonds | ||
~Snapshot.has_charge | ||
~Snapshot.has_dihedrals | ||
~Snapshot.has_id | ||
~Snapshot.has_image | ||
~Snapshot.has_impropers | ||
~Snapshot.has_mass | ||
~Snapshot.has_molecule | ||
~Snapshot.has_position | ||
~Snapshot.has_typeid | ||
~Snapshot.has_velocity | ||
~Snapshot.reorder | ||
~Snapshot.to_hoomd_gsd | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~Snapshot.N | ||
~Snapshot.angles | ||
~Snapshot.bonds | ||
~Snapshot.box | ||
~Snapshot.charge | ||
~Snapshot.dihedrals | ||
~Snapshot.id | ||
~Snapshot.image | ||
~Snapshot.impropers | ||
~Snapshot.mass | ||
~Snapshot.molecule | ||
~Snapshot.num_types | ||
~Snapshot.position | ||
~Snapshot.type_label | ||
~Snapshot.typeid | ||
~Snapshot.velocity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
lammpsio.topology | ||
================= | ||
|
||
.. automodule:: lammpsio.topology | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
Angles | ||
Bonds | ||
Dihedrals | ||
Impropers | ||
LabelMap | ||
Topology |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
API | ||
--- | ||
|
||
Overview | ||
======== | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
:toctree: api reference | ||
|
||
lammpsio.Box | ||
lammpsio.DataFile | ||
lammpsio.DumpFile | ||
lammpsio.Snapshot | ||
lammpsio.topology |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
==================== | ||
Community Guidelines | ||
==================== | ||
|
||
We ask that you please review and adhere to our `Code of Conduct`_. | ||
|
||
|
||
Reporting Issues | ||
================ | ||
If you encounter any bugs or issues while using ``lammpsio``, please report them | ||
on our `GitHub Issues page`_. | ||
|
||
Contributing | ||
============= | ||
We welcome contributions to ``lammpsio`` via GitHub pull requests. We ask that | ||
you please open an issue first to discuss your proposed changes before | ||
submitting a pull request. This helps us to understand the context of your | ||
changes and to ensure that they mesh well with the existing codebase. | ||
|
||
Seeking Help | ||
============ | ||
If you have questions or need help using ``lammpsio``, please feel free to reach | ||
out to us via our `GitHub Discussions page`_. | ||
|
||
.. _Code of Conduct: http://github.com/mphowardlab/lammpsio/blob/main/CODE_OF_CONDUCT.md | ||
.. _GitHub Issues page: http://github.com/mphowardlab/lammpsio/issues | ||
.. _GitHub Discussions page: http://github.com/mphowardlab/lammpsio/discussions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
lammpsio documentation | ||
====================== | ||
|
||
Tools for working with LAMMPS data and dump files. | ||
lammpsio provides a Python interface for reading and writing LAMMPS | ||
data and dump files. It also enables interconversion with HOOMD-blue's | ||
GSD format. This flexible package enables users to work with LAMMPS files | ||
in a variety of ways that improve workflow efficiency and reproducibility. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: User guide | ||
|
||
guide/install | ||
guide/examples/index | ||
guide/release | ||
guide/guidelines | ||
guide/license | ||
guide/credits | ||
clpetix marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: API reference | ||
|
||
api/box | ||
api/data | ||
api/dump | ||
api/snapshot | ||
api/topology | ||
api/api.rst |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.