Skip to content

Commit

Permalink
ending point for package documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenayoub committed Dec 7, 2023
1 parent 88e252d commit 49dd852
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/about.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
About this package
------------------
This package and documentation are a sample created for the Best Practices Workshop held by `The Molecular Sciences Software Institute <https://molssi.org>`_.
1 change: 1 addition & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ API Documentation
:toctree: autosummary

molecool.canvas
molecool.calculate_distance
6 changes: 6 additions & 0 deletions docs/autosummary/molecool.calculate_distance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
molecool.calculate\_distance
============================

.. currentmodule:: molecool

.. autofunction:: calculate_distance
26 changes: 25 additions & 1 deletion docs/getting_started.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
Getting Started
===============

This page details how to get started with molecool.
This page details how to get started with molecool. Molecool is a package which was developed for the MolSSI Best Practices workshop.

Installation
------------
To install molecool, you will need an environment with the following packages:

* Python 3.11
* NumPy
* Matplotlib

Once you have these packages installed, you can install molecool in the same environment using
::

pip install -e .

Usage
-------
Once installed, you can use the package. This example draws a benzene molecule from an xyz file.
::

import molecool

benzene_symbols, benzene_coords = molecool.open_xyz('benzene.xyz')
benzene_bonds = molecool.build_bond_list(benzene_coords)
molecool.draw_molecule(benzene_coords, benzene_symbols, draw_bonds=benzene_bonds)
8 changes: 5 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
Welcome to molecool's documentation!
=========================================================
molecool is a Python package designed to read in, perform analysis,
and visualize molecular coordinates. The file formats `xyz` and `pdb` are
currently supported.

.. toctree::
:maxdepth: 2
:caption: Contents:

getting_started
api


about

Indices and tables
==================
Expand Down
1 change: 1 addition & 0 deletions molecool/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A Python package for analyzing and visualizing xyz files."""

# Add imports here
from .functions import canvas
from .io import open_pdb, open_xyz, write_xyz
from .measure import calculate_angle, calculate_distance
from .molecule import build_bond_list
Expand Down

0 comments on commit 49dd852

Please sign in to comment.