File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed
Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1+ **Added: **
2+
3+ * No news added: add deprecation message for `assignUniqueLabels `
4+
5+ **Changed: **
6+
7+ * <news item>
8+
9+ **Deprecated: **
10+
11+ * <news item>
12+
13+ **Removed: **
14+
15+ * <news item>
16+
17+ **Fixed: **
18+
19+ * <news item>
20+
21+ **Security: **
22+
23+ * <news item>
Original file line number Diff line number Diff line change 2121
2222from diffpy .structure .atom import Atom
2323from diffpy .structure .lattice import Lattice
24- from diffpy .structure .utils import _link_atom_attribute , atomBareSymbol , isiterable
24+ from diffpy .structure .utils import _link_atom_attribute , atom_bare_symbol , isiterable
2525from diffpy .utils ._deprecator import build_deprecation_message , deprecated
2626
2727# ----------------------------------------------------------------------------
2828
2929base = "diffpy.structure.Structure"
3030removal_version = "4.0.0"
31+ assignUniqueLabels_deprecation_msg = build_deprecation_message (
32+ base ,
33+ "assignUniqueLabels" ,
34+ "assign_unique_labels" ,
35+ removal_version ,
36+ )
3137addNewAtom_deprecation_msg = build_deprecation_message (
3238 base ,
3339 "addNewAtom" ,
@@ -242,7 +248,7 @@ def assign_unique_labels(self):
242248 for a in self :
243249 if a in islabeled :
244250 continue
245- baresmbl = atomBareSymbol (a .element )
251+ baresmbl = atom_bare_symbol (a .element )
246252 elnum [baresmbl ] = elnum .get (baresmbl , 0 ) + 1
247253 a .label = baresmbl + str (elnum [baresmbl ])
248254 islabeled .add (a )
You can’t perform that action at this time.
0 commit comments