find_basename#

acoular.tools.utils.find_basename(source, alternative_basename='void')

Return the basename of the original source.

Traverses the source chain of the object and returns the basename of the original source. If the source object does not have a basename, uses the alternative basename.

Parameters:
sourceinstance

Generator derived object

alternative_basenamestr

Alternative basename to use if the source object does not have a basename.

Returns:
str

Basename of the original source.