Skip to content

Commit 78a9c07

Browse files
committed
Add readme.rst
1 parent 0759ca1 commit 78a9c07

File tree

2 files changed

+16
-46
lines changed

2 files changed

+16
-46
lines changed

LICENSE.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.rst

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
1616
:target: https://github.com/psf/black
1717

18-
.. |CI| image:: https://github.com/diffpy/diffpy.nmf_mapping/actions/workflows/main.yml/badge.svg
19-
:target: https://github.com/diffpy/diffpy.nmf_mapping/actions/workflows/main.yml
18+
.. |CI| image:: https://github.com/diffpy/diffpy.nmf_mapping/actions/workflows/matrix-and-codecov-on-merge-to-main.yml/badge.svg
19+
:target: https://github.com/diffpy/diffpy.nmf_mapping/actions/workflows/matrix-and-codecov-on-merge-to-main.yml
2020

2121
.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.nmf_mapping/branch/main/graph/badge.svg
2222
:target: https://codecov.io/gh/diffpy/diffpy.nmf_mapping
@@ -35,7 +35,7 @@
3535
.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue
3636
:target: https://github.com/diffpy/diffpy.nmf_mapping/issues
3737

38-
Run NMF analysis on PDF and XRD data
38+
Python package for running NMF analysis on PDF and XRD data.
3939

4040
* LONGER DESCRIPTION HERE
4141

@@ -74,20 +74,18 @@ To add "conda-forge" to the conda channels, run the following in a terminal. ::
7474
We want to install our packages in a suitable conda environment.
7575
The following creates and activates a new environment named ``diffpy.nmf_mapping_env`` ::
7676

77-
conda create -n diffpy.nmf_mapping_env python=3
77+
conda create -n diffpy.nmf_mapping_env diffpy.nmf_mapping
7878
conda activate diffpy.nmf_mapping_env
7979

80-
Then, to fully install ``diffpy.nmf_mapping`` in our active environment, run ::
80+
To confirm that the installation was successful, type ::
8181

82-
conda install diffpy.nmf_mapping
82+
python -c "import diffpy.nmf_mapping; print(diffpy.nmf_mapping.__version__)"
8383

84-
Another option is to use ``pip`` to download and install the latest release from
85-
`Python Package Index <https://pypi.python.org>`_.
86-
To install using ``pip`` into your ``diffpy.nmf_mapping_env`` environment, we will also have to install dependencies ::
87-
88-
pip install -r https://raw.githubusercontent.com/diffpy/diffpy.nmf_mapping/main/requirements/run.txt
84+
The output should print the latest version displayed on the badges above.
8985

90-
and then install the package ::
86+
If the above does not work, you can use ``pip`` to download and install the latest release from
87+
`Python Package Index <https://pypi.python.org>`_.
88+
To install using ``pip`` into your ``diffpy.nmf_mapping_env`` environment, type ::
9189

9290
pip install diffpy.nmf_mapping
9391

@@ -97,6 +95,11 @@ and run the following ::
9795

9896
pip install .
9997

98+
Getting Started
99+
---------------
100+
101+
You may consult our `online documentation <https://diffpy.github.io/diffpy.nmf_mapping>`_ for tutorials and API references.
102+
100103
Support and Contribute
101104
----------------------
102105

@@ -125,7 +128,7 @@ trying to commit again.
125128

126129
Improvements and fixes are always appreciated.
127130

128-
Before contribuing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.nmf_mapping/blob/main/CODE_OF_CONDUCT.rst>`_.
131+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.nmf_mapping/blob/main/CODE_OF_CONDUCT.rst>`_.
129132

130133
Contact
131134
-------

0 commit comments

Comments
 (0)