Acoular 25.01 documentation

acoular.tools.utils.find_basename

«  acoular.tools.utils.get_file_basename   ::   utils   ::   acoular.tools.utils.mole_fraction_of_water_vapor  »

acoular.tools.utils.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.

«  acoular.tools.utils.get_file_basename   ::   utils   ::   acoular.tools.utils.mole_fraction_of_water_vapor  »