Skip to content

Commit 3f46a5c

Browse files
committed
Remove PDFgui dependency.
1 parent b2dd9cd commit 3f46a5c

File tree

5 files changed

+75
-9
lines changed

5 files changed

+75
-9
lines changed

LICENSE.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ If you use this program to do productive scientific research that
22
leads to publication, we ask that you acknowledge use of the
33
program by citing the following paper in your publication:
44

5-
L. Granlund, S.J.B. Billinge, P.D. Duxbury, Automated Peak
6-
Extraction from Atomic Pair Distribution Functions, Acta
7-
Crystallographica A. Submitted (2014)
5+
L. Granlund, S.J.B. Billinge, P.M. Duxbury, Algorithm for
6+
systematic peak extraction from atomic pair distribution
7+
functions, Acta Crystallographica A 71(4), ???-??? (2015).
88

9-
Copyright 2014, Board of Trustees of Michigan State University
9+
Copyright 2015, Board of Trustees of Michigan State University
1010

11-
For more information please email Luke Granlund at
12-
11+
For more information please visit the diffpy web-page at
12+
http://www.diffpy.org
13+
or email Luke Granlund at [email protected], or Prof. Simon
14+
Billinge at [email protected].
1315

1416
Redistribution and use in source and binary forms, with or without
1517
modification, are permitted provided that the following conditions

LICENSE_PDFgui.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
SrMise incorporates source code from the PDFgui program in the file
2+
pdfdataset.py. The PDFgui license is reproduced in full below.
3+
===================================================================
4+
5+
This program is part of the DiffPy and DANSE open-source projects
6+
and is available subject to the conditions and terms laid out
7+
below.
8+
9+
If you use this program to do productive scientific research that
10+
leads to publication, we ask that you acknowledge use of the
11+
program by citing the following paper in your publication:
12+
13+
C. L. Farrow, P. Juhas, J. W. Liu, D. Bryndin, E. S. Bozin,
14+
J. Bloch, Th. Proffen and S. J. L. Billinge, PDFfit2 and
15+
PDFgui: computer programs for studying nanostructure in
16+
crystals, J. Phys.: Condens. Matter 19, 335219 (2007)
17+
18+
Copyright 2006-2007, Board of Trustees of Michigan State
19+
University, Copyright 2008-2009, Board of Trustees of Columbia
20+
University in the city of New York. (Copyright holder indicated in
21+
each source file).
22+
23+
For more information please visit the project web-page:
24+
http://www.diffpy.org/
25+
or email Prof. Simon Billinge at [email protected]
26+
27+
Redistribution and use in source and binary forms, with or without
28+
modification, are permitted provided that the following conditions
29+
are met:
30+
31+
* Redistributions of source code must retain the above copyright
32+
notice, this list of conditions and the following disclaimer.
33+
34+
* Redistributions in binary form must reproduce the above copyright
35+
notice, this list of conditions and the following disclaimer in the
36+
documentation and/or other materials provided with the distribution.
37+
38+
* Neither the name of the copyright holder nor the names of its
39+
contributors may be used to endorse or promote products derived from
40+
this software without specific prior written permission.
41+
42+
THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER "AS IS". COPYRIGHT
43+
HOLDER EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS,
44+
EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
45+
IMPLIED WARRANTIES OF MERCHANTABILITY, TITLE, FITNESS, ADEQUACY OR
46+
SUITABILITY FOR A PARTICULAR PURPOSE, AND ANY WARRANTIES OF FREEDOM
47+
FROM INFRINGEMENT OF ANY DOMESTIC OR FOREIGN PATENT, COPYRIGHTS,
48+
TRADE SECRETS OR OTHER PROPRIETARY RIGHTS OF ANY PARTY. IN NO EVENT
49+
SHALL COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR ANY DIRECT,
50+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
51+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
52+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
53+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
54+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
55+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE OR RELATING TO
56+
THIS AGREEMENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

diffpy/srmise/mise/miseerrors.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,11 @@ def __init__(self, info):
127127
128128
info -- description string"""
129129
MiseError.__init__(self, info)
130+
131+
class MisePDFKeyError(MiseError):
132+
"""diffpy.srmise.mise exception class. Requested PDF key can't be found."""
133+
def __init__(self, info):
134+
"""initialize
135+
136+
info -- description string"""
137+
MiseError.__init__(self, info)

diffpy/srmise/mise/pdfpeakextraction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
from diffpy.srmise.mise.modelcluster import ModelCluster, ModelCovariance
2020
from diffpy.srmise.mise.miseerrors import *
2121

22-
from diffpy.pdfgui.control.pdfdataset import PDFDataSet
22+
#from diffpy.pdfgui.control.pdfdataset import PDFDataSet
23+
from diffpy.srmise.mise.pdfdataset import PDFDataSet
2324

2425
import matplotlib.pyplot as plt
2526

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ def getversioncfg():
5959
zip_safe = False,
6060

6161
# Dependencies
62-
# pdfgui
6362
# numpy
6463
# scipy
6564
# matplotlib >= 1.1.0
66-
install_requires = ['diffpy.pdfgui', 'matplotlib >= 1.1.0', 'numpy', 'scipy'],
65+
install_requires = ['matplotlib >= 1.1.0', 'numpy', 'scipy'],
6766

6867
# other arguments here...
6968
entry_points = {

0 commit comments

Comments
 (0)