Révision 2 ase/atoms.py
atoms.py (revision 2) | ||
---|---|---|
285 | 285 |
"""Add new array. |
286 | 286 |
|
287 | 287 |
If *shape* is not *None*, the shape of *a* will be checked.""" |
288 |
|
|
289 | 288 |
if dtype is not None: |
290 | 289 |
a = np.array(a, dtype) |
291 | 290 |
else: |
... | ... | |
311 | 310 |
|
312 | 311 |
Returns a copy unless the optional argument copy is false. |
313 | 312 |
""" |
313 |
|
|
314 | 314 |
if copy: |
315 | 315 |
return self.arrays[name].copy() |
316 | 316 |
else: |
Formats disponibles : Unified diff