spvctrl.spvctrl_interactive.scan_wavelength#

scan_wavelength(settings: TspvSettings | str | Path, sample: Sample | str | None, wavelengths_nm: list[float] | None = None, series: str | None = None, **kwargs) → list[TspvData][source]#

Measure a transient at each of the given wavelengths.

One series directory is created in the cache (<date>_<series>/), with one subdirectory per wavelength (wl=<wl>nm/) holding the per-point data, and one series .tspv file holding all transients as hierarchy variants. Per-point csv and plots are written into the point subdirectories. The series is archived and copied to the final data directories automatically.

Uses the global laser and osci devices.

Parameters:
  • settings – All measurement settings, or the path to a yaml file with the settings (e.g. the parameters.yaml written next to a previous measurement).

  • sample – Sample object, or its name as stored in the sample database (resolved via get_sample()), or a name not present in the database (recorded as plain string), or None.

  • wavelengths_nm – Wavelengths to measure at, in nm.

  • series – Name of the series, used for the series directory name. Defaults to ‘scan’.

  • kwargs – Passed on to spvctrl.measurement.measurement.measure_transient(). The setup info entry from the setup-info database (get_setup_info()) is recorded in each point’s metadata automatically, unless overridden with the setup_info kwarg.

Returns:

List of the TspvData objects of the scan points.