We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c7f122 commit 9bc7cfcCopy full SHA for 9bc7cfc
src/diffpy/Structure/atom.py
@@ -193,7 +193,7 @@ def _set_xyz_cartn(self, value):
193
if not self.lattice:
194
self.xyz[:] = value
195
else:
196
- self.xyz = self.lattice.fractional(value)
+ self.xyz[:] = self.lattice.fractional(value)
197
return
198
199
xyz_cartn = property(_get_xyz_cartn, _set_xyz_cartn, doc =
@@ -227,7 +227,7 @@ def _get_U(self):
227
# for isotropic displacements assume first element
228
# to be equal to the displacement value
229
lat = self.lattice or cartesian_lattice
230
- self._U = self._U[0, 0] * lat.isotropicunit
+ numpy.multiply(self._U[0, 0], lat.isotropicunit, out=self._U)
231
return self._U
232
233
def _set_U(self, value):
0 commit comments