Skip to content

Commit 73520d2

Browse files
committed
skpkg: update readme, license, delete instructions.txt, update module level comments
1 parent 3893045 commit 73520d2

File tree

13 files changed

+93
-51
lines changed

13 files changed

+93
-51
lines changed

INSTRUCTIONS.txt

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

LICENSE.rst

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1+
BSD 3-Clause License
2+
13
Copyright (c) 2009-2025, The Trustees of Columbia University in the City of New York.
24
All rights reserved.
35

4-
Use of this software is subject to and permitted only under a separate,
5-
written Use License granted by Columbia University. If you or your employer
6-
is not a party to such an agreement, then your use of this software is
7-
prohibited. If you don’t know whether or not your anticipated use is under
8-
a license, you must contact Prof. Simon Billinge at [email protected].
9-
Use of this software without a license is prohibited.
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its contributors
17+
may be used to endorse or promote products derived from this software
18+
without specific prior written permission.
1019

11-
For more information please email Prof. Simon Billinge at [email protected]
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.rst

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,30 @@
88
:target: https://diffpy.github.io/diffpy.srxplanargui
99
:height: 100px
1010

11-
|PythonVersion|
11+
|PyPI| |Forge| |PythonVersion| |PR|
1212

13-
|Black| |Tracking|
13+
|CI| |Codecov| |Black| |Tracking|
1414

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.srxplanargui/actions/workflows/matrix-and-codecov-on-merge-to-main.yml/badge.svg
19+
:target: https://github.com/diffpy/diffpy.srxplanargui/actions/workflows/matrix-and-codecov-on-merge-to-main.yml
20+
1821
.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.srxplanargui/branch/main/graph/badge.svg
1922
:target: https://codecov.io/gh/diffpy/diffpy.srxplanargui
2023

24+
.. |Forge| image:: https://img.shields.io/conda/vn/conda-forge/diffpy.srxplanargui
25+
:target: https://anaconda.org/conda-forge/diffpy.srxplanargui
26+
27+
.. |PR| image:: https://img.shields.io/badge/PR-Welcome-29ab47ff
28+
:target: https://github.com/diffpy/diffpy.srxplanargui/pulls
29+
2130
.. |PyPI| image:: https://img.shields.io/pypi/v/diffpy.srxplanargui
2231
:target: https://pypi.org/project/diffpy.srxplanargui/
2332

24-
.. |PythonVersion| image:: https://img.shields.io/badge/python-3.11%20|%203.12%20|%203.13-blue
33+
.. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/diffpy.srxplanargui
34+
:target: https://pypi.org/project/diffpy.srxplanargui/
2535

2636
.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue
2737
:target: https://github.com/diffpy/diffpy.srxplanargui/issues
@@ -42,7 +52,33 @@ If you use diffpy.srxplanargui in a scientific publication, we would like you to
4252
Installation
4353
------------
4454

45-
The preferred method is to be installed with `xpdfsuite` package or the wheel file.
55+
The preferred method is to use `Miniconda Python
56+
<https://docs.conda.io/projects/miniconda/en/latest/miniconda-install.html>`_
57+
and install from the "conda-forge" channel of Conda packages.
58+
59+
To add "conda-forge" to the conda channels, run the following in a terminal. ::
60+
61+
conda config --add channels conda-forge
62+
63+
We want to install our packages in a suitable conda environment.
64+
The following creates and activates a new environment named ``diffpy.srxplanargui_env`` ::
65+
66+
conda create -n diffpy.srxplanargui_env diffpy.srxplanargui
67+
conda activate diffpy.srxplanargui_env
68+
69+
The output should print the latest version displayed on the badges above.
70+
71+
If the above does not work, you can use ``pip`` to download and install the latest release from
72+
`Python Package Index <https://pypi.python.org>`_.
73+
To install using ``pip`` into your ``diffpy.srxplanargui_env`` environment, type ::
74+
75+
pip install diffpy.srxplanargui
76+
77+
If you prefer to install from sources, after installing the dependencies, obtain the source archive from
78+
`GitHub <https://github.com/diffpy/diffpy.srxplanargui/>`_. Once installed, ``cd`` into your ``diffpy.srxplanargui`` directory
79+
and run the following ::
80+
81+
pip install .
4682

