diffpy.mpdf 1.0.0__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/AUTHORS.txt +8 -8
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/LICENSE.txt +10 -10
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/MANIFEST.in +4 -4
- {diffpy.mpdf-1.0.0/diffpy.mpdf.egg-info → diffpy.mpdf-1.0.2}/PKG-INFO +14 -8
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/README.md +11 -5
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/__init__.py +17 -17
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/__init__.py +32 -32
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/gitarchive.cfg +5 -5
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/magstructure.py +1081 -1081
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/magutils.py +89 -2
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/mciftools.py +48 -37
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/mpdf3Dcalculator.py +194 -194
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/mpdftransformer.py +632 -632
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/MnO_cubic.cif +256 -256
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/__init__.py +62 -62
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/run.py +29 -29
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testbasicmpdf.py +27 -27
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testdata/MnO_cubic.cif +256 -256
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testformfactor.py +24 -24
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testgetdiffdata.py +30 -30
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testmpdffromcif.py +46 -46
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testmpdffromselfcreated.py +35 -35
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testspinsatoms.py +36 -36
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/version.cfg +6 -6
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/version.py +39 -39
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/visualize3D.py +175 -175
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2/diffpy.mpdf.egg-info}/PKG-INFO +14 -8
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/pyproject.toml +3 -3
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/setup.py +2 -2
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/mpdfcalculator.py +0 -0
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/simpleparser.py +0 -0
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testdata/testdata.fgr +0 -0
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy/mpdf/tests/testdata.fgr +0 -0
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy.mpdf.egg-info/SOURCES.txt +0 -0
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy.mpdf.egg-info/dependency_links.txt +0 -0
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/diffpy.mpdf.egg-info/top_level.txt +0 -0
- {diffpy.mpdf-1.0.0 → diffpy.mpdf-1.0.2}/setup.cfg +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Benjamin Frandsen
|
|
2
|
-
Parker Hamilton
|
|
3
|
-
Jacob Christensen
|
|
4
|
-
Eric Stubben
|
|
5
|
-
Victor Velasco
|
|
6
|
-
Pavol Juhas
|
|
7
|
-
Xiaohao Yang
|
|
8
|
-
Simon J.L. Billinge
|
|
1
|
+
Benjamin Frandsen
|
|
2
|
+
Parker Hamilton
|
|
3
|
+
Jacob Christensen
|
|
4
|
+
Eric Stubben
|
|
5
|
+
Victor Velasco
|
|
6
|
+
Pavol Juhas
|
|
7
|
+
Xiaohao Yang
|
|
8
|
+
Simon J.L. Billinge
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
Copyright 2022 BENJAMIN ALLEN FRANDSEN
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
-
|
|
5
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
-
|
|
7
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
-
|
|
9
|
-
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
-
|
|
1
|
+
Copyright 2022 BENJAMIN ALLEN FRANDSEN
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
11
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
recursive-include diffpy *
|
|
2
|
-
include AUTHORS.txt LICENSE*.txt README.rst
|
|
3
|
-
include setup.cfg
|
|
4
|
-
recursive-exclude diffpy *.pyc
|
|
1
|
+
recursive-include diffpy *
|
|
2
|
+
include AUTHORS.txt LICENSE*.txt README.rst
|
|
3
|
+
include setup.cfg
|
|
4
|
+
recursive-exclude diffpy *.pyc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: diffpy.mpdf
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Tools for magnetic PDF analysis.
|
|
5
5
|
Author-email: Benjamin Frandsen <benfrandsen@byu.edu>
|
|
6
6
|
License: Copyright 2022 BENJAMIN ALLEN FRANDSEN
|
|
@@ -25,9 +25,9 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
25
25
|
Classifier: Operating System :: Microsoft :: Windows
|
|
26
26
|
Classifier: Operating System :: POSIX
|
|
27
27
|
Classifier: Operating System :: Unix
|
|
28
|
-
Classifier: Programming Language :: Python :: 3.
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
29
29
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
30
|
-
Requires-Python: >=3.
|
|
30
|
+
Requires-Python: >=3.7
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE.txt
|
|
33
33
|
License-File: AUTHORS.txt
|
|
@@ -43,7 +43,7 @@ Please cite: Frandsen _et al._, "diffpy.mpdf: open-source software for magnetic
|
|
|
43
43
|
|
|
44
44
|
## Requirements
|
|
45
45
|
|
|
46
|
-
This package requires Python 3.
|
|
46
|
+
This package requires Python 3.7 and the following software:
|
|
47
47
|
|
|
48
48
|
numpy, matplotlib, scipy, diffpy.Structure, diffpy.srreal
|
|
49
49
|
|
|
@@ -55,10 +55,10 @@ Current supported platforms are Linux (64- and 32-bit) and MacOS (64-bit). With
|
|
|
55
55
|
|
|
56
56
|
## Installation
|
|
57
57
|
|
|
58
|
-
The recommended way to install this package is first to install diffpy-cmi through conda using the Anaconda python distribution, then install diffpy.mpdf
|
|
58
|
+
The recommended way to install this package is first to install diffpy-cmi through conda using the Anaconda python distribution, then install diffpy.mpdf using pip. See https://www.anaconda.com/distribution for instructions about installing the Anaconda python distribution. See also https://www.diffpy.org/products/diffpycmi/index.html for the diffpy-cmi installation instructions (reproduced here for convenience).
|
|
59
59
|
|
|
60
60
|
#### Step 1 (recommended): Create and activate a conda environment for diffpy + diffpy.mpdf.
|
|
61
|
-
>>> conda create --name diffpy python=3
|
|
61
|
+
>>> conda create --name diffpy python=3.7
|
|
62
62
|
>>> conda activate diffpy
|
|
63
63
|
Note that you can name the environment anything you choose by passing it a different name after the --name flag in the first command.
|
|
64
64
|
|
|
@@ -66,8 +66,12 @@ Note that you can name the environment anything you choose by passing it a diffe
|
|
|
66
66
|
>>> conda install -c diffpy diffpy-cmi
|
|
67
67
|
Make sure you are installing this in the environment you created in the previous step.
|
|
68
68
|
|
|
69
|
-
#### Step 3: Install diffpy.mpdf
|
|
70
|
-
|
|
69
|
+
#### Step 3: Install diffpy.mpdf with pip
|
|
70
|
+
Making sure you have activated your diffpy environment, run the command:
|
|
71
|
+
|
|
72
|
+
>>> pip install diffpy.mpdf
|
|
73
|
+
|
|
74
|
+
Alternatively, you can install from source by cloning or downloading the github repository https://github.com/FrandsenGroup/diffpy.mpdf on your local machine, navigating to the downloaded repository, and running the following command (making sure that you are in the environment you created in Step 1):
|
|
71
75
|
|
|
72
76
|
>>> python setup.py install
|
|
73
77
|
|
|
@@ -76,6 +80,8 @@ Complete documentation is available at [https://frandsengroup.github.io/diffpy.
|
|
|
76
80
|
|
|
77
81
|
Several examples to help you get started with mPDF analysis are available as jupyter notebooks at [https://github.com/FrandsenGroup/mPDF-tutorial](https://github.com/FrandsenGroup/mPDF-tutorial).
|
|
78
82
|
|
|
83
|
+
You may also check out [https://addie.ornl.gov/simulating_mpdf](https://addie.ornl.gov/simulating_mpdf) for a web-based tool to calculate mPDF patterns from magnetic CIF (mCIF) files.
|
|
84
|
+
|
|
79
85
|
## Contributors
|
|
80
86
|
|
|
81
87
|
Benjamin Frandsen, Parker Hamilton, Jacob Christensen, Eric Stubben, Victor Velasco, Pavol Juhas, Xiaohao Yang, and Simon Billinge.
|
|
@@ -9,7 +9,7 @@ Please cite: Frandsen _et al._, "diffpy.mpdf: open-source software for magnetic
|
|
|
9
9
|
|
|
10
10
|
## Requirements
|
|
11
11
|
|
|
12
|
-
This package requires Python 3.
|
|
12
|
+
This package requires Python 3.7 and the following software:
|
|
13
13
|
|
|
14
14
|
numpy, matplotlib, scipy, diffpy.Structure, diffpy.srreal
|
|
15
15
|
|
|
@@ -21,10 +21,10 @@ Current supported platforms are Linux (64- and 32-bit) and MacOS (64-bit). With
|
|
|
21
21
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
|
-
The recommended way to install this package is first to install diffpy-cmi through conda using the Anaconda python distribution, then install diffpy.mpdf
|
|
24
|
+
The recommended way to install this package is first to install diffpy-cmi through conda using the Anaconda python distribution, then install diffpy.mpdf using pip. See https://www.anaconda.com/distribution for instructions about installing the Anaconda python distribution. See also https://www.diffpy.org/products/diffpycmi/index.html for the diffpy-cmi installation instructions (reproduced here for convenience).
|
|
25
25
|
|
|
26
26
|
#### Step 1 (recommended): Create and activate a conda environment for diffpy + diffpy.mpdf.
|
|
27
|
-
>>> conda create --name diffpy python=3
|
|
27
|
+
>>> conda create --name diffpy python=3.7
|
|
28
28
|
>>> conda activate diffpy
|
|
29
29
|
Note that you can name the environment anything you choose by passing it a different name after the --name flag in the first command.
|
|
30
30
|
|
|
@@ -32,8 +32,12 @@ Note that you can name the environment anything you choose by passing it a diffe
|
|
|
32
32
|
>>> conda install -c diffpy diffpy-cmi
|
|
33
33
|
Make sure you are installing this in the environment you created in the previous step.
|
|
34
34
|
|
|
35
|
-
#### Step 3: Install diffpy.mpdf
|
|
36
|
-
|
|
35
|
+
#### Step 3: Install diffpy.mpdf with pip
|
|
36
|
+
Making sure you have activated your diffpy environment, run the command:
|
|
37
|
+
|
|
38
|
+
>>> pip install diffpy.mpdf
|
|
39
|
+
|
|
40
|
+
Alternatively, you can install from source by cloning or downloading the github repository https://github.com/FrandsenGroup/diffpy.mpdf on your local machine, navigating to the downloaded repository, and running the following command (making sure that you are in the environment you created in Step 1):
|
|
37
41
|
|
|
38
42
|
>>> python setup.py install
|
|
39
43
|
|
|
@@ -42,6 +46,8 @@ Complete documentation is available at [https://frandsengroup.github.io/diffpy.
|
|
|
42
46
|
|
|
43
47
|
Several examples to help you get started with mPDF analysis are available as jupyter notebooks at [https://github.com/FrandsenGroup/mPDF-tutorial](https://github.com/FrandsenGroup/mPDF-tutorial).
|
|
44
48
|
|
|
49
|
+
You may also check out [https://addie.ornl.gov/simulating_mpdf](https://addie.ornl.gov/simulating_mpdf) for a web-based tool to calculate mPDF patterns from magnetic CIF (mCIF) files.
|
|
50
|
+
|
|
45
51
|
## Contributors
|
|
46
52
|
|
|
47
53
|
Benjamin Frandsen, Parker Hamilton, Jacob Christensen, Eric Stubben, Victor Velasco, Pavol Juhas, Xiaohao Yang, and Simon Billinge.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
##############################################################################
|
|
3
|
-
#
|
|
4
|
-
# diffpy.mpdf by Frandsen Group
|
|
5
|
-
# Benjamin A. Frandsen benfrandsen@byu.edu
|
|
6
|
-
# (c) 2022 Benjamin Allen Frandsen
|
|
7
|
-
# All rights reserved
|
|
8
|
-
#
|
|
9
|
-
# File coded by: Benjamin Frandsen
|
|
10
|
-
#
|
|
11
|
-
# See AUTHORS.txt for a list of people who contributed.
|
|
12
|
-
# See LICENSE.txt for license information.
|
|
13
|
-
#
|
|
14
|
-
##############################################################################
|
|
15
|
-
|
|
16
|
-
__import__('pkg_resources').declare_namespace(__name__)
|
|
17
|
-
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
##############################################################################
|
|
3
|
+
#
|
|
4
|
+
# diffpy.mpdf by Frandsen Group
|
|
5
|
+
# Benjamin A. Frandsen benfrandsen@byu.edu
|
|
6
|
+
# (c) 2022 Benjamin Allen Frandsen
|
|
7
|
+
# All rights reserved
|
|
8
|
+
#
|
|
9
|
+
# File coded by: Benjamin Frandsen
|
|
10
|
+
#
|
|
11
|
+
# See AUTHORS.txt for a list of people who contributed.
|
|
12
|
+
# See LICENSE.txt for license information.
|
|
13
|
+
#
|
|
14
|
+
##############################################################################
|
|
15
|
+
|
|
16
|
+
__import__('pkg_resources').declare_namespace(__name__)
|
|
17
|
+
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
##############################################################################
|
|
3
|
-
#
|
|
4
|
-
# diffpy.mpdf by Frandsen Group
|
|
5
|
-
# Benjamin A. Frandsen benfrandsen@byu.edu
|
|
6
|
-
# (c) 2022 Benjamin Allen Frandsen
|
|
7
|
-
# All rights reserved
|
|
8
|
-
#
|
|
9
|
-
# File coded by: Benjamin Frandsen
|
|
10
|
-
#
|
|
11
|
-
# See AUTHORS.txt for a list of people who contributed.
|
|
12
|
-
# See LICENSE.txt for license information.
|
|
13
|
-
#
|
|
14
|
-
##############################################################################
|
|
15
|
-
|
|
16
|
-
"""Tools for magnetic pair distribution function analysis
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
# package version
|
|
20
|
-
from diffpy.mpdf.version import __version__
|
|
21
|
-
|
|
22
|
-
# convenience imports
|
|
23
|
-
from diffpy.mpdf.magstructure import *
|
|
24
|
-
from diffpy.mpdf.mpdfcalculator import *
|
|
25
|
-
from diffpy.mpdf.magutils import *
|
|
26
|
-
from diffpy.mpdf.mpdf3Dcalculator import *
|
|
27
|
-
from diffpy.mpdf.visualize3D import *
|
|
28
|
-
from diffpy.mpdf.mciftools import *
|
|
29
|
-
from diffpy.mpdf.simpleparser import *
|
|
30
|
-
from diffpy.mpdf.mpdftransformer import *
|
|
31
|
-
|
|
32
|
-
# End of file
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
##############################################################################
|
|
3
|
+
#
|
|
4
|
+
# diffpy.mpdf by Frandsen Group
|
|
5
|
+
# Benjamin A. Frandsen benfrandsen@byu.edu
|
|
6
|
+
# (c) 2022 Benjamin Allen Frandsen
|
|
7
|
+
# All rights reserved
|
|
8
|
+
#
|
|
9
|
+
# File coded by: Benjamin Frandsen
|
|
10
|
+
#
|
|
11
|
+
# See AUTHORS.txt for a list of people who contributed.
|
|
12
|
+
# See LICENSE.txt for license information.
|
|
13
|
+
#
|
|
14
|
+
##############################################################################
|
|
15
|
+
|
|
16
|
+
"""Tools for magnetic pair distribution function analysis
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
# package version
|
|
20
|
+
from diffpy.mpdf.version import __version__
|
|
21
|
+
|
|
22
|
+
# convenience imports
|
|
23
|
+
from diffpy.mpdf.magstructure import *
|
|
24
|
+
from diffpy.mpdf.mpdfcalculator import *
|
|
25
|
+
from diffpy.mpdf.magutils import *
|
|
26
|
+
from diffpy.mpdf.mpdf3Dcalculator import *
|
|
27
|
+
from diffpy.mpdf.visualize3D import *
|
|
28
|
+
from diffpy.mpdf.mciftools import *
|
|
29
|
+
from diffpy.mpdf.simpleparser import *
|
|
30
|
+
from diffpy.mpdf.mpdftransformer import *
|
|
31
|
+
|
|
32
|
+
# End of file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[DEFAULT]
|
|
2
|
-
commit = $Format:%H$
|
|
3
|
-
date = $Format:%ai$
|
|
4
|
-
timestamp = $Format:%at$
|
|
5
|
-
refnames = $Format:%D$
|
|
1
|
+
[DEFAULT]
|
|
2
|
+
commit = $Format:%H$
|
|
3
|
+
date = $Format:%ai$
|
|
4
|
+
timestamp = $Format:%at$
|
|
5
|
+
refnames = $Format:%D$
|