You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The preferred method is to use Anaconda Python and install from the
87
-
"diffpy" channel of Anaconda packages ::
98
+
and then install the package ::
88
99
89
-
conda config --add channels diffpy
90
-
conda install diffpy.srfit
100
+
pip install diffpy.srfit
91
101
92
-
diffpy.srfit is also included in the "diffpy-cmi" collection
93
-
of packages for structure analysis ::
102
+
If you prefer to install from sources, after installing the dependencies, obtain the source archive from
103
+
`GitHub <https://github.com/diffpy/diffpy.srfit/>`_. Once installed, ``cd`` into your ``diffpy.srfit`` directory
104
+
and run the following ::
94
105
95
-
conda install diffpy-cmi
106
+
pip install .
96
107
97
-
Another option is to use ``easy_install`` to download and install the
98
-
latest release from `Python Package Index <https://pypi.python.org>`_ ::
108
+
Support and Contribute
109
+
----------------------
99
110
100
-
easy_install diffpy.srfit
111
+
`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of diffpy.srfit. Please join the diffpy.srfit users community by joining the Google group. The diffpy.srfit project welcomes your expertise and enthusiasm!
101
112
102
-
If you prefer to install from sources, make sure all required software
103
-
packages are in place and then run ::
113
+
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.srfit/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.srfit/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
104
114
105
-
python setup.py install
115
+
Feel free to fork the project and contribute. To install diffpy.srfit
116
+
in a development mode, with its sources being directly used by Python
117
+
rather than copied to a package directory, use the following in the root
118
+
directory ::
106
119
107
-
You may need to use ``sudo`` with system Python so the process is
108
-
allowed to put files to the system directories. If administrator (root)
109
-
access is not available, consult the output from
110
-
``python setup.py install --help`` for options to install to a
111
-
user-writable locations. The installation integrity can be verified by
112
-
changing to the HOME directory and running ::
120
+
pip install -e .
113
121
114
-
python -m diffpy.srfit.tests.run
122
+
To ensure code quality and to prevent accidental commits into the default branch, please set up the use of our pre-commit
123
+
hooks.
115
124
125
+
1. Install pre-commit in your working environment by running ``conda install pre-commit``.
For more information on diffpy.srfit please visit the project `web-page <https://diffpy.github.io/>`_ or email Prof. Simon Billinge at [email protected].
0 commit comments