Skip to content

Commit 0f27ad1

Browse files
authored
Merge pull request #51 from dragonyanglong/update_pdfgui2
update pdfgui webpage into py3 version.
2 parents bee6cb8 + b11c6a7 commit 0f27ad1

File tree

5 files changed

+133
-82
lines changed

5 files changed

+133
-82
lines changed

products/PDFgui_LICENSE.txt

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,47 @@
1-
This software was initially developed at Michigan State University and
2-
Columbia University as part of the National Science Foundation funded
3-
DANSE (Distributed data Analysis of Neutron Scattering Experiments)
4-
project. Continued development is taking place at Brookhaven National
5-
Laboratory under the complex modeling initiative. The software is
6-
available subject to the conditions and terms laid out below.
1+
Copyright Policy
72

3+
This software was originally developed by the Billinge group as part
4+
of the Distributed Data Analysis of Neutron Scattering Experiments
5+
(DANSE) project funded by the US National Science Foundation under
6+
grant DMR-0520547. Developments of PDFfit2 were funded by NSF grant
7+
DMR-0304391 in the Billinge group, and with support from Michigan State
8+
University and Columbia University. Any opinions, findings, and conclusions
9+
or recommendations expressed in this material are those of the author(s)
10+
and do not necessarily reflect the views of the respective funding bodies.
11+
Subsequent development was done in the Billinge group at Columbia University
12+
and then in collaboration between the Billinge group at Columbia and Pavol
13+
Juhas at Brookhaven National Laboratory. Moving forward, PDFgui will be
14+
maintained as a community project with contributions welcomed from many people.
15+
16+
Up to the release 1.1.2 (February 2017) the copyright was held by
17+
the institutions that hosted the work as follows:
818
Copyright 2006-2007, Board of Trustees of Michigan State University,
919
Copyright 2008-2012, Board of Trustees of Columbia University in the
1020
city of New York.
1121
Copyright 2013, Brookhaven National Laboratory (Copyright holder
1222
indicated in each source file).
1323

24+
As of February 2017, and the 1.1.2 release, PDFgui has moved to a shared copyright model.
25+
26+
PDFgui uses a shared copyright model. Each contributor maintains copyright over their
27+
contributions to PDFgui. But, it is important to note that these contributions are
28+
typically only changes to the repositories. Thus, the PDFgui source code, in its entirety,
29+
is not the copyright of any single person or institution. Instead, it is the collective
30+
copyright of the entire PDFgui Development Team. If individual contributors want to
31+
maintain a record of what changes/contributions they have specific copyright on, they
32+
should indicate their copyright in the commit message of the change, when they commit
33+
the change to one of the PDFgui repositories.
34+
35+
The PDFgui Development Team is the set of all contributors to the PDFgui project.
36+
A full list can be obtained from the git version control logs.
37+
1438
For more information please visit the project web-page:
1539
http://www.diffpy.org/
1640
or email Prof. Simon Billinge at sb2896@columbia.edu
1741

42+
43+
License Agreement
44+
1845
Redistribution and use in source and binary forms, with or without
1946
modification, are permitted provided that the following conditions
2047
are met:

products/pdfgui.rst

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -38,54 +38,36 @@ PDFgui is distributed as a software package for
3838
for all operating systems supported by Anaconda, namely for
3939
Linux, Mac OS X, and Windows.
4040

