tsadar.utils.data_handling.data_visualizer#

Functions

launch_data_visualizer(elecData, ionData, ...)

Plots the raw data with solid lines indicating the beginning and ending of the analysis and dashed lines indicating the portions of the spectrum that are included in the analysis.

tsadar.utils.data_handling.data_visualizer.launch_data_visualizer(elecData, ionData, all_data, all_axes, config)Source#

Plots the raw data with solid lines indicating the beginning and ending of the analysis and dashed lines indicating the portions of the spectrum that are included in the analysis.

Parameters:
  • elecData – Electron data to be plotted, if electron data is not loaded a dummy can be placed here

  • ionData – Ion data to be plotted, if ion data is not loaded a dummy can be placed here

  • all_axes – A dictionary containing the axes for the data being plotted. If electron data is plotted ‘epw_x’ and

  • fields. ('epw_y' are required fields. If ion data is plotted 'iaw_x' and 'iaw_y' are required)

  • config – Dictionary constructed from input deck

Returns:

None – The function saves the plots to a temporary directory and logs them to MLflow.

Notes

  • The function uses a temporary directory to save the plots, which are then logged to MLflow.

  • The function handles different types of lineouts based on the configuration provided.

  • The function uses matplotlib for plotting and color mapping.

  • The function assumes that the data is in a format compatible with numpy and matplotlib.