|
12 | 12 | # See LICENSE_DANSE.txt for license information. |
13 | 13 | # |
14 | 14 | ############################################################################## |
15 | | - |
16 | | -""" |
17 | | -Provide class Atom for managing properties of an atom in structure model. |
18 | | -""" |
| 15 | +"""Provide class Atom for managing properties of an atom in structure |
| 16 | +model.""" |
19 | 17 |
|
20 | 18 | import numpy |
21 | 19 |
|
@@ -176,7 +174,8 @@ def msdLat(self, vl): |
176 | 174 | return msd |
177 | 175 |
|
178 | 176 | def msdCart(self, vc): |
179 | | - """Calculate mean square displacement along the Cartesian vector. |
| 177 | + """Calculate mean square displacement along the Cartesian |
| 178 | + vector. |
180 | 179 |
|
181 | 180 | Parameters |
182 | 181 | ---------- |
@@ -252,7 +251,8 @@ def __copy__(self, target=None): |
252 | 251 |
|
253 | 252 | @property |
254 | 253 | def xyz_cartn(self): |
255 | | - """numpy.ndarray: Atom position in absolute Cartesian coordinates. |
| 254 | + """numpy.ndarray: Atom position in absolute Cartesian |
| 255 | + coordinates. |
256 | 256 |
|
257 | 257 | This is computed from fractional coordinates `xyz` and the |
258 | 258 | current `lattice` setup. Assignment to *xyz_cartn* or |
@@ -301,7 +301,8 @@ def anisotropy(self, value): |
301 | 301 |
|
302 | 302 | @property |
303 | 303 | def U(self): |
304 | | - """numpy.ndarray : The 3x3 matrix of anisotropic atomic displacements. |
| 304 | + """numpy.ndarray : The 3x3 matrix of anisotropic atomic |
| 305 | + displacements. |
305 | 306 |
|
306 | 307 | For isotropic displacements (when `anisotropy` is ``False``) |
307 | 308 | assignment to *U* uses only the first ``Unew[0, 0]`` element |
@@ -537,7 +538,8 @@ def __setitem__(self, idx, value): |
537 | 538 | return |
538 | 539 |
|
539 | 540 | def __array_wrap__(self, out_arr, context=None, return_scalar=None): |
540 | | - """Ensure math operations on this type yield standard numpy array.""" |
| 541 | + """Ensure math operations on this type yield standard numpy |
| 542 | + array.""" |
541 | 543 | return out_arr.view(numpy.ndarray) |
542 | 544 |
|
543 | 545 |
|
|
0 commit comments