File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 49
49
See the modules' documentation for specific changes.
50
50
"""
51
51
52
+ import warnings
52
53
# Let's put this on the package level
53
54
from pyobjcryst .general import ObjCrystException
54
55
84
85
def loadCrystal (filename ):
85
86
"""Load pyobjcryst Crystal object from a CIF file.
86
87
87
- filename -- CIF file to be loaded
88
+ :param filename: CIF file to be loaded.
88
89
89
- Return a new Crystal object.
90
+ :return: a new Crystal object.
90
91
91
- See pyobjcryst.crystal.CreateCrystalFromCIF for additional
92
- options for constructing Crystal object from CIF data.
92
+ ..deprecated:: 2.2.4
93
+ Use pyobjcryst.crystal.create_crystal_from_cif() instead,
94
+ which has more options when importing a CIF, including
95
+ using an URL instead of a file.
93
96
"""
97
+ warnings .warn ("loadCrystal is deprecated. Please use "
98
+ "pyobjcryst.crystal.create_crystal_from_cif() instead" ,
99
+ DeprecationWarning )
94
100
from pyobjcryst .crystal import CreateCrystalFromCIF
95
101
with open (filename , 'rb' ) as fp :
96
102
rv = CreateCrystalFromCIF (fp )
You can’t perform that action at this time.
0 commit comments