diffpy.srfit 3.1.0__py3-none-any.whl
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/__init__.py +15 -0
- diffpy/srfit/__init__.py +41 -0
- diffpy/srfit/equation/__init__.py +31 -0
- diffpy/srfit/equation/builder.py +702 -0
- diffpy/srfit/equation/equationmod.py +213 -0
- diffpy/srfit/equation/literals/__init__.py +71 -0
- diffpy/srfit/equation/literals/abcs.py +81 -0
- diffpy/srfit/equation/literals/argument.py +76 -0
- diffpy/srfit/equation/literals/literal.py +69 -0
- diffpy/srfit/equation/literals/operators.py +380 -0
- diffpy/srfit/equation/visitors/__init__.py +94 -0
- diffpy/srfit/equation/visitors/argfinder.py +62 -0
- diffpy/srfit/equation/visitors/printer.py +120 -0
- diffpy/srfit/equation/visitors/swapper.py +142 -0
- diffpy/srfit/equation/visitors/validator.py +113 -0
- diffpy/srfit/equation/visitors/visitor.py +62 -0
- diffpy/srfit/exceptions.py +29 -0
- diffpy/srfit/fitbase/__init__.py +53 -0
- diffpy/srfit/fitbase/calculator.py +110 -0
- diffpy/srfit/fitbase/configurable.py +57 -0
- diffpy/srfit/fitbase/constraint.py +117 -0
- diffpy/srfit/fitbase/fitcontribution.py +351 -0
- diffpy/srfit/fitbase/fithook.py +227 -0
- diffpy/srfit/fitbase/fitrecipe.py +826 -0
- diffpy/srfit/fitbase/fitresults.py +674 -0
- diffpy/srfit/fitbase/parameter.py +314 -0
- diffpy/srfit/fitbase/parameterset.py +110 -0
- diffpy/srfit/fitbase/profile.py +405 -0
- diffpy/srfit/fitbase/profilegenerator.py +168 -0
- diffpy/srfit/fitbase/profileparser.py +179 -0
- diffpy/srfit/fitbase/recipeorganizer.py +1074 -0
- diffpy/srfit/fitbase/restraint.py +117 -0
- diffpy/srfit/fitbase/simplerecipe.py +230 -0
- diffpy/srfit/fitbase/validatable.py +59 -0
- diffpy/srfit/interface/__init__.py +33 -0
- diffpy/srfit/interface/interface.py +180 -0
- diffpy/srfit/pdf/__init__.py +24 -0
- diffpy/srfit/pdf/basepdfgenerator.py +296 -0
- diffpy/srfit/pdf/characteristicfunctions.py +432 -0
- diffpy/srfit/pdf/debyepdfgenerator.py +115 -0
- diffpy/srfit/pdf/pdfcontribution.py +311 -0
- diffpy/srfit/pdf/pdfgenerator.py +77 -0
- diffpy/srfit/pdf/pdfparser.py +226 -0
- diffpy/srfit/sas/__init__.py +30 -0
- diffpy/srfit/sas/prcalculator.py +139 -0
- diffpy/srfit/sas/sasgenerator.py +70 -0
- diffpy/srfit/sas/sasimport.py +66 -0
- diffpy/srfit/sas/sasparameter.py +70 -0
- diffpy/srfit/sas/sasparser.py +133 -0
- diffpy/srfit/sas/sasprofile.py +94 -0
- diffpy/srfit/structure/__init__.py +60 -0
- diffpy/srfit/structure/basestructureparset.py +62 -0
- diffpy/srfit/structure/bvsrestraint.py +101 -0
- diffpy/srfit/structure/cctbxparset.py +292 -0
- diffpy/srfit/structure/diffpyparset.py +303 -0
- diffpy/srfit/structure/objcrystparset.py +1552 -0
- diffpy/srfit/structure/sgconstraints.py +761 -0
- diffpy/srfit/structure/srrealparset.py +92 -0
- diffpy/srfit/util/__init__.py +50 -0
- diffpy/srfit/util/argbinders.py +29 -0
- diffpy/srfit/util/inpututils.py +50 -0
- diffpy/srfit/util/nameutils.py +45 -0
- diffpy/srfit/util/observable.py +93 -0
- diffpy/srfit/util/tagmanager.py +150 -0
- diffpy/srfit/util/weakrefcallable.py +170 -0
- diffpy/srfit/version.py +26 -0
- diffpy_srfit-3.1.0.dist-info/METADATA +216 -0
- diffpy_srfit-3.1.0.dist-info/RECORD +73 -0
- diffpy_srfit-3.1.0.dist-info/WHEEL +5 -0
- diffpy_srfit-3.1.0.dist-info/licenses/AUTHORS.rst +10 -0
- diffpy_srfit-3.1.0.dist-info/licenses/LICENSE.rst +138 -0
- diffpy_srfit-3.1.0.dist-info/licenses/LICENSE_DANSE.rst +34 -0
- diffpy_srfit-3.1.0.dist-info/top_level.txt +1 -0
diffpy/srfit/version.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
##############################################################################
|
|
3
|
+
#
|
|
4
|
+
# (c) 2008-2025 The Trustees of Columbia University in the City of New York.
|
|
5
|
+
# All rights reserved.
|
|
6
|
+
#
|
|
7
|
+
# File coded by: Christopher Farrow, Pavol Juhas, and members of the
|
|
8
|
+
# Billinge Group.
|
|
9
|
+
#
|
|
10
|
+
# See GitHub contributions for a more detailed list of contributors.
|
|
11
|
+
# https://github.com/diffpy/diffpy.srfit/graphs/contributors
|
|
12
|
+
#
|
|
13
|
+
# See LICENSE.rst for license information.
|
|
14
|
+
#
|
|
15
|
+
##############################################################################
|
|
16
|
+
"""Definition of __version__."""
|
|
17
|
+
|
|
18
|
+
# We do not use the other three variables, but can be added back if needed.
|
|
19
|
+
# __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]
|
|
20
|
+
|
|
21
|
+
# obtain version information
|
|
22
|
+
from importlib.metadata import version
|
|
23
|
+
|
|
24
|
+
__version__ = version("diffpy.srfit")
|
|
25
|
+
|
|
26
|
+
# End of file
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: diffpy.srfit
|
|
3
|
+
Version: 3.1.0
|
|
4
|
+
Summary: Configurable code for solving atomic structures.
|
|
5
|
+
Author-email: Simon Billinge <sb2896@columbia.edu>
|
|
6
|
+
Maintainer-email: Simon Billinge <sb2896@columbia.edu>
|
|
7
|
+
Project-URL: Homepage, https://github.com/diffpy/diffpy.srfit/
|
|
8
|
+
Project-URL: Issues, https://github.com/diffpy/diffpy.srfit/issues/
|
|
9
|
+
Keywords: regression,modelling,fitting,diffraction,PDF
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
15
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: POSIX
|
|
18
|
+
Classifier: Operating System :: Unix
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
24
|
+
Requires-Python: <3.14,>=3.11
|
|
25
|
+
Description-Content-Type: text/x-rst
|
|
26
|
+
License-File: LICENSE.rst
|
|
27
|
+
License-File: LICENSE_DANSE.rst
|
|
28
|
+
License-File: AUTHORS.rst
|
|
29
|
+
Requires-Dist: matplotlib
|
|
30
|
+
Requires-Dist: numpy
|
|
31
|
+
Requires-Dist: scipy
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
|Icon| |title|_
|
|
35
|
+
===============
|
|
36
|
+
|
|
37
|
+
.. |title| replace:: diffpy.srfit
|
|
38
|
+
.. _title: https://diffpy.github.io/diffpy.srfit
|
|
39
|
+
|
|
40
|
+
.. |Icon| image:: https://avatars.githubusercontent.com/diffpy
|
|
41
|
+
:target: https://diffpy.github.io/diffpy.srfit
|
|
42
|
+
:height: 100px
|
|
43
|
+
|
|
44
|
+
|PyPI| |Forge| |PythonVersion| |PR|
|
|
45
|
+
|
|
46
|
+
|CI| |Codecov| |Black| |Tracking|
|
|
47
|
+
|
|
48
|
+
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
|
|
49
|
+
:target: https://github.com/psf/black
|
|
50
|
+
|
|
51
|
+
.. |CI| image:: https://github.com/diffpy/diffpy.srfit/actions/workflows/matrix-and-codecov-on-merge-to-main.yml/badge.svg
|
|
52
|
+
:target: https://github.com/diffpy/diffpy.srfit/actions/workflows/matrix-and-codecov-on-merge-to-main.yml
|
|
53
|
+
|
|
54
|
+
.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.srfit/branch/main/graph/badge.svg
|
|
55
|
+
:target: https://codecov.io/gh/diffpy/diffpy.srfit
|
|
56
|
+
|
|
57
|
+
.. |Forge| image:: https://img.shields.io/conda/vn/conda-forge/diffpy.srfit
|
|
58
|
+
:target: https://anaconda.org/conda-forge/diffpy.srfit
|
|
59
|
+
|
|
60
|
+
.. |PR| image:: https://img.shields.io/badge/PR-Welcome-29ab47ff
|
|
61
|
+
|
|
62
|
+
.. |PyPI| image:: https://img.shields.io/pypi/v/diffpy.srfit
|
|
63
|
+
:target: https://pypi.org/project/diffpy.srfit/
|
|
64
|
+
|
|
65
|
+
.. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/diffpy.srfit
|
|
66
|
+
:target: https://pypi.org/project/diffpy.srfit/
|
|
67
|
+
|
|
68
|
+
.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue
|
|
69
|
+
:target: https://github.com/diffpy/diffpy.srfit/issues
|
|
70
|
+
|
|
71
|
+
diffpy.srfit
|
|
72
|
+
============
|
|
73
|
+
|
|
74
|
+
Configurable code for solving atomic structures.
|
|
75
|
+
|
|
76
|
+
The diffpy.srfit package provides the framework for building a global optimizer
|
|
77
|
+
on the fly from components such as function calculators (that calculate
|
|
78
|
+
different data spectra), regression algorithms and structure models. The
|
|
79
|
+
software is capable of co-refinement using multiple information sources or
|
|
80
|
+
models. It provides a uniform interface for various regression algorithms. The
|
|
81
|
+
target function being optimized can be specified by the user according to the
|
|
82
|
+
data available.
|
|
83
|
+
|
|
84
|
+
Within the diffpy.srfit framework, any parameter used in describing the
|
|
85
|
+
structure of a material can be passed as a refinable variable to the global
|
|
86
|
+
optimizer. Once parameters are declared as variables they can easily be turned
|
|
87
|
+
"on" or "off", i.e. fixed or allowed to vary. Additionally, variables may be
|
|
88
|
+
constrained to obey mathematical relationships with other parameters or
|
|
89
|
+
variables used in the structural model. Restraints can be applied to
|
|
90
|
+
variables, which adds a penalty to the refinement process commensurate with the
|
|
91
|
+
deviation from the known value or range. The cost function can also be
|
|
92
|
+
customized by the user. If the refinement contains multiple models, each model
|
|
93
|
+
can have its own cost function which will be properly weighted and combined to
|
|
94
|
+
obtain the total cost function. Additionally, diffpy.srfit is designed to be
|
|
95
|
+
extensible, allowing the user to integrate external calculators to perform
|
|
96
|
+
co-refinements with other techniques.
|
|
97
|
+
|
|
98
|
+
For more information about the diffpy.srfit library, please consult our `online documentation <https://diffpy.github.io/diffpy.srfit>`_.
|
|
99
|
+
|
|
100
|
+
Citation
|
|
101
|
+
--------
|
|
102
|
+
|
|
103
|
+
If you use diffpy.srfit in a scientific publication, we would like you to cite this package as
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
P. Juhás, C. L. Farrow, X. Yang, K. R. Knox and S. J. L. Billinge,
|
|
107
|
+
`Complex modeling: a strategy and software program for combining
|
|
108
|
+
multiple information sources to solve ill posed structure and
|
|
109
|
+
nanostructure inverse problems
|
|
110
|
+
<http://dx.doi.org/10.1107/S2053273315014473>`__,
|
|
111
|
+
*Acta Crystallogr. A* **71**, 562-568 (2015).
|
|
112
|
+
|
|
113
|
+
Installation
|
|
114
|
+
------------
|
|
115
|
+
|
|
116
|
+
The preferred method is to use `Miniconda Python
|
|
117
|
+
<https://docs.conda.io/projects/miniconda/en/latest/miniconda-install.html>`_
|
|
118
|
+
and install from the "conda-forge" channel of Conda packages.
|
|
119
|
+
|
|
120
|
+
To add "conda-forge" to the conda channels, run the following in a terminal. ::
|
|
121
|
+
|
|
122
|
+
conda config --add channels conda-forge
|
|
123
|
+
|
|
124
|
+
We want to install our packages in a suitable conda environment.
|
|
125
|
+
The following creates and activates a new environment named ``diffpy.srfit_env`` ::
|
|
126
|
+
|
|
127
|
+
conda create -n diffpy.srfit_env diffpy.srfit
|
|
128
|
+
conda activate diffpy.srfit_env
|
|
129
|
+
|
|
130
|
+
To confirm that the installation was successful, type ::
|
|
131
|
+
|
|
132
|
+
python -c "import diffpy.srfit; print(diffpy.srfit.__version__)"
|
|
133
|
+
|
|
134
|
+
The output should print the latest version displayed on the badges above.
|
|
135
|
+
|
|
136
|
+
This will install the minimal `diffpy.srfit` installation. It will often be used
|
|
137
|
+
as along with other packages for manipulating and computing crystal structures
|
|
138
|
+
and so on. We also therefore recommend installing the following:
|
|
139
|
+
|
|
140
|
+
* ``diffpy.structure`` - crystal structure container and parsers,
|
|
141
|
+
https://github.com/diffpy/diffpy.structure
|
|
142
|
+
* ``pyobjcryst`` - Crystal and Molecule storage, rigid units, bond
|
|
143
|
+
length and bond angle restraints, https://github.com/diffpy/pyobjcryst
|
|
144
|
+
|
|
145
|
+
Optimizations involving pair distribution functions PDF or bond valence
|
|
146
|
+
sums require
|
|
147
|
+
|
|
148
|
+
* ``diffpy.srreal`` - python library for PDF calculation,
|
|
149
|
+
https://github.com/diffpy/diffpy.srreal
|
|
150
|
+
|
|
151
|
+
Optimizations involving small angle scattering or shape characteristic
|
|
152
|
+
functions from the diffpy.srfit.sas module require
|
|
153
|
+
|
|
154
|
+
* ``sas`` - module for calculation of P(R) in small-angle scattering
|
|
155
|
+
from the SasView project, http://www.sasview.org
|
|
156
|
+
|
|
157
|
+
Fallback Installation
|
|
158
|
+
---------------------
|
|
159
|
+
|
|
160
|
+
If the above does not work, you can use ``pip`` to download and install the latest release from
|
|
161
|
+
`Python Package Index <https://pypi.python.org>`_.
|
|
162
|
+
To install using ``pip`` into your ``diffpy.srfit_env`` environment, type ::
|
|
163
|
+
|
|
164
|
+
pip install diffpy.srfit
|
|
165
|
+
|
|
166
|
+
If you prefer to install from sources, after installing the dependencies, obtain the source archive from
|
|
167
|
+
`GitHub <https://github.com/diffpy/diffpy.srfit/>`_. Once installed, ``cd`` into your ``diffpy.srfit`` directory
|
|
168
|
+
and run the following ::
|
|
169
|
+
|
|
170
|
+
pip install .
|
|
171
|
+
|
|
172
|
+
Getting Started
|
|
173
|
+
---------------
|
|
174
|
+
|
|
175
|
+
You may consult our `online documentation <https://diffpy.github.io/diffpy.srfit>`_ for tutorials and API references.
|
|
176
|
+
|
|
177
|
+
Support and Contribute
|
|
178
|
+
----------------------
|
|
179
|
+
|
|
180
|
+
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.srfit/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.srfit/pulls>`_.
|
|
181
|
+
|
|
182
|
+
Feel free to fork the project and contribute. To install diffpy.srfit
|
|
183
|
+
in a development mode, with its sources being directly used by Python
|
|
184
|
+
rather than copied to a package directory, use the following in the root
|
|
185
|
+
directory ::
|
|
186
|
+
|
|
187
|
+
pip install -e .
|
|
188
|
+
|
|
189
|
+
To ensure code quality and to prevent accidental commits into the default branch, please set up the use of our pre-commit
|
|
190
|
+
hooks.
|
|
191
|
+
|
|
192
|
+
1. Install pre-commit in your working environment by running ``conda install pre-commit``.
|
|
193
|
+
|
|
194
|
+
2. Initialize pre-commit (one time only) ``pre-commit install``.
|
|
195
|
+
|
|
196
|
+
Thereafter your code will be linted by black and isort and checked against flake8 before you can commit.
|
|
197
|
+
If it fails by black or isort, just rerun and it should pass (black and isort will modify the files so should
|
|
198
|
+
pass after they are modified). If the flake8 test fails please see the error messages and fix them manually before
|
|
199
|
+
trying to commit again.
|
|
200
|
+
|
|
201
|
+
Improvements and fixes are always appreciated.
|
|
202
|
+
|
|
203
|
+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.srfit/blob/main/CODE_OF_CONDUCT.rst>`_.
|
|
204
|
+
|
|
205
|
+
Contact
|
|
206
|
+
-------
|
|
207
|
+
|
|
208
|
+
For more information on diffpy.srfit please visit the project `web-page <https://diffpy.github.io/>`_ or email Simon Billinge at sb2896@columbia.edu.
|
|
209
|
+
|
|
210
|
+
Acknowledgements
|
|
211
|
+
----------------
|
|
212
|
+
|
|
213
|
+
``diffpy.srfit`` is built and maintained with `scikit-package <https://scikit-package.github.io/scikit-package/>`_.
|
|
214
|
+
|
|
215
|
+
The source code in *observable.py* was derived from the 1.0 version
|
|
216
|
+
of the Caltech "Pyre" project.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
diffpy/__init__.py,sha256=g0NlovcQGCfYdfEFwiFbetcix56xe1oe9HjhZg7dQvk,550
|
|
2
|
+
diffpy/srfit/__init__.py,sha256=Rx146JJJ7C-18KkFSoZ721Al-dX4fr35U9s_7cbt3CU,1673
|
|
3
|
+
diffpy/srfit/exceptions.py,sha256=IGUFYCanV0tyvc_XKtevhNpJZUKelj40WOonh1rU8Uw,755
|
|
4
|
+
diffpy/srfit/version.py,sha256=0VFG3uR4vDc7JNM2IkbSpS9b-I-Zynsy2axnyfeY1bw,860
|
|
5
|
+
diffpy/srfit/equation/__init__.py,sha256=yaB7ZS388-kXeR8pF7EAEgws04OE-l4EiH1jn9GslMQ,1098
|
|
6
|
+
diffpy/srfit/equation/builder.py,sha256=GGyKb46aOFEwZMQpG1efKj7Fg4Y2JB16M4trXYyjfdE,24620
|
|
7
|
+
diffpy/srfit/equation/equationmod.py,sha256=Gb1mR5zYV066XEFy0JP1VhzUxm2dfGmhbbzNy3WmDvo,7223
|
|
8
|
+
diffpy/srfit/equation/literals/__init__.py,sha256=592XzuLEe9QIu8408nh1xSg6EknJZefG1ENe6_yrYGM,1958
|
|
9
|
+
diffpy/srfit/equation/literals/abcs.py,sha256=7aT-4Nip-6sH6oMm7jcTMZKtg054Ej033JFozFr-YxU,1778
|
|
10
|
+
diffpy/srfit/equation/literals/argument.py,sha256=Xe7sbzJK8WzpkAX5OrMpl-lABF75Mvx8MwiyxdZkr88,2184
|
|
11
|
+
diffpy/srfit/equation/literals/literal.py,sha256=9DFIwo2_9rqvgXHnkWINRHD6t0sPby9VhvJpOeAjBF4,2043
|
|
12
|
+
diffpy/srfit/equation/literals/operators.py,sha256=N7UhfkDMgg6EpXfubBMsCOyV24zfDkv4M5c5U4HVr4Y,9810
|
|
13
|
+
diffpy/srfit/equation/visitors/__init__.py,sha256=Fz-XX2PryRH8veJHDY6JSU9GQ6PTGOioepLUa-ct_Lk,2746
|
|
14
|
+
diffpy/srfit/equation/visitors/argfinder.py,sha256=04aLexrEOfJOVfbRP7Pa_O3M7pfEFZMZ3VZaleLeTrM,1712
|
|
15
|
+
diffpy/srfit/equation/visitors/printer.py,sha256=-sl5laDqTsp19ldHi8WGYrXDlJDTm6dxl0WtMk70PUc,3229
|
|
16
|
+
diffpy/srfit/equation/visitors/swapper.py,sha256=fhqHwxWCPM47hH1QF6dpyPH3v7r8NGR369nQS6TLKYc,4253
|
|
17
|
+
diffpy/srfit/equation/visitors/validator.py,sha256=M8KYtTOHc9-M_ui1_ZAziBa0BInumcxl5UQj2PWA-XU,3464
|
|
18
|
+
diffpy/srfit/equation/visitors/visitor.py,sha256=FShdRtgpzwg9rvnqAA3y6b90cojCOGjnZwrKUB0NbyU,1766
|
|
19
|
+
diffpy/srfit/fitbase/__init__.py,sha256=l4rRRgzRor6EGnJEXIJdbgJA3GXCEHXQE9SN-0M-VBY,1997
|
|
20
|
+
diffpy/srfit/fitbase/calculator.py,sha256=37J3P-B_fBNoPddFqjsZ4LRyFancVyV6l8yyPoGjsxI,3844
|
|
21
|
+
diffpy/srfit/fitbase/configurable.py,sha256=LzejlF2J2DdGHhNUN6-meUzJb4HqCHoVI_BRHh9Cxvk,1612
|
|
22
|
+
diffpy/srfit/fitbase/constraint.py,sha256=EP6bxZhNIsf5w6BAziRXg7msl86Szi119qqJnnc5zC4,3385
|
|
23
|
+
diffpy/srfit/fitbase/fitcontribution.py,sha256=SrUjxxVUjMROf-lwWpnLvvD0TcLtLFXkbmeenbleWJk,13547
|
|
24
|
+
diffpy/srfit/fitbase/fithook.py,sha256=jHyZpaoWQr78WSHUrUXjqeOpAqI8d5OnTX1bR7ny0Xo,6622
|
|
25
|
+
diffpy/srfit/fitbase/fitrecipe.py,sha256=4Gr6Knlw5u6r3ihZV--QJFOaBprcZeB3C4VycKFWjTU,29777
|
|
26
|
+
diffpy/srfit/fitbase/fitresults.py,sha256=fSLvVZXiF8m0s1cmUPNw9kYkS0EiOiXnEpeYOnb3cLQ,23335
|
|
27
|
+
diffpy/srfit/fitbase/parameter.py,sha256=spGMgUyx0j90xHbm7wk1lt_WP_Xb5fNJiW7zrTC6Fas,10466
|
|
28
|
+
diffpy/srfit/fitbase/parameterset.py,sha256=29la9KxO_gWNzxatB18-PN1jGAieYw9WlMyxGgL0iPg,3703
|
|
29
|
+
diffpy/srfit/fitbase/profile.py,sha256=QFyQ2nUboBqLZRPUY2_VrUSvVeRt9woCLj_Jr6xxAKc,14123
|
|
30
|
+
diffpy/srfit/fitbase/profilegenerator.py,sha256=31FagccjUlt3QLn1UNjLY49KWa_zRlYqjZp-nnDJzoQ,6078
|
|
31
|
+
diffpy/srfit/fitbase/profileparser.py,sha256=l-92qh0CJft8--K1Sh5mMFzVosnRrFD39oT5DMatrkQ,6139
|
|
32
|
+
diffpy/srfit/fitbase/recipeorganizer.py,sha256=F0tjWG6YDw-61rPf1nFSPoBimDBbBgAJZdYQHss89L4,37716
|
|
33
|
+
diffpy/srfit/fitbase/restraint.py,sha256=qcAdfG-OAME1uplrapNnBUlXbUaPF4_7agtCmFEduCA,3751
|
|
34
|
+
diffpy/srfit/fitbase/simplerecipe.py,sha256=PXpgWX2vdkssDQrN7cE5U-q1gQK7Mddc3Ap_pcT9BgA,9227
|
|
35
|
+
diffpy/srfit/fitbase/validatable.py,sha256=D319G-AXpVy6v2Ng8M7neyMkugnI98-3fMVkISv2f_s,1617
|
|
36
|
+
diffpy/srfit/interface/__init__.py,sha256=CcBkIcx3D1rYWToCtzGAK9PSti1NInKrqJ9UdUjTmvo,1028
|
|
37
|
+
diffpy/srfit/interface/interface.py,sha256=bwsPoFwkJwmyMAuwIzE-HGhO6-HmRQ-_Un-DSPkhqw4,4351
|
|
38
|
+
diffpy/srfit/pdf/__init__.py,sha256=4yS95-mpKZENjGWXOYbnWOO8nFxbdXApdEh1hGDQNCg,902
|
|
39
|
+
diffpy/srfit/pdf/basepdfgenerator.py,sha256=ublqVQcXEnIjX3MJygqUytR7mLysTmUmdo2oRmzBtxY,10258
|
|
40
|
+
diffpy/srfit/pdf/characteristicfunctions.py,sha256=xuwEtEDlPkY4YJxV45tLWIJ9MXJq5Lojvlixt4VeHrs,12172
|
|
41
|
+
diffpy/srfit/pdf/debyepdfgenerator.py,sha256=A9I7CvW15K3B2NmJ92RON9HOzZ37Tkv1GONHeF7EqXY,4829
|
|
42
|
+
diffpy/srfit/pdf/pdfcontribution.py,sha256=agB0ZBVo5fq6ih03oJysFN18Q3ha1TohvqnG2M9cRCc,11370
|
|
43
|
+
diffpy/srfit/pdf/pdfgenerator.py,sha256=K_sQvDpsj8t2361xN3f2iqeoy5ZDoT7hwvz3xSbT-r4,2820
|
|
44
|
+
diffpy/srfit/pdf/pdfparser.py,sha256=gi8y7VVjpq6pbZAE21SaPUlPWpfbbUIQZ6UITlqipHM,8161
|
|
45
|
+
diffpy/srfit/sas/__init__.py,sha256=oQHvTo_3T0cwTDVbGzKwXejfooEcBiYipzZb7DoX64M,861
|
|
46
|
+
diffpy/srfit/sas/prcalculator.py,sha256=kMCjLk8PUYP_4riTv0flQSDl6qMI-idIS3SeqyTl8Zk,4450
|
|
47
|
+
diffpy/srfit/sas/sasgenerator.py,sha256=iXd1bcsPYNSqumgYYDDcJo24odnxEYBrA0PeUQZdSiU,2136
|
|
48
|
+
diffpy/srfit/sas/sasimport.py,sha256=aLM-1JdTJJwLy09IIDR-5c0sr1qaIXWa_M49slo0gdo,2223
|
|
49
|
+
diffpy/srfit/sas/sasparameter.py,sha256=ly3ZeW4FAKg18nqN4rnPQ6Tkj3YSR57KMxr2O1GRi4k,2465
|
|
50
|
+
diffpy/srfit/sas/sasparser.py,sha256=Ysq72t3y7xqSaVd9ibDqvG7-W3rrjA8VUCDxYWaKZO0,4522
|
|
51
|
+
diffpy/srfit/sas/sasprofile.py,sha256=VxOqyxUNRySIC0bUgbtyCEv0M3SiK-Tk3dGM37E9do4,3637
|
|
52
|
+
diffpy/srfit/structure/__init__.py,sha256=EvESXMEz6l1l6qKgSUWTiigxIDqbuNnZiZGJuYhw1x4,1922
|
|
53
|
+
diffpy/srfit/structure/basestructureparset.py,sha256=hwVKBsANFoOxXyBMhNffHdA8iwYOj4sCYoBou-brHGM,2256
|
|
54
|
+
diffpy/srfit/structure/bvsrestraint.py,sha256=mMbUY2MyQQ7qEoU2lkV-FnWzWS1pLKwh-4gR9F0ifkM,3301
|
|
55
|
+
diffpy/srfit/structure/cctbxparset.py,sha256=K0XIDGGBNweQYLUAHNBo7fGsypsZ_7Os6GSs96kvJI0,8957
|
|
56
|
+
diffpy/srfit/structure/diffpyparset.py,sha256=SriuJyCR5V4BgaQYQM3r_0XZCApWqJrBumTYQL7qIC0,10191
|
|
57
|
+
diffpy/srfit/structure/objcrystparset.py,sha256=O67B2hMhWRtZ1_QYOM5x8cbNVjQw482FzUoPjYaT6QA,58757
|
|
58
|
+
diffpy/srfit/structure/sgconstraints.py,sha256=C2w8D4EXuVOP7kcbdDfr9MY_QioEQtEw6Wyicfg_jcs,24472
|
|
59
|
+
diffpy/srfit/structure/srrealparset.py,sha256=-y-FTa6P54cC2I99BBxtzxq9opXfd8XZxxzmTpxy-Gk,3274
|
|
60
|
+
diffpy/srfit/util/__init__.py,sha256=py47SijOiOBWTwW52CSuGq6xi5WZfjTb2ho8kLE2u6Q,1511
|
|
61
|
+
diffpy/srfit/util/argbinders.py,sha256=h2NKY_dyhNnMjjvoMj8gaPHOsgTVEZl5dXxtNkWBvqs,989
|
|
62
|
+
diffpy/srfit/util/inpututils.py,sha256=E0CfW0a40qTcaYRF9WKIZ_57sJA0SORpoSKZcJHufC0,1499
|
|
63
|
+
diffpy/srfit/util/nameutils.py,sha256=UjgVu87w59EExzLaUsVHo7QCvz08PMK4BZCs4Qxcb7U,1173
|
|
64
|
+
diffpy/srfit/util/observable.py,sha256=iEftIergaPoZUDz0JAZT8KfGWB0sD6lJOJBMSWKWa0I,3091
|
|
65
|
+
diffpy/srfit/util/tagmanager.py,sha256=6BCsQflVujulrp9o_JSKdFwrHs8S7mVDMxXqszK_ZGE,4315
|
|
66
|
+
diffpy/srfit/util/weakrefcallable.py,sha256=jU-2BxFc34TbpceKlLLtm9qU9Aq1iyrDrrRFha163jE,5813
|
|
67
|
+
diffpy_srfit-3.1.0.dist-info/licenses/AUTHORS.rst,sha256=pNl1FuVVdS1URb_InMrPHj0MnmVHykfu9KC0eB5N6sI,227
|
|
68
|
+
diffpy_srfit-3.1.0.dist-info/licenses/LICENSE.rst,sha256=_tb4qmAShlTxyVYPhu_aXNM0HDtX_bRmaZUqLMFL_W0,5759
|
|
69
|
+
diffpy_srfit-3.1.0.dist-info/licenses/LICENSE_DANSE.rst,sha256=ziGQj0NhKrM8UdDjDdXcnUnhd5zqcVcs7b65hS5Dbog,1886
|
|
70
|
+
diffpy_srfit-3.1.0.dist-info/METADATA,sha256=LJikoRzWcu1r0wSzQHc5LbA9rZEbJBMlonByCF_Rbcw,9038
|
|
71
|
+
diffpy_srfit-3.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
72
|
+
diffpy_srfit-3.1.0.dist-info/top_level.txt,sha256=34qLZyi9mxikpHepVDTMHrrNbe8VoOuz3ShYeiWA7KA,7
|
|
73
|
+
diffpy_srfit-3.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
OPEN SOURCE LICENSE AGREEMENT
|
|
2
|
+
=============================
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2009-2011, University of Tennessee
|
|
5
|
+
Copyright (c) 1989, 1991 Free Software Foundation, Inc.
|
|
6
|
+
Copyright (c) 2006, The Regents of the University of California through
|
|
7
|
+
Lawrence Berkeley National Laboratory
|
|
8
|
+
Copyright (c) 2014, Australian Synchrotron Research Program Inc., ("ASRP")
|
|
9
|
+
Copyright (c) 2006-2007, Board of Trustees of Michigan State University
|
|
10
|
+
Copyright (c) 2008-2012, The Trustees of Columbia University in the City
|
|
11
|
+
of New York
|
|
12
|
+
Copyright (c) 2014-2019, Brookhaven Science Associates, Brookhaven National
|
|
13
|
+
Laboratory
|
|
14
|
+
Copyright (c) 2020-2025, The Trustees of Columbia University in the City
|
|
15
|
+
of New York
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
The "DiffPy-CMI" is distributed subject to the following license conditions:
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
SOFTWARE LICENSE AGREEMENT
|
|
22
|
+
|
|
23
|
+
Software: DiffPy-CMI
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
(1) The "Software", below, refers to the aforementioned DiffPy-CMI (in either
|
|
27
|
+
source code, or binary form and accompanying documentation).
|
|
28
|
+
|
|
29
|
+
Part of the software was derived from the DANSE, ObjCryst++ (with permission),
|
|
30
|
+
PyCifRW, Python periodictable, CCTBX, and SasView open source projects, of
|
|
31
|
+
which the original Copyrights are contained in each individual file.
|
|
32
|
+
|
|
33
|
+
Each licensee is addressed as "you" or "Licensee."
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
(2) The copyright holders shown above and their third-party Licensors hereby
|
|
37
|
+
grant licensee a royalty-free nonexclusive license, subject to the limitations
|
|
38
|
+
stated herein and U.S. Government license rights.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
(3) You may modify and make a copy or copies of the software for use within
|
|
42
|
+
your organization, if you meet the following conditions:
|
|
43
|
+
|
|
44
|
+
(a) Copies in source code must include the copyright notice and this
|
|
45
|
+
software license agreement.
|
|
46
|
+
|
|
47
|
+
(b) Copies in binary form must include the copyright notice and this
|
|
48
|
+
Software License Agreement in the documentation and/or other materials
|
|
49
|
+
provided with the copy.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
(4) You may modify a copy or copies of the Software or any portion of it, thus
|
|
53
|
+
forming a work based on the Software, and distribute copies of such work
|
|
54
|
+
outside your organization, if you meet all of the following conditions:
|
|
55
|
+
|
|
56
|
+
(a) Copies in source code must include the copyright notice and this
|
|
57
|
+
Software License Agreement;
|
|
58
|
+
|
|
59
|
+
(b) Copies in binary form must include the copyright notice and this
|
|
60
|
+
Software License Agreement in the documentation and/or other materials
|
|
61
|
+
provided with the copy;
|
|
62
|
+
|
|
63
|
+
(c) Modified copies and works based on the Software must carry prominent
|
|
64
|
+
notices stating that you changed specified portions of the Software.
|
|
65
|
+
|
|
66
|
+
(d) Neither the name of Brookhaven Science Associates or Brookhaven
|
|
67
|
+
National Laboratory nor the names of its contributors may be used to
|
|
68
|
+
endorse or promote products derived from this software without specific
|
|
69
|
+
written permission.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
(5) Portions of the Software resulted from work developed under a U.S.
|
|
73
|
+
Government contract and are subject to the following license:
|
|
74
|
+
The Government is granted for itself and others acting on its behalf a
|
|
75
|
+
paid-up, nonexclusive, irrevocable worldwide license in this computer software
|
|
76
|
+
to reproduce, prepare derivative works, and perform publicly and display
|
|
77
|
+
publicly.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
(6) WARRANTY DISCLAIMER. THE SOFTWARE IS SUPPLIED "AS IS" WITHOUT
|
|
81
|
+
WARRANTY OF ANY KIND. THE COPYRIGHT HOLDERS, THEIR THIRD PARTY
|
|
82
|
+
LICENSORS, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, AND
|
|
83
|
+
THEIR EMPLOYEES: (1) DISCLAIM ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
|
|
84
|
+
BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
85
|
+
PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT, (2) DO NOT ASSUME ANY LEGAL
|
|
86
|
+
LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF
|
|
87
|
+
THE SOFTWARE, (3) DO NOT REPRESENT THAT USE OF THE SOFTWARE WOULD NOT INFRINGE
|
|
88
|
+
PRIVATELY OWNED RIGHTS, (4) DO NOT WARRANT THAT THE SOFTWARE WILL FUNCTION
|
|
89
|
+
UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL BE CORRECTED.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
(7) LIMITATION OF LIABILITY. IN NO EVENT WILL THE COPYRIGHT HOLDERS, THEIR
|
|
93
|
+
THIRD PARTY LICENSORS, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF
|
|
94
|
+
ENERGY, OR THEIR EMPLOYEES: BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
|
|
95
|
+
CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF ANY KIND OR NATURE, INCLUDING
|
|
96
|
+
BUT NOT LIMITED TO LOSS OF PROFITS OR LOSS OF DATA, FOR ANY REASON WHATSOEVER,
|
|
97
|
+
WHETHER SUCH LIABILITY IS ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING
|
|
98
|
+
NEGLIGENCE OR STRICT LIABILITY), OR OTHERWISE, EVEN IF ANY OF SAID PARTIES HAS
|
|
99
|
+
BEEN WARNED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGES.
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
Brookhaven National Laboratory Notice
|
|
103
|
+
=====================================
|
|
104
|
+
|
|
105
|
+
Acknowledgment of sponsorship
|
|
106
|
+
-----------------------------
|
|
107
|
+
|
|
108
|
+
This software was produced by the Brookhaven National Laboratory, under
|
|
109
|
+
Contract DE-AC02-98CH10886 with the Department of Energy.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
Government disclaimer of liability
|
|
113
|
+
----------------------------------
|
|
114
|
+
|
|
115
|
+
Neither the United States nor the United States Department of Energy, nor
|
|
116
|
+
any of their employees, makes any warranty, express or implied, or assumes
|
|
117
|
+
any legal liability or responsibility for the accuracy, completeness, or
|
|
118
|
+
usefulness of any data, apparatus, product, or process disclosed, or
|
|
119
|
+
represents that its use would not infringe privately owned rights.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
Brookhaven disclaimer of liability
|
|
123
|
+
----------------------------------
|
|
124
|
+
|
|
125
|
+
Brookhaven National Laboratory makes no representations or warranties,
|
|
126
|
+
express or implied, nor assumes any liability for the use of this software.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
Maintenance of notice
|
|
130
|
+
---------------------
|
|
131
|
+
|
|
132
|
+
In the interest of clarity regarding the origin and status of this
|
|
133
|
+
software, Brookhaven National Laboratory requests that any recipient of it
|
|
134
|
+
maintain this notice affixed to any distribution by the recipient that
|
|
135
|
+
contains a copy or derivative of this software.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
END OF LICENSE
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
This program is part of the DiffPy and DANSE open-source projects at Columbia
|
|
2
|
+
University and is available subject to the conditions and terms laid out below.
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2008-2011, The Trustees of Columbia University in
|
|
5
|
+
the City of New York. All rights reserved.
|
|
6
|
+
|
|
7
|
+
For more information please visit the diffpy web-page at
|
|
8
|
+
http://www.diffpy.org
|
|
9
|
+
or email Prof. Simon Billinge at sb2896@columbia.edu.
|
|
10
|
+
|
|
11
|
+
Redistribution and use in source and binary forms, with or without
|
|
12
|
+
modification, are permitted provided that the following conditions are met:
|
|
13
|
+
|
|
14
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
15
|
+
list of conditions and the following disclaimer.
|
|
16
|
+
|
|
17
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
18
|
+
this list of conditions and the following disclaimer in the documentation
|
|
19
|
+
and/or other materials provided with the distribution.
|
|
20
|
+
|
|
21
|
+
* Neither the names of COLUMBIA UNIVERSITY, MICHIGAN STATE UNIVERSITY nor the
|
|
22
|
+
names of their contributors may be used to endorse or promote products
|
|
23
|
+
derived from this software without specific prior written permission.
|
|
24
|
+
|
|
25
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
26
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
27
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
28
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
29
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
30
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
31
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
32
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
33
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
34
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
diffpy
|