File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/diffpy/utils/scattering_objects Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 11import datetime
22from copy import deepcopy
3-
3+ import warnings
44import numpy as np
55
66from diffpy .utils .tools import get_package_info
1818
1919
2020class Diffraction_object :
21+ """FIXME: Add class docstring.
22+
23+ .. deprecated:: 3.5.1
24+ `Diffraction_object` will be removed in diffpy.utils 3.6.0, it is replaced by
25+ `DiffractionObject` to follow the class naming convention.
26+ """
27+ warnings .warn (
28+ "Diffraction_object` will be removed in diffpy.utils 3.6.0, it is replaced by "
29+ "DiffractionObject` to follow the class naming convention." ,
30+ DeprecationWarning ,
31+ stacklevel = 2 ,
32+ )
2133 def __init__ (self , name = "" , wavelength = None ):
2234 self .name = name
2335 self .wavelength = wavelength
You can’t perform that action at this time.
0 commit comments