prsctrl.scripts.spectrum_sweeps.process_results#

process_results(data_dir, dir_regex='.*', out_dir=None, get_varied_param=<function <lambda>>, fig_suptitle='Frequency scan: <qty>', xlabel='$f$ [Hz]', what=['theta', 'stheta', 'dR_R', 'sdR_R'])[source]#

Process the results of several spectra recorded with one varying measurement or lock-in parameter.

Parameters:
  • data_dir – Directory containing all data directories of the individual files

  • dir_regex – Regex for filtering data directories

  • out_dir – Directory into which the plots are saved

  • get_varied_param – lambda function getting the varied parameter value from a loaded PrsData object

  • fig_suptitle – Figure suptitle, <qty> will be replaced by the name of the quantity

  • xlabel – xlabel for the varied parameter

  • what – For which quantities to create plots

Returns: