diffpy.mpdf 1.0.4__tar.gz → 1.0.4.1__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.
Files changed (37) hide show
  1. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/AUTHORS.txt +8 -8
  2. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/LICENSE.txt +10 -10
  3. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/MANIFEST.in +4 -4
  4. {diffpy_mpdf-1.0.4/diffpy.mpdf.egg-info → diffpy_mpdf-1.0.4.1}/PKG-INFO +13 -21
  5. diffpy_mpdf-1.0.4.1/README.md +49 -0
  6. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/__init__.py +17 -17
  7. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/__init__.py +32 -32
  8. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/gitarchive.cfg +5 -5
  9. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/magstructure.py +1087 -1087
  10. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/magutils.py +16 -4
  11. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/mpdf3Dcalculator.py +194 -194
  12. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/mpdftransformer.py +649 -649
  13. {diffpy_mpdf-1.0.4/diffpy/mpdf/tests/testdata → diffpy_mpdf-1.0.4.1/diffpy/mpdf/tests}/MnO_cubic.cif +256 -256
  14. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/__init__.py +62 -62
  15. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/run.py +29 -29
  16. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/testbasicmpdf.py +27 -27
  17. {diffpy_mpdf-1.0.4/diffpy/mpdf/tests → diffpy_mpdf-1.0.4.1/diffpy/mpdf/tests/testdata}/MnO_cubic.cif +256 -256
  18. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/testformfactor.py +24 -24
  19. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/testgetdiffdata.py +30 -30
  20. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/testmpdffromcif.py +46 -46
  21. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/testmpdffromselfcreated.py +35 -35
  22. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/testspinsatoms.py +36 -36
  23. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/version.cfg +6 -6
  24. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/version.py +39 -39
  25. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/visualize3D.py +198 -198
  26. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1/diffpy.mpdf.egg-info}/PKG-INFO +13 -21
  27. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/pyproject.toml +1 -1
  28. diffpy_mpdf-1.0.4/README.md +0 -57
  29. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/mciftools.py +0 -0
  30. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/mpdfcalculator.py +0 -0
  31. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/simpleparser.py +0 -0
  32. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/testdata/testdata.fgr +0 -0
  33. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy/mpdf/tests/testdata.fgr +0 -0
  34. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy.mpdf.egg-info/SOURCES.txt +0 -0
  35. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy.mpdf.egg-info/dependency_links.txt +0 -0
  36. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/diffpy.mpdf.egg-info/top_level.txt +0 -0
  37. {diffpy_mpdf-1.0.4 → diffpy_mpdf-1.0.4.1}/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.4
2
2
  Name: diffpy.mpdf
3
- Version: 1.0.4
3
+ Version: 1.0.4.1
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
@@ -37,44 +37,36 @@ Dynamic: license-file
37
37
 
38
38
  Framework for comprehensive magnetic PDF analysis.
39
39
 
40
- This package aims to provide a convenient method for computing the magnetic PDF (mPDF) from magnetic structures, performing fits to neutron total scattering data, and generating the experimental mPDF signal from magnetic scattering data. The mPDF is calculated by an MPDFcalculator object, which extracts the spin positions and spin vectors from a MagStructure object that the MPDFcalculator takes as input. The MagStructure object in turn can contain multiple MagSpecies objects, which generate magnetic configurations based on a diffpy.Structure object and a set of propagation vectors and basis vectors either provided by the user or read in directly from an MCIF file. Alternatively, the user can manually define a magnetic unit cell that will be used to generate the magnetic structure, or the magnetic structure can be defined simply as lists of spin positions and spin vectors provided by the user. The MPDFtransformer class is used to generate mPDF data from magnetic scattering data.
40
+ This package aims to provide a convenient method for computing the magnetic PDF (mPDF) from magnetic structures, performing fits to neutron total scattering data, and generating the experimental mPDF signal from magnetic scattering data. The mPDF is calculated by an MPDFcalculator object, which extracts the spin positions and spin vectors from a MagStructure object that the MPDFcalculator takes as input. The MagStructure object in turn can contain multiple MagSpecies objects, which generate magnetic configurations based on a diffpy.Structure object and a set of propagation vectors and basis vectors either provided by the user or read in directly from an MCIF file. Alternatively, the user can manually define a magnetic unit cell that will be used to generate the magnetic structure, or the magnetic structure can be defined simply as lists of spin positions and spin vectors provided by the user. The MPDFtransformer class is used to generate mPDF data from magnetic scattering data. Both one-dimensional (powder) and three-dimensional (single crystal) mPDF patterns can be calculated.
41
41
 
42
42
  Please cite: Frandsen _et al._, "diffpy.mpdf: open-source software for magnetic pair distribution function analysis", _J. Appl. Cryst._ (2022) __55__, 1377-1382. https://doi.org/10.1107/S1600576722007257
43
43
 
44
44
 
45
45
  ## Requirements
46
46
 
47
- This package requires Python 3.7 and the following software:
47
+ This package requires Python 3.11 or greater and the following software:
48
48
 
49
- numpy, matplotlib, scipy, diffpy.Structure, diffpy.srreal
49
+ numpy, matplotlib, scipy, diffpy.structure, diffpy.srreal
50
50
 
