subdir_from_fname

nawdex_analysis.io.input_sim.subdir_from_fname(fname, npos=-1)

Gets the sub-directory name from filename.

Parameters:
  • fname (str) – filename
  • npos (int, optional, default = -1) – position where sub-directory is located in full path
Returns:

subdir – sub-directory name

Return type:

str