-
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.
- Loading branch information
Showing
10 changed files
with
177 additions
and
1 deletion.
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,4 @@ | ||
Examples | ||
======== | ||
|
||
Below is a gallery of examples. |
Binary file not shown.
Binary file not shown.
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,40 @@ | ||
:orphan: | ||
|
||
|
||
|
||
.. _sphx_glr_auto_gallery: | ||
|
||
Examples | ||
======== | ||
|
||
Below is a gallery of examples. | ||
|
||
|
||
.. raw:: html | ||
|
||
<div class="sphx-glr-clear"></div> | ||
|
||
|
||
|
||
.. only :: html | ||
.. container:: sphx-glr-footer | ||
:class: sphx-glr-footer-gallery | ||
.. container:: sphx-glr-download sphx-glr-download-python | ||
:download:`Download all examples in Python source code: auto_gallery_python.zip </auto_gallery/auto_gallery_python.zip>` | ||
.. container:: sphx-glr-download sphx-glr-download-jupyter | ||
:download:`Download all examples in Jupyter notebooks: auto_gallery_jupyter.zip </auto_gallery/auto_gallery_jupyter.zip>` | ||
.. only:: html | ||
|
||
.. rst-class:: sphx-glr-signature | ||
|
||
`Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PDFstream Documentation | ||
======================= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
installation | ||
auto_gallery/index | ||
min_versions |
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,81 @@ | ||
============ | ||
Installation | ||
============ | ||
|
||
Prerequisites | ||
------------- | ||
|
||
Install `Anaconda <https://docs.conda.io/projects/conda/en/latest/user-guide/install/>`_. | ||
|
||
After conda is installed, at the commnad line:: | ||
|
||
conda config --append channels nsls2forge | ||
conda config --append channels conda-forge | ||
|
||
(Optional) Get the .whl file of `PDFgetX <https://www.diffpy.org/products/pdfgetx.html>`_. This package is used | ||
to transform the XRD data to PDF data. | ||
|
||
General Installation | ||
-------------------- | ||
|
||
Users can install the `pdfstream` using conda. It is suggested to create a new environment for it. | ||
|
||
At the command line:: | ||
|
||
conda create -n pdfstream_env -c st3107 pdfstream | ||
|
||
The ``pdfstream_env`` in the command is the name of the environment. It can be changed to any name. | ||
|
||
Activate the environment:: | ||
|
||
conda activate pdfstream_env | ||
|
||
(Optional) Install the `diffpy.pdfgetx` using .whl file:: | ||
|
||
python -m pip install <path to .whl file> | ||
|
||
Change the ``<path to .whl file>`` to the path of the .whl file on your computer. | ||
|
||
Before using the `pdfstream`, remember to activate the environment:: | ||
|
||
conda activate pdfstream_env | ||
|
||
Development Installation | ||
------------------------ | ||
|
||
**Fork** and clone the github repo and change the current directory:: | ||
|
||
git clone https://github.com/<your account>/pdfstream | ||
|
||
Remember to change ``<your account>`` to the name of your github account. | ||
|
||
Change directory:: | ||
|
||
cd pdfstream | ||
|
||
Create an environment with all the requirements:: | ||
|
||
conda create -n pdfstream_env --file requirements/build.txt --file requirements/run.txt --file requirements/test.txt | ||
|
||
(Optional) For the maintainer, install the packages for building documents and releasing the software:: | ||
|
||
conda install -n pdfstream_env --file requirements/docs.txt --file requirements/release.txt | ||
|
||
Activate the environment:: | ||
|
||
conda activate pdfstream_env | ||
|
||
Install the `diffpy.pdfgetx` using .whl file:: | ||
|
||
python -m pip install <path to .whl file> | ||
|
||
Install the `twine` for pypi release:: | ||
|
||
python -m pip install twine | ||
|
||
Change the ``<path to .whl file>`` to the path of the .whl file on your computer. | ||
|
||
Install the `pdfstream` in development mode:: | ||
|
||
python -m pip install -e . | ||
|
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,28 @@ | ||
=================================== | ||
Minimum Version of Python and NumPy | ||
=================================== | ||
|
||
|
||
- This project supports at least the minor versions of Python | ||
initially released 12 months prior to a planned project release | ||
date. | ||
- The project will always support at least the 2 latest minor | ||
versions of Python. | ||
- The project will support minor versions of ``numpy`` initially | ||
released in the 24 months prior to a planned project release date or | ||
the oldest version that supports the minimum Python version | ||
(whichever is higher). | ||
- The project will always support at least the 3 latest minor | ||
versions of NumPy. | ||
|
||
The minimum supported version of Python will be set to | ||
``python_requires`` in ``setup``. All supported minor versions of | ||
Python will be in the test matrix and have binary artifacts built | ||
for releases. | ||
|
||
The project should adjust upward the minimum Python and NumPy | ||
version support on every minor and major release, but never on a | ||
patch release. | ||
|
||
This is consistent with NumPy `NEP 29 | ||
<https://numpy.org/neps/nep-0029-deprecation_policy.html>`__. |
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