51
51
  Recommended software:
52
52
 
53
- Full diffpy-cmi suite.
53
+ Full diffpy.cmi suite, jupyter notebook
54
54
 
55
- Current supported platforms are Linux (64- and 32-bit) and MacOS (64-bit). With some effort, it may also be possible to run the program on Windows using the Linux Subsystem available for Windows 10. Perhaps a better option if you have a Windows PC is to install a virtual machine with a Linux distribution. Here's a useful guide on how to do that for Ubuntu using VirtualBox: https://ubuntu.com/tutorials/how-to-run-ubuntu-desktop-on-a-virtual-machine-using-virtualbox#1-overview .
55
+ Current supported platforms are Linux, Unix, macOS, and Windows.
56
56
 
57
- ## Installation
57
+ ## Recommended Installation Procedure
58
58
 
59
- 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
+ #### Step 1: Install diffpy.cmi
60
+ Follow the instructions at https://github.com/diffpy/diffpy.cmi.
60
61
 
61
- #### Step 1 (recommended): Create and activate a conda environment for diffpy + diffpy.mpdf.
62
- >>> conda create --name diffpy python=3.7
63
- >>> conda activate diffpy
64
- Note that you can name the environment anything you choose by passing it a different name after the --name flag in the first command.
65
-
66
- #### Step 2: Install diffpy-cmi through conda.
67
- >>> conda install -c diffpy diffpy-cmi
68
- Make sure you are installing this in the environment you created in the previous step.
69
-
70
- #### Step 3: Install diffpy.mpdf with pip
71
- Making sure you have activated your diffpy environment, run the command:
62
+ #### Step 2: Install diffpy.mpdf with pip
63
+ Making sure you are in the correct python environment, run the command:
72
64
 
73
65
  >>> pip install diffpy.mpdf
74
66
 
75
- 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):
67
+ Alternatively, you can install from source by installing diffpy.structure and diffpy.srreal following the instructions on their respective github pages, then 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 correct python environment):
76
68
 
77
- >>> python setup.py install
69
+ >>> pip install .
78
70
 
79
71
  ## Documentation and Helpful Examples
80
72
  Complete documentation is available at [https://frandsengroup.github.io/diffpy.mpdf/index.html](https://frandsengroup.github.io/diffpy.mpdf/index.html).
@@ -0,0 +1,49 @@
1
+ ## diffpy.mpdf
2
+
3
+ Framework for comprehensive magnetic PDF analysis.
4
+
5
+ This package aims to provide a convenient method for computing the magnetic PDF (mPDF) from magnetic structures, performing fits to neutron total scattering data, and generating the experimental mPDF signal from magnetic scattering data. The mPDF is calculated by an MPDFcalculator object, which extracts the spin positions and spin vectors from a MagStructure object that the MPDFcalculator takes as input. The MagStructure object in turn can contain multiple MagSpecies objects, which generate magnetic configurations based on a diffpy.Structure object and a set of propagation vectors and basis vectors either provided by the user or read in directly from an MCIF file. Alternatively, the user can manually define a magnetic unit cell that will be used to generate the magnetic structure, or the magnetic structure can be defined simply as lists of spin positions and spin vectors provided by the user. The MPDFtransformer class is used to generate mPDF data from magnetic scattering data. Both one-dimensional (powder) and three-dimensional (single crystal) mPDF patterns can be calculated.
6
+
7
+ Please cite: Frandsen _et al._, "diffpy.mpdf: open-source software for magnetic pair distribution function analysis", _J. Appl. Cryst._ (2022) __55__, 1377-1382. https://doi.org/10.1107/S1600576722007257
8
+
9
+
10
+ ## Requirements
11
+
12
+ This package requires Python 3.11 or greater and the following software:
13
+
14
+ numpy, matplotlib, scipy, diffpy.structure, diffpy.srreal
15
+
16
+ Recommended software:
17
+
18
+ Full diffpy.cmi suite, jupyter notebook
19
+
20
+ Current supported platforms are Linux, Unix, macOS, and Windows.
21
+
22
+ ## Recommended Installation Procedure
23
+
24
+ #### Step 1: Install diffpy.cmi
25
+ Follow the instructions at https://github.com/diffpy/diffpy.cmi.
26
+
27
+ #### Step 2: Install diffpy.mpdf with pip
28
+ Making sure you are in the correct python environment, run the command:
29
+
30
+ >>> pip install diffpy.mpdf
31
+
32
+ Alternatively, you can install from source by installing diffpy.structure and diffpy.srreal following the instructions on their respective github pages, then 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 correct python environment):
33
+
34
+ >>> pip install .
35
+
36
+ ## Documentation and Helpful Examples
37
+ Complete documentation is available at [https://frandsengroup.github.io/diffpy.mpdf/index.html](https://frandsengroup.github.io/diffpy.mpdf/index.html).
38
+
39
+ 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).
40
+
41
+ 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.
42
+
43
+ ## Contributors
44
+
45
+ Benjamin Frandsen, Parker Hamilton, Jacob Christensen, Eric Stubben, Victor Velasco, Pavol Juhas, Xiaohao Yang, and Simon Billinge.
46
+
47
+ ## License
48
+
49
+ 3-Clause BSD License
@@ -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$