forked from diffpy/diffpy.srreal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpeakprofile.py
More file actions
54 lines (43 loc) · 1.55 KB
/
peakprofile.py
File metadata and controls
54 lines (43 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
##############################################################################
#
# diffpy.srreal by DANSE Diffraction group
# Simon J. L. Billinge
# (c) 2010 The Trustees of Columbia University
# in the City of New York. All rights reserved.
#
# File coded by: Pavol Juhas
#
# See AUTHORS.txt for a list of people who contributed.
# See LICENSE_DANSE.txt for license information.
#
##############################################################################
"""
Class for configuring PDF profile function:
PeakProfile
GaussianProfile, CroppedGaussianProfile
"""
# exported items
__all__ = ["PeakProfile", "GaussianProfile", "CroppedGaussianProfile"]
from diffpy.srreal import _final_imports
from diffpy.srreal.srreal_ext import (
CroppedGaussianProfile,
GaussianProfile,
PeakProfile,
)
from diffpy.srreal.wraputils import propertyFromExtDoubleAttr
# class PeakProfile ----------------------------------------------------------
# disable dictionary pickling for wrapped C++ classes
GaussianProfile.__getstate_manages_dict__ = None
CroppedGaussianProfile.__getstate_manages_dict__ = None
# add attribute wrappers for PeakProfile and derived classes
PeakProfile.peakprecision = propertyFromExtDoubleAttr(
"peakprecision",
"""Profile amplitude relative to the peak maximum for evaluating peak
bounds xboundlo and xboundhi. [3.33e-6 unitless]
""",
)
# Import delayed tweaks of the extension classes.
_final_imports.import_now()
del _final_imports
# End of file