|
1 | | -diffpy.srxplanar |
2 | | -======================================================================== |
| 1 | +|Icon| |title|_ |
| 2 | +=============== |
| 3 | + |
| 4 | +.. |title| replace:: diffpy.srxplanar |
| 5 | +.. _title: https://diffpy.github.io/diffpy.srxplanar |
| 6 | + |
| 7 | +.. |Icon| image:: https://avatars.githubusercontent.com/diffpy |
| 8 | + :target: https://diffpy.github.io/diffpy.srxplanar |
| 9 | + :height: 100px |
| 10 | + |
| 11 | +|PyPI| |Forge| |PythonVersion| |PR| |
| 12 | + |
| 13 | +|CI| |Codecov| |Black| |Tracking| |
| 14 | + |
| 15 | +.. |Black| image:: https://img.shields.io/badge/code_style-black-black |
| 16 | + :target: https://github.com/psf/black |
| 17 | + |
| 18 | +.. |CI| image:: https://github.com/diffpy/diffpy.cmi/actions/workflows/matrix-and-codecov-on-merge-to-main.yml/badge.svg |
| 19 | + :target: https://github.com/diffpy/diffpy.cmi/actions/workflows/matrix-and-codecov-on-merge-to-main.yml |
| 20 | + |
| 21 | +.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.srxplanar/branch/main/graph/badge.svg |
| 22 | + :target: https://codecov.io/gh/diffpy/diffpy.srxplanar |
| 23 | + |
| 24 | +.. |Forge| image:: https://img.shields.io/conda/vn/conda-forge/diffpy.cmi |
| 25 | + :target: https://anaconda.org/conda-forge/diffpy.srxplanar |
| 26 | + |
| 27 | +.. |PR| image:: https://img.shields.io/badge/PR-Welcome-29ab47ff |
| 28 | + :target: https://github.com/diffpy/diffpy.srxplanar/pulls |
| 29 | + |
| 30 | +.. |PyPI| image:: https://img.shields.io/pypi/v/diffpy.srxplanar |
| 31 | + :target: https://pypi.org/project/diffpy.srxplanar/ |
| 32 | + |
| 33 | +.. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/diffpy.srxplanar |
| 34 | + :target: https://pypi.org/project/diffpy.srxplanar/ |
| 35 | + |
| 36 | +.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue |
| 37 | + :target: https://github.com/diffpy/diffpy.srxplanar/issues |
| 38 | + |
| 39 | +This is part of xPDFsuite package. |
3 | 40 |
|
4 | 41 | diffpy.srxplanar package provides 2D diffraction image integration using |
5 | 42 | non splitting pixel algorithm. And it can estimate and propagate statistic |
6 | | -uncertainty of raw counts and integrated intensity. If you are using this |
7 | | -software. If you use this program to do productive scientific research that |
| 43 | +uncertainty of raw counts and integrated intensity. |
| 44 | + |
| 45 | +To learn more about diffpy.srxplanar library, see the examples directory |
| 46 | +included in this distribution or the API documentation at |
| 47 | + |
| 48 | +http://diffpy.github.io/diffpy.srxplanar/ |
| 49 | + |
| 50 | +For more information about the diffpy.srxplanar library, please consult our `online documentation <https://diffpy.github.io/diffpy.srxplanar>`_. |
| 51 | + |
| 52 | +Citation |
| 53 | +-------- |
| 54 | + |
| 55 | +If you use this program to do productive scientific research that |
8 | 56 | leads to publication, we kindly ask that you acknowledge use of the program |
9 | 57 | by citing the following paper in your publication: |
10 | 58 |
|
11 | 59 | Xiaohao Yang, Pavol Juhas, Simon J. L. Billinge, On the estimation of |
12 | 60 | statistical uncertainties on powder diffraction and small angle |
13 | 61 | scattering data from 2-D x-ray detectors, arXiv:1309.3614 |
14 | 62 |
|
15 | | -To learn more about diffpy.srxplanar library, see the examples directory |
16 | | -included in this distribution or the API documentation at |
17 | | - |
18 | | -http://diffpy.github.io/diffpy.srxplanar/ |
| 63 | +Installation |
| 64 | +------------ |
19 | 65 |
|
20 | | -REQUIREMENTS |
21 | | ------------------------------------------------------------------------- |
| 66 | +The preferred method is to be installed with `xpdfsuite` package or the wheel file. |
22 | 67 |
|
23 | | -The diffpy.srxplanar requires Python 2.6 or 2.7 and the following software: |
| 68 | +To install the package with the wheel file, you can first download the wheel file, then type |
24 | 69 |
|
25 | | -* `setuptools` >=0.61(https://pypi.python.org/pypi/setuptools) |
26 | | -* `numpy` >=1.60(http://www.numpy.org/) |
27 | | -* `scipy` >=1.10(www.scipy.org/) |
28 | | -* `FabIO` >=0.80(http://sourceforge.net/projects/fable/files/fabio/) |
| 70 | +`pip install /path/to/diffpy.srxplanar-X.Y.Z-py3-none-any.whl`. |
29 | 71 |
|
30 | | -If your python version < 2.7 (these two packages are included in 2.7 but not in 2.6) |
31 | 72 |
|
32 | | -* `ordereddict` https://pypi.python.org/pypi/ordereddict |
33 | | -* `argparse` https://pypi.python.org/pypi/argparse |
| 73 | +This package also provides command-line utilities. To check the software has been installed correctly, type :: |
34 | 74 |
|
35 | | -On Ubuntu Linux the part of required software can be easily installed using |
36 | | -the system package manager:: |
| 75 | + diffpy.srxplanar --version |
37 | 76 |
|
38 | | - sudo aptitude install \ |
39 | | - python-setuptools python-numpy python-scipy |
| 77 | +You can also type the following command to verify the installation. :: |
40 | 78 |
|
41 | | -For Mac OS X machine with the MacPorts package manager one could do:: |
| 79 | + python -c "import diffpy.srxplanar; print(diffpy.srxplanar.__version__)" |
42 | 80 |
|
43 | | - sudo port install \ |
44 | | - python27 py27-setuptools py27-numpy py27-scipy |
45 | 81 |
|
46 | | -When installing with MacPorts, make sure the MacPorts bin directory is the |
47 | | -first in the system PATH and that python27 is selected as the default |
48 | | -Python version in MacPorts:: |
| 82 | +To view the basic usage and available commands, type :: |
49 | 83 |
|
50 | | - sudo port select --set python python27 |
| 84 | + diffpy.srxplanar -h |
51 | 85 |
|
52 | | -For other Linux distributions use their respective package manager; note |
53 | | -the packages may have slightly different names. diffpy.srxplanar should work |
54 | | -on other Unix-like operating systems as well. Please, search the |
55 | | -web for instructions how to install external dependencies on your particular |
56 | | -system. |
| 86 | +Getting Started |
| 87 | +--------------- |
57 | 88 |
|
58 | | -For other packages, please go to the webpage list above to download and install. |
| 89 | +You may consult our `online documentation <https://diffpy.github.io/diffpy.srxplanar>`_ for tutorials and API references. |
59 | 90 |
|
| 91 | +Support and Contribute |
| 92 | +---------------------- |
60 | 93 |
|
61 | | -INSTALLATION |
62 | | ------------------------------------------------------------------------- |
| 94 | +If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.srxplanar/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.srxplanar/pulls>`_. |
63 | 95 |
|
64 | | -To install the diffpy.srxplanar package:: |
| 96 | +Feel free to fork the project. To install diffpy.srxplanar |
| 97 | +in a development mode, with its sources being directly used by Python |
| 98 | +rather than copied to a package directory, use the following in the root |
| 99 | +directory :: |
65 | 100 |
|
66 | | - python setup.py install |
| 101 | + pip install -e . |
67 | 102 |
|
68 | | -By default the files are installed in the system directories, which are |
69 | | -usually only writeable by the root. See the usage info |
70 | | -"./setup.py install --help" for options to install as a normal user under |
71 | | -different location. Note that installation to non-standard directories may |
72 | | -require adjustments to the PATH and PYTHONPATH environment variables. |
| 103 | +To ensure code quality and to prevent accidental commits into the default branch, please set up the use of our pre-commit |
| 104 | +hooks. |
73 | 105 |
|
74 | | -DEVELOPMENT |
75 | | ------------------------------------------------------------------------- |
| 106 | +1. Install pre-commit in your working environment by running ``conda install pre-commit``. |
76 | 107 |
|
77 | | -diffpy.srxplanar is an open-source software developed at the Columbia University |
78 | | -The diffpy.srxplanar sources are hosted at |
| 108 | +2. Initialize pre-commit (one time only) ``pre-commit install``. |
79 | 109 |
|
80 | | -https://github.com/diffpy/diffpy.srxplanar |
| 110 | +Thereafter your code will be linted by black and isort and checked against flake8 before you can commit. |
| 111 | +If it fails by black or isort, just rerun and it should pass (black and isort will modify the files so should |
| 112 | +pass after they are modified). If the flake8 test fails please see the error messages and fix them manually before |
| 113 | +trying to commit again. |
81 | 114 |
|
82 | | -Feel free to fork the project and contribute. To install diffpy.srxplanar |
83 | | -in a development mode, where the sources are directly used by Python |
84 | | -rather than copied to a system directory, use:: |
| 115 | +Improvements and fixes are always appreciated. |
85 | 116 |
|
86 | | - python setup.py develop --user |
| 117 | +Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.srxplanar/blob/main/CODE-OF-CONDUCT.rst>`_. |
87 | 118 |
|
88 | | -CONTACTS |
89 | | ------------------------------------------------------------------------- |
| 119 | +Contact |
| 120 | +------- |
90 | 121 |
|
91 | | -For more information on diffpy.srxplanar please visit the project web-page: |
| 122 | +For more information on diffpy.srxplanar please visit the project `web-page <https://diffpy.github.io/>`_ or email Simon Billinge at sb2896@columbia.edu. |
92 | 123 |
|
93 | | -http://www.diffpy.org/ |
| 124 | +Acknowledgements |
| 125 | +---------------- |
94 | 126 |
|
95 | | -or email Prof. Simon Billinge at sb2896@columbia.edu |
| 127 | +``diffpy.srxplanar`` is built and maintained with `scikit-package <https://scikit-package.github.io/scikit-package/>`_. |
0 commit comments