Closed Didou09 closed 2 years ago
@adriendaros , the commands you're looking for are:
In [44]: det = dict(np.load('inputs_temp/det37_CTVD_incC4_New.npz', allow_pickle=True))
In [45]: cryst = tf.load('inputs_temp/TFG_CrystalBragg_ExpWEST_DgXICS_ArXVII_sh00000_Vers1.4.9-315-gc93fa7a3.npz')
Loaded from:
/home/didier/Documents/Projects/tofu/inputs_temp/TFG_CrystalBragg_ExpWEST_DgXICS_ArXVII_sh00000_Vers1.4.9-315-gc93fa7a3.npz
In [46]: pts0, vect = cryst.get_rays_from_cryst(phi=np.pi, returnas='(pts, vect)')
In [47]: pts = pts0 + np.r_[1, 3,5, 7][None, :]*vect[:, :, 0]
In [48]: cryst.plot(pts=pts, det=det)
Objective:
CrystalBragg
class handles spherical crystals, but it does not handle non-parallelism.Necessary steps:
CrystalBragg
class.(e1, e2)
.