code
stringlengths
3
6.57k
ar1.append(str(self._dmisc['color'])
self._dgeom.items()
dgeom.keys()
self.set_dgeom(dgeom=dgeom)
self._dmat.items()
self._get_keys_dmat()
self.set_dgeom(dgeom=dgeom0)
str(err)
Exception(msg)
_rotate_or_translate(self, func, **kwdargs)
np.array([self._dgeom['summit'], self._dgeom['center']])
func(pts=pts, vect=vect, **kwdargs)
func(pts=pts, **kwdargs)
np.arctan2(*self.summit[1::-1])
phi ({})
format(phi)
warnings.warn(msg)
np.arctan2(*self.summit[1::-1])
phi ({})
format(phi)
warnings.warn(msg)
set_move(self, move=None, param=None, **kwdargs)
movement (rotations or translations)
self.move()
parameter (angle / distance)
self._checkformat_set_move(move, param, kwdargs)
isinstance(kwdargs, dict)
len(kwdargs)
move(self, param)
self.set_move()
self._move(param, dictname='_dgeom')
get_rockingcurve_func(self, lamb=None, n=None)
wavelength (lamb)
angle (in rad)
format(lamb)
Exception(msg)
self._checkformat_bragglamb(lamb=lamb, n=n)
min()
max()
format(lmin, lmax)
Exception(msg)
self._checkformat_bragglamb(lamb=lamb, n=n)
func(angle, lamb=lamb, bragg=bragg, drock=drock)
self.get_rockingcurve_func(lamb=lamb, n=n)
sample_outline_plot(self, use_non_parallelism=None, res=None)
_checkformat_bragglamb(self, bragg=None, lamb=None, n=None)
any(lc)
np.sum(lc)
np.atleast_1d(lamb)
np.atleast_1d(bragg)
_checkformat_get_Rays_from(self, phi=None, bragg=None)
np.atleast_1d(bragg)
np.atleast_1d(phi)
max(phi.size, bragg.size)
np.full(bragg.shape, phi[0])
np.full(phi.shape, bragg[0])
str(phi.shape)
str(bragg.shape)
Exception(msg)
self._checkformat_bragglamb(bragg=bragg, lamb=lamb)
self._checkformat_get_Rays_from(phi=phi, bragg=bragg)
point (D)
vectors (us)
np.sin(bragg)
np.cos(bragg)
np.cos(phi)
np.sin(phi)
point (on the crystal surface)
envelop (contour)
self.get_local_noute1e2()
shape (3, psi.shape)
crystal (only the summit by default)
represent (X, Y, Z)
the (xi, xj)
detector (det)
Exception(msg)
self._checkformat_det(det)
length (minimum between conf, det, length)
np.full(vshape[1:], np.nan)
len(vshape)
len(pts_start.shape)
np.repeat(pts_start[..., None], vshape[-1], axis=-1)
vect.reshape((3, -1)
Exception(msg)
len(vshape)
pts_start.reshape((3, -1)
vect.reshape((3, -1)
reshape(vshape[1:])
tuple([3] + [1 for ii in range(vect.ndim-1)
reshape(shape)
reshape(shape)
np.sum((cent-pts_start[..., None])
np.sum(vect*nout, axis=0)
np.sum((cent-pts_start)
np.sum(vect*nout, axis=0)
reshape(shape)
reshape(shape)
np.sum((pts_end - cent)
np.sum((pts_end - cent)
np.nanmin([vv for vv in dk.values()