Skip to content

Commit dd620e8

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent a67e6ac commit dd620e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/diffpy/structure/structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def _get_composition(self):
713713
"""Character array of `Atom` types. Assignment updates
714714
the element attribute of the respective `Atoms`.
715715
Set the maximum length of the element string to 5 characters.""",
716-
toarray=lambda items: numpy.char.array(items, itemsize=5)
716+
toarray=lambda items: numpy.char.array(items, itemsize=5),
717717
)
718718

719719
xyz = _linkAtomAttribute(
@@ -745,7 +745,7 @@ def _get_composition(self):
745745
"""Character array of `Atom` names. Assignment updates
746746
the label attribute of all `Atoms`.
747747
Set the maximum length of the label string to 5 characters.""",
748-
toarray=lambda items: numpy.char.array(items, itemsize=5)
748+
toarray=lambda items: numpy.char.array(items, itemsize=5),
749749
)
750750

751751
occupancy = _linkAtomAttribute(

src/diffpy/structure/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _linkAtomAttribute(attrname, doc, toarray=numpy.array):
9292
from operator import setitem
9393

9494
_all = slice(None)
95-
95+
9696
def fget(self):
9797
va = toarray([getattr(a, attrname) for a in self])
9898
return va

0 commit comments

Comments
 (0)