4783
This package also provides command-line utilities. To check the software has been installed correctly, type ::
4884

@@ -57,12 +93,17 @@ To view the basic usage and available commands, type ::
5793

5894
diffpy.srxplanargui -h
5995

60-
Support
96+
Getting Started
97+
---------------
98+
99+
You may consult our `online documentation <https://diffpy.github.io/diffpy.srxplanargui>`_ for tutorials and API references.
100+
101+
Support and Contribute
61102
----------------------
62103

63104
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.srxplanargui/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.srxplanargui/pulls>`_.
64105

65-
Feel free to fork the project. To install diffpy.srxplanargui
106+
Feel free to fork the project and contribute. To install diffpy.srxplanargui
66107
in a development mode, with its sources being directly used by Python
67108
rather than copied to a package directory, use the following in the root
68109
directory ::
@@ -83,6 +124,8 @@ trying to commit again.
83124

84125
Improvements and fixes are always appreciated.
85126

127+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.srxplanargui/blob/main/CODE-OF-CONDUCT.rst>`_.
128+
86129
Contact
87130
-------
88131

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ exclude = [] # exclude packages matching these glob patterns (empty by default)
4949
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
5050

5151
[project.scripts]
52-
diffpy-srxplanargui = "diffpy.srxplanargui.srxguiapp:main"
52+
diffpy-srxplanargui = "diffpy.srxplanargui.srxplanargui_app:main"
5353

5454
[tool.setuptools.dynamic]
5555
dependencies = {file = ["requirements/pip.txt"]}

src/diffpy/srxplanargui/calibration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#
88
# File coded by: Xiaohao Yang
99
#
10-
# See AUTHORS.txt for a list of people who contributed.
11-
# See LICENSE.txt for license information.
10+
# See AUTHORS.rst for a list of people who contributed.
11+
# See LICENSE.rst for license information.
1212
#
1313
##############################################################################
1414

src/diffpy/srxplanargui/datacontainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#
88
# File coded by: Xiaohao Yang
99
#
10-
# See AUTHORS.txt for a list of people who contributed.
11-
# See LICENSE.txt for license information.
10+
# See AUTHORS.rst for a list of people who contributed.
11+
# See LICENSE.rst for license information.
1212
#
1313
##############################################################################
1414

src/diffpy/srxplanargui/help.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#
88
# File coded by: Xiaohao Yang
99
#
10-
# See AUTHORS.txt for a list of people who contributed.
11-
# See LICENSE.txt for license information.
10+
# See AUTHORS.rst for a list of people who contributed.
11+
# See LICENSE.rst for license information.
1212
#
1313
##############################################################################
1414
"""Provide help for SrXgui."""

src/diffpy/srxplanargui/imageplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#
88
# File coded by: Xiaohao Yang
99
#
10-
# See AUTHORS.txt for a list of people who contributed.
11-
# See LICENSE.txt for license information.
10+
# See AUTHORS.rst for a list of people who contributed.
11+
# See LICENSE.rst for license information.
1212
#
1313
##############################################################################
1414
"""Plot the 2d image."""

src/diffpy/srxplanargui/live.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#
88
# File coded by: Xiaohao Yang
99
#
10-
# See AUTHORS.txt for a list of people who contributed.
11-
# See LICENSE.txt for license information.
10+
# See AUTHORS.rst for a list of people who contributed.
11+
# See LICENSE.rst for license information.
1212
#
1313
##############################################################################
1414
"""Provide UI for srxplanar."""

src/diffpy/srxplanargui/selectfiles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#
88
# File coded by: Xiaohao Yang
99
#
10-
# See AUTHORS.txt for a list of people who contributed.
11-
# See LICENSE.txt for license information.
10+
# See AUTHORS.rst for a list of people who contributed.
11+
# See LICENSE.rst for license information.
1212
#
1313
##############################################################################
1414

0 commit comments

Comments
 (0)