Skip to content

Commit d01ae83

Browse files
committed
Manual installation instructions
1 parent afd8367 commit d01ae83

File tree

4 files changed

+252
-0
lines changed

4 files changed

+252
-0
lines changed

doc/manual/acknowledgements.texinfo

Whitespace-only changes.

doc/manual/disclaimer.texinfo

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
2+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
3+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
4+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
5+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
6+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
7+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
8+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
9+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
10+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

doc/manual/pdfmorph.texinfo

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
\input texinfo @c -*-texinfo-*-
2+
3+
@documentencoding UTF-8
4+
5+
@ifnottex
6+
@macro smallskip{}
7+
@vskip 6pt
8+
@end macro
9+
10+
@macro medskip{}
11+
@vskip 12pt
12+
@end macro
13+
14+
@macro bigskip{}
15+
@vskip 24pt
16+
@end macro
17+
@end ifnottex
18+
19+
@macro EquationMark{}
20+
@html
21+
<!-- EquationMark -->
22+
@end html
23+
@end macro
24+
25+
@macro ScreenShot{f}
26+
@center @image{\f\, 5in}
27+
@end macro
28+
29+
@macro ReleaseDate{}
30+
June 2024
31+
@end macro
32+
33+
@exampleindent 2
34+
35+
@c start of header
36+
@setfilename pdfmorph
37+
@settitle PDFmorph, release 1.0, @ReleaseDate{}
38+
@c end of header
39+
40+
@c Part 1: copying
41+
@copying
42+
Copyright 2009-2024, Board of Trustees of Columbia University in the city of New York.
43+
@end copying
44+
45+
@c Part 2: title
46+
@titlepage
47+
48+
@title PDFmorph user guide
49+
@subtitle 1.0 release
50+
@subtitle @ReleaseDate{}
51+
@author C. L. Farrow, C. J. Wright, P. Juhás, C.-H. Liu, T. Davis,
52+
@author S. M. Román, A. Yang, and S. J. L. Billinge
53+
54+
@page
55+
@vskip 0pt plus 1filll
56+
@c @insertcopying
57+
58+
@ifhtml
59+
@node acknowledgments
60+
@end ifhtml
61+
@heading Acknowledgments
62+
@cindex acknowledgments
63+
@include acknowledgements.texinfo
64+
65+
66+
@page
67+
@vskip 0pt plus 1filll
68+
@majorheading Preface
69+
@heading Redistribution
70+
@include redistribution.texinfo
71+
72+
73+
@heading Disclaimer
74+
@include disclaimer.texinfo
75+
76+
@end titlepage
77+
78+
79+
@c Part 3: content
80+
@contents
81+
82+
83+
@c Make menu if html
84+
@ifhtml
85+
86+
@node Top
87+
@top
88+
89+
90+
@menu
91+
* Introduction::
92+
* Installation::
93+
* Quick start tutorial::
94+
* Available morphs::
95+
* PDFmorph options::
96+
* Index::
97+
@end menu
98+
99+
@end ifhtml
100+
101+
@page
102+
@vskip 0pt plus 1filll
103+
@node Introduction, Installation, Top, Top
104+
@chapter Introduction
105+
@cindex introduction
106+
107+
PDFmorph is a Python package that increases the insight researchers can
108+
obtain from measured atomic pair distribution functions (PDFs) in a
109+
model-independent way. It was originally designed to help a researcher
110+
answer a question: "Has my material undergone a phase transition between
111+
these two measurements?"
112+
113+
@page
114+
@vskip 0pt plus 1filll
115+
@node Installation, Quick start tutorial, Introduction, Top
116+
@chapter Installation
117+
@cindex installation
118+
119+
@menu
120+
* Availability::
121+
* Requirements::
122+
* Installation instructions::
123+
@end menu
124+
125+
@node Availability, Requirements, Installation, Installation
126+
@section Availability
127+
@cindex availability
128+
129+
PDFmorph is open source and distributed under the BSD license.
130+
It runs on Windows, Mac OS, Linux, and all major Unix systems.
131+
The source code is freely available at @url{https://github.com/diffpy/diffpy.pdfmorph}.
132+
133+
@node Requirements, Installation instructions, Availability, Installation
134+
@section Requirements
135+
@cindex requirements
136+
137+
PDFmorph is currently run from the command line, so it is recommended that users
138+
first familiarize themselves with their operating system's command line interface.
139+
140+
PDFmorph currently requires Python 3.10 or higher to run. It also makes use of
141+
the following third party libraries:
142+
@itemize @bullet
143+
@item @url{https://numpy.org/, NumPy} - Python's fast scientific computing library
144+
@item @url{https://matplotlib.org/, Matplotlib} - Python plotting library
145+
@item @url{https://scipy.org/, SciPy} - Python's technical computing library
146+
@item @url{https://www.diffpy.org/diffpy.utils/, diffpy.utils}
147+
- @url{https://www.diffpy.org/, DiffPy} general utility functions
148+
@end itemize
149+
These dependencies will be installed automatically if you use the conda installation
150+
procedure described in the following section (@ref{Installation instructions}).
151+
152+
@node Installation instructions, Quick start tutorial, Requirements, Installation
153+
@section Installation instructions
154+
@cindex installationinstrunctions
155+
156+
We recommend installing the package and its dependencies using conda.
157+
Miniconda, a minimal installer for conda, can be downloaded
158+
@url{https://docs.anaconda.com/free/miniconda/, here}.
159+
Miniconda makes it easy to manage dependencies in isolated environments.
160+
Once Miniconda is installed, run @code{conda} on the command line
161+
to test that it has been installed properly.
162+
163+
To create and activate a conda environment to use PDFmorph, run the following command.
164+
@example
165+
conda create -n pdfmorph_env python=3 --yes
166+
conda activate pdfmorph_env
167+
@end example
168+
169+
A conda environment must be active to use the packages within.
170+
In future sessions, make sure to run @code{conda activate pdfmorph_env} to activate the
171+
environment before interacting with the PDFmorph program.
172+
173+
Once active, you can install PDFmorph into your environment from the
174+
@url{https://conda-forge.org/, conda-forge} channel of Anaconda packages by running
175+
@example
176+
conda config --add channels conda-forge
177+
conda install diffpy.pdfmorph
178+
@end example
179+
This installation only needs to be done once. The next time you activate the environment,
180+
these packages will already be installed.
181+
182+
When you are finished with the session, exit the environment by running
183+
@example
184+
conda deactivate pdfmorph_env
185+
@end example
186+
187+
If you do not wish to use conda to install, PDFmorph is also available on the
188+
@url{https://pypi.org/, Python Package Index} or can be installed from source
189+
at @url{https://github.com/diffpy/diffpy.pdfmorph}. Note that these installation
190+
methods will require you to first install the dependencies listed in the previous section
191+
(@ref{Requirements}).
192+
193+
@page
194+
@vskip 0pt plus 1filll
195+
@node Quick start tutorial, Available morphs, Installation, Top
196+
@chapter Quick start tutorial
197+
@cindex quickstarttutorial
198+
199+
Download packaged tutorial files
200+
201+
@page
202+
@vskip 0pt plus 1filll
203+
@node Available morphs, PDFmorph options, Quick start tutorial, Top
204+
@chapter Available morphs
205+
@cindex availablemorphs
206+
207+
In this section, we detail a few use-cases for morphs
208+
209+
@page
210+
@vskip 0pt plus 1filll
211+
@node PDFmorph options, Index, Available morphs, Top
212+
@chapter PDFmorph options
213+
@cindex pdfmorphoptions
214+
215+
Explaination of options
216+
217+
@c End TexInfo file
218+
@node Index, Top
219+
@unnumbered Index
220+
221+
@printindex cp
222+
223+
@bye

doc/manual/redistribution.texinfo

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Redistribution and use in source and binary forms, with or without
2+
modification, are permitted provided that the following conditions are met:
3+
4+
@bigskip{}
5+
6+
Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
8+
9+
@bigskip{}
10+
11+
Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
@bigskip{}
16+
17+
Neither the names of COLUMBIA UNIVERSITY, MICHIGAN STATE UNIVERSITY nor the
18+
names of their contributors may be used to endorse or promote products
19+
derived from this software without specific prior written permission.

0 commit comments

Comments
 (0)