code stringlengths 3 6.57k |
|---|
np.nanmin(lamb) |
np.nanmax(phi) |
np.nanmin(phi) |
np.mean(lamb) |
np.mean(phi) |
plane
(dist_min, dist_max, ndist) |
detector
(from "inputs_temp/XICS_allshots_C34.py" l.649) |
dict(np.load('det37_CTVD_incC4_New.npz', allow_pickle=True) |
any([l00 is not None for l00 in l0]) |
Exception(msg) |
get_det_approx() |
get_det_approx(tangent=False) |
np.linalg.norm(det1['nout'] * np.linalg.norm(det2['nout']) |
np.arccos(cos_angle_nout) |
np.linspace(dist_min, dist_max, int(ndist) |
np.linspace(di_min, di_max, int(ndi) |
np.full((di.size, ddist.size) |
np.zeros((di.size, ddist.size) |
range(ddist.size) |
range(di.size) |
ljust(60) |
print(msg, end=end, flush=True) |
float(dpsi0) |
np.nanmean(error_lambda_temp) |
translation (ddist, di, dj) |
angular
(dtheta, dpsi, tilt) |
format(det) |
Exception(msg) |
self._checkformat_det(det=det_ref) |
np.sum(delta * (-det_approx['nout']) |
np.sum(delta * det_approx['ei']) |
np.sum(delta * det_approx['ej']) |
_comp_optics.get_det_abs_from_rel() |
np.sum(det_approx['ej'] * det_ref['nout']) |
np.sum(det_approx['nout'] * det_ref['nout']) |
np.sum(det_approx['ei'] * det_ref['nout']) |
np.sqrt(costheta_cospsi**2 + costheta_sinpsi**2) |
np.arctan2(sindtheta, costheta) |
np.cos(dpsi) |
np.sin(dpsi) |
np.cross(det_ref['nout'], det_ei2) |
np.sum(det_ref['ei']*det_ei2) |
np.sum(det_ref['ei']*det_ej2) |
np.arctan2(sintilt, costilt) |
return (npts, ndtheta) |
return (npts,) |
self._checkformat_det(det) |
self.get_lamb_from_bragg(bragg=bragg, n=n) |
pts (3, npts) |
interval (default: 100) |
interval (default: 20) |
optionally (return_xixj=True and det provided as dict) |
np.nanmin(lamb, axis=1) |
np.nanmax(lamb, axis=1) |
np.linspace(0, 1, nlamb) |
not (isinstance(klamb, np.ndarray) |
Exception(msg) |
_comp_optics._checkformat_pts(pts) |
self._checkformat_bragglamb(bragg=bragg, lamb=lamb, n=n) |
indnan (nlamb, npts, ndtheta) |
updated (non-paralellism) |
np.repeat(bragg[:, None], npts, axis=-1) |
np.repeat(bragg[:, None], dtheta.shape[1], axis=1) |
np.allclose(bragg, bragg2, equal_nan=True) |
plt.figure() |
plt.plot(bragg, bragg2, '.') |
and (dtheta, psi) |
format(use_non_parallelism) |
format(bragg.shape) |
format(bragg2.shape) |
Exception(msg) |
these (or a list) |
isinstance(plot, str) |
plot.split('+') |
all([ss in ['det', '2d', '3d'] for ss in plot]) |
_comp_optics._checkformat_pts(pts) |
self._checkformat_det(det) |
reflexion (phi -> phi + np.pi) |
self.get_local_noute1e2(dtheta, psi) |
format(lreturn) |
Exception(msg) |
_comp_optics._checkformat_xixj(xi, xj) |
np.unique(xii) |
np.unique(xjj) |
np.linspace(-1, 1, npaxis) |
np.array([magaxis[0]*np.cos(thetaax) |
np.sin(thetaax) |
np.full((npaxis,) |
self.calc_braggphi_from_pts(pts) |
self.get_lamb_from_bragg(braggax) |
np.arctan2(np.sin(phiax-np.pi) |
np.cos(phiax-np.pi) |
np.argsort(lambax) |
np.sort(np.atleast_1d(xjcut) |
ravel() |
np.tile(xi, (xjcut.size, 1) |
np.repeat(xjcut[:, None], nxi, axis=1) |
np.abs(xj-xjc) |
nonzero() |
np.array([np.nanmean(data[ixj, :], axis=0) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.