BGlib.be.translators.df_utils.be_utils.generatePlotGroups

BGlib.be.translators.df_utils.be_utils.generatePlotGroups(h5_main, mean_resp, folder_path, basename, max_resp=[], min_resp=[], max_mem_mb=1024, spec_label='None', show_plots=True, save_plots=True, do_histogram=False, debug=False)[source]

Generates the spatially averaged datasets for the given raw dataset. The averaged datasets are necessary for quick visualization of the quality of data.

Parameters:
  • h5_main (H5 reference) – to the main dataset

  • mean_resp (1D numpy array) – spatially averaged amplitude

  • folder_path (String) – Absolute path of the data folder

  • basename (String) – base name of the dataset

  • max_resp (1D numpy array) – Maximum amplitude for all pixels

  • min_resp (1D numpy array) – Minimum amplitude for all pixels

  • max_mem_mb (Unisigned integer) – Maximum memory that can be used for generating histograms

  • spec_label (String) – Parameter that is varying

  • show_plots ((optional) Boolean) – Whether or not to show plots

  • save_plots ((optional) Boolean) – Whether or not to save generated plots

  • do_histogram (Boolean (Optional. Default = False)) – Whether or not to generate hisograms. Caution - Histograms can take a fair amount of time to compute.

  • debug (Boolean, Optional) – If True, then extra debug statements are printed. Default False