extract_base_name

extract_base_name#

autoplex.data.common.utils.extract_base_name(filename, is_out=False)[source]#

Extract the base of a file name to easier manipulate other file names.

Parameters:
  • filename (str) – The name of the file.

  • is_out (bool) – If it is an out_file (i.e. prefix is “quip_”)

Return type:

str