41-
As a prerequisite for PDFgui installation, download and
42-
install **Anaconda Python** from
43-
|anaconda-download|.
41+
As a prerequisite for PDFgui installation, download and install
42+
**Miniconda** (https://docs.conda.io/en/latest/miniconda.html#latest-miniconda-installer-links)
43+
or Anaconda Python (https://www.anaconda.com/download).
4444

45-
.. TODO -- remove when PDFgui is compatible with wxpython 4
45+
PDFgui is available from the "conda-forge" channel of Anaconda packages.
46+
To do so open a *Terminal* window or *Anaconda Command Prompt* and use
47+
the :program:`conda` command as follows ::
4648

47-
.. important::
49+
conda create --name=pdfgui2 python=3.9
50+
conda activate pdfgui2
51+
conda install -c conda-forge diffpy.pdfgui
4852

49-
As of July 2019 Anaconda stopped providing older versions
50-
of several packages that are required by PDFgui
51-
(details `here
52-
<https://www.anaconda.com/why-we-removed-the-free-channel-in-conda-4-7>`__).
53-
We are working on making PDFgui compatible with the current
54-
set of Anaconda packages.
55-
In the meantime you must re-activate the old packages
56-
as follows ::
53+
PDFgui can be then started from a *Terminal* window or *Anaconda Command Prompt* by typing ::
5754

58-
conda update -n base conda
59-
conda config --set restore_free_channel true
55+
pdfgui
6056

61-
62-
PDFgui is available from the "diffpy" channel of Anaconda packages.
63-
Because PDFgui requires Python 2.7 and wxpython 3,
64-
it is strongly recommended to install it in a dedicated
65-
Anaconda environment *py27*.
66-
To do so open a *Terminal* window or *Anaconda Command Prompt* on Windows
67-
and use the :program:`conda` command as follows ::
68-
69-
conda config --add channels diffpy
70-
conda create --name=py27 python=2.7
71-
conda activate py27
72-
conda install "diffpy.pdfgui>=1.1.2"
73-
74-
All done. To start PDFgui enter :program:`pdfgui` command in a
75-
Terminal or use the *DiffPy* start menu on Windows. PDFgui can be
76-
also started from the *Launcher* application included with Anaconda.
57+
The PDFgui window will appear automatically. An alternative method on Windows is to start
58+
PDFgui through the *Diffpy* start menu.
7759

7860
.. note::
79-
To start PDFgui from a Terminal make sure *py27* is
61+
To start PDFgui from a Terminal make sure *pdfgui2* is
8062
the active Anaconda environment::
8163

82-
conda activate py27
64+
conda activate pdfgui2
8365

8466
Alternatively you can add the following line to your shell startup
8567
file :file:`.bashrc` to define an alias which will work in
8668
any Anaconda environment ::
8769

88-
alias pdfgui="/path/to/py27/bin/pdfgui"
70+
alias pdfgui="/path/to/pdfgui2/bin/pdfgui"
8971

9072
where ``/path/to`` needs to be adjusted according to the output of
9173
``which pdfgui`` command.
@@ -98,7 +80,7 @@ The Anaconda package system makes it easy to prepare and distribute
9880
software updates and bugfixes. To update to the latest version of
9981
PDFgui use ::
10082

101-
conda update --channel=diffpy diffpy.pdfgui
83+
conda update -c conda-forge diffpy.pdfgui
10284

10385
To use a bleeding edge development version, visit the project source
10486
repository at https://github.com/diffpy/diffpy.pdfgui and consult
@@ -107,6 +89,15 @@ its README file.
10789

10890
Other versions
10991
==============
92+
v1.1.2 is the last python 2 version of PDFgui. It is no longer supported,
93+
but may be needed to open python 2 generated `.ddp` project files. It can
94+
be installed in a python2 anaconda environment using the commands::
95+
96+
conda config --set restore_free_channel true
97+
conda config --add channels diffpy
98+
conda create --name=py27 python=2.7
99+
conda activate py27
100+
conda install -c diffpy "diffpy.pdfgui==1.1.2"
110101

111102
When Anaconda Python is not available, PDFgui can be installed from
112103
sources. The latest source package is at the `Python Package
@@ -142,6 +133,15 @@ Documentation and help
142133
* The user manual is available in `HTML <../doc/pdfgui/index.html>`__
143134
and `PDF <../doc/pdfgui/pdfgui.pdf>`__ formats.
144135

136+
* Search "PDFgui" on YouTube for some video tutorials on how to use
137+
PDFgui.
138+
139+
* For in-depth help in using PDFgui to solve scientific problems please
140+
see the book "Atomic Pair Distribution Function Analysis: A primer" by
141+
Simon Billinge, Kirsten Jensen, and past and present Billinge group members,
142+
published by Oxford University Press. Data for the worked examples can
143+
be found here: https://github.com/Billingegroup/pdfttp_data
144+
145145
* Tutorial files are available from
146146
`pdfgui-tutorial.zip <../doc/pdfgui/pdfgui-tutorial.zip>`__.
147147

155 KB
Binary file not shown.

0 commit comments

Comments
 (0)