-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ending point for package documentation
- Loading branch information
1 parent
88e252d
commit 49dd852
Showing
6 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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,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>`_. |
This file contains 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,3 +5,4 @@ API Documentation | |
:toctree: autosummary | ||
|
||
molecool.canvas | ||
molecool.calculate_distance |
This file contains 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,6 @@ | ||
molecool.calculate\_distance | ||
============================ | ||
|
||
.. currentmodule:: molecool | ||
|
||
.. autofunction:: calculate_distance |
This file contains 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,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) |
This file contains 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 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