code stringlengths 3 6.57k |
|---|
split(self, direction=None, nb=None) |
Exception(msg) |
not (isinstance(nb, int) |
Exception(msg) |
np.linspace(-1, 1, nb+1) |
np.zeros((1, nb) |
np.zeros((1, nb) |
np.cos(dtheta) |
np.cos(psi) |
np.sin(psi) |
np.sin(dtheta) |
np.sin(psi) |
np.cos(psi) |
self._dmat.items() |
dict(self._dbragg) |
range(nb) |
pts (e.g.: in the plasma) |
horizontal (from top) |
outline (edges of crystal) |
summit (geometrical center of the crystal) |
center (of the sphere of curvature) |
circle (plotted in e1 direction) |
plot() |
plot() |
plot() |
plot() |
quiver() |
plot() |
plot() |
quiver() |
in (ei, ej) |
plt.legend() |
vectors (direct orthonormal basis) |
self._checkformat_det(det) |
np.sum(lc) |
Exception(msg) |
isinstance(pts, np.ndarray) |
a (3, npts) |
Exception(msg) |
axis (at lamb with tolerance) |
axis_npts (def: 1000) |
np.atleast_1d(axis_r) |
np.atleast_1d(axis_z) |
self._checkformat_bragglamb(bragg=bragg, lamb=lamb, n=n) |
self.get_lamb_from_bragg(bragg=bragg, n=n) |
np.full(shaperz, np.nan) |
np.linspace(-1, 1, axis_npts) |
theta_ax.reshape(shapetheta) |
np.cos(theta_ax) |
ravel() |
np.sin(theta_ax) |
ravel() |
np.repeat(axis_z[..., None], axis_npts, axis=-1) |
ravel() |
np.array([axis_x, axis_y, axis_z]) |
self.get_lamb_from_bragg(bragg_ax_full) |
tuple(np.r_[shaperz, axis_npts]) |
lamb_ax_full.reshape(shape_full) |
phi_ax_full.reshape(shape_full) |
np.abs(lamb_ax_full - lamb) |
np.any(dlamb <= lamb_tol, axis=-1) |
np.nanargmin(dlamb[indok, :], axis=-1) |
tuple([iii for iii in indok.nonzero() |
get_bragg_from_lamb(self, lamb=None, n=None) |
dsin(bragg) |
self.set_dmat({'d':...}) |
Exception(msg) |
np.atleast_1d(lamb) |
get_lamb_from_bragg(self, bragg=None, n=None) |
dsin(bragg) |
self.set_dmat({'d':...}) |
Exception(msg) |
_comp_optics.get_lamb_from_bragg(np.atleast_1d(bragg) |
update_non_parallelism(self, alpha=None, beta=None) |
focus (m) |
focus (m) |
focus (m) |
focus (m) |
get_rowland_dist_from_lambbragg(self, bragg=None, lamb=None, n=None) |
self._checkformat_bragglamb(bragg=bragg, lamb=lamb, n=n) |
np.all(np.isnan(bragg) |
Exception(msg) |
angle (in rad) |
wavelength (in m) |
lamb (m) |
bragg (rad) |
lines
(lamb0 and lamb1) |
distance (dist01, in m) |
offset (translation) |
via (ddist, di, dj) |
via (dtheta, dpsi, tilt) |
and (nout, ei, ej) |
np.cross(ei, ej) |
Vectors (ei, ej) |
d (X, Y, Z in the tokamak's frame) |
np.ndarray
(3,) |
of (x, y, z) |
np.ndarray
(3,) |
of (x, y, z) |
np.ndarray
(3,) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.