emodpy_hiv.plotting.helpers module#

emodpy_hiv.plotting.helpers.get_filenames(dir_or_filename: str, file_prefix: str | None = None, file_extension: str | None = None)[source]#

Get a list of filenames from a directory or a single file. If a directory is provided, it will list all files in that directory. If a file is provided, it will check if it matches the prefix and extension.

Parameters:
  • dir_or_filename (string, required) – Directory or filename to search.

  • file_prefix (string, optional) – Prefix to filter files by.

  • file_extension (string, optional) – Extension to filter files by.

Returns:

List of filenames that match the criteria.