Skip to content

Raise error when excluding invalid noise in `disable_all_noises()`

Jean-Baptiste Bayle requested to merge alert-when-disabling-unknown-noise into master

The current implementation does not raise any exception when an invalid noise (or noise category) is used as the but argument of the Instrument.disable_all_noises() method. This can lead to hard-to-spot errors when small spelling mistakes are made.

This merge request adds a check of the but argument, such that an exception is raised if it is not in the list of accepted values.

Merge request reports

Loading