tofu icon indicating copy to clipboard operation
tofu copied to clipboard

Update on line tracing routine

Open adriendaros opened this issue 2 years ago • 1 comments

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:
  1. lamb = 'ArXVII' w/ ArXVII (w,x,y,z), ArXVI (q,r,a,k,j), ArXV (n=3), WXLIV and WXLIII lines
  2. lamb = 'ArXVII-woW' w/ ArXVII (w,x,y,z), ArXVI (q,r,a,k,j) and ArXV (n=3) lines
  3. lamb = 'ArXVII-wxyz' w/ ArXVII (w,x,y,z) lines
  4. By default, lamb = None take 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:

image image image


image image image


image image image image

adriendaros avatar Nov 08 '23 10:11 adriendaros

Hello @adriendaros! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

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 '# '

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)

Line 1511:80: E501 line too long (85 > 79 characters)

Comment last updated at 2024-01-17 08:41:59 UTC

pep8speaks avatar Nov 08 '23 10:11 pep8speaks