prsctrl.prsctrl_interactive.get_sample#
- get_sample(sample: Sample | str | None = None) Sample[source]#
Get a sample from the sample database.
- Parameters:
sample – Sample instance or a sample database key. A key not present in the database returns a stub sample with a warning.
- Raises:
RuntimeError – If the sample database is not initialized, i.e. init() was not run.
ValueError – If no sample or an object of invalid type is given.