code stringlengths 3 6.57k |
|---|
of (x, y, z) |
np.ndarray
(3,) |
of (x, y, z) |
np.darray
(2, N) |
self._checkformat_bragglamb(bragg=bragg, lamb=lamb, n=n) |
np.all(np.isnan(bragg) |
Exception(msg) |
any(lc) |
all(lc) |
wavelength ({}) |
format(lamb0) |
wavelength ({}) |
format(lamb1) |
distance (m) |
format(dist01) |
Exception(msg) |
all(lc) |
any(lc) |
join(['rcurve'] + 'summit') |
Exception(msg) |
any(lc) |
Exception(msg) |
in (nout, e1, e2) |
in (x, y, z) |
self.plot() |
np.repeat(det_cent[:,None], 3, axis=1) |
np.vstack((det_nout, det_ei, det_ej) |
plot(np.hypot(det_cent[0], det_cent[1]) |
plot(det_cent[0], det_cent[1], 'xb') |
quiver(np.hypot(p0[0, :], p0[1, :]) |
np.hypot(vv[0, :], vv[1, :]) |
_checkformat_det(self, det=None) |
isinstance(det, dict) |
self.get_detector_ideal() |
d (x,y,z) |
format(det) |
any(lc) |
Exception(msg) |
self.get_detector_ideal(lamb=self._dbragg['lambref']) |
isinstance(det, dict) |
all([(kk in det.keys() |
hasattr(det[kk], '__iter__') |
np.atleast_1d(det[kk]) |
np.any(np.isnan(det[kk]) |
Exception(msg) |
np.atleast_1d(det[k0]) |
ravel() |
Return (vout, ve1, ve2) |
by (dtheta, psi) |
dtheta (dtheta=0 default) |
center
(for the diffracted beam) |
Args (dtheta, psi) |
vectors
(nout, e1, e2) |
np.cross(e1, e2) |
shape (3, psi.shape) |
cartesian (X, Y, Z) |
range(vout.ndim - 1) |
cent.reshape(reshape) |
The (O, ez) |
to (O, ex, ey) |
with (O, ez) |
np.ndarray
(3,) |
local (x,y,z) |
self._checkformat_bragglamb(bragg=bragg, lamb=lamb, n=n) |
np.atleast_1d(phi) |
self._checkformat_det(det) |
det.get('outline') |
_XJ
(from "inputs_temp/XICS_allshots_C34.py" l.649) |
np.atleast_1d(lamb) |
ravel() |
det.get('outline') |
Exception(msg) |
np.nanmin(phi) |
np.nanmax(phi) |
self._checkformat_bragglamb(lamb=lamb, n=n) |
np.linspace(phimin, phimax, nphi) |
np.full((nlamb, nphi) |
np.full((nlamb, nphi) |
range(nlamb) |
np.full(phi.shape, bragg[ll]) |
raytracing (multiple positions on crystal) |
np.linspace(-1., 1., 15) |
np.linspace(-1., 1., 15) |
np.meshgrid(lpsi, ldtheta) |
lpsi.ravel() |
ldtheta.ravel() |
np.full((nlamb, npsi*nphi) |
np.full((nlamb, npsi*nphi) |
range(nlamb) |
range(npsi) |
np.arange(ii*nphi, (ii+1) |
error (scattering) |
directionality (phi) |
len() |
_comp_optics._checkformat_xixj(xi, xj) |
np.min(lamb) |
np.max(lamb) |
np.nanmax(np.abs(lamb[..., None] - lamberr) |
np.nanmax(np.abs(phi[..., None] - phierr) |
np.nanmax(lamb) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.