Update on line tracing routine
Aim :
Modifications on the routine tofu/geom/plot_line_on_det_tracing() have been made in order to integrate multiple lines tracing at the same time, in order to simulate a 2D spectra (w/o line intensities, only positions).
Main changes:
- Wavelengths dictionnary are available by default, containing the main lines of interest for ArXVII spectra measured w/ the XICS spectrometer on WEST. Are available:
-
lamb = 'ArXVII'w/ArXVII (w,x,y,z),ArXVI (q,r,a,k,j),ArXV (n=3),WXLIVandWXLIIIlines -
lamb = 'ArXVII-woW'w/ArXVII (w,x,y,z),ArXVI (q,r,a,k,j)andArXV (n=3)lines -
lamb = 'ArXVII-wxyz'w/ArXVII (w,x,y,z)lines - By default,
lamb = Nonetake the wavelength of reference of the crystal used
- Possibility to choose the number of points characterizing a line in the vertical scale by the argument
phi(by default to 100) - Possibility to change the x- and y-scale for pixels coordinates from the origin at the center of the camera to an origin at the left low corner ->
mode = 'raw det' - Computation of a simulated 2D spectra from the lines traced + the traces of the Rocking Curve computed for the specified wavelength ->
merge_rc_data = True+plot_simu_image = True
Examples:
Hello @adriendaros! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
- In the file
tofu/geom/_core_optics.py:
Line 2510:80: E501 line too long (80 > 79 characters) Line 2573:80: E501 line too long (80 > 79 characters) Line 2699:13: E265 block comment should start with '# ' Line 3307:39: E262 inline comment should start with '# '
- In the file
tofu/geom/_plot_optics.py:
Line 1078:80: E501 line too long (88 > 79 characters) Line 1087:80: E501 line too long (83 > 79 characters) Line 1124:80: E501 line too long (81 > 79 characters)
- In the file
tofu/spectro/_rockingcurve.py:
Line 1511:80: E501 line too long (85 > 79 characters)