releso.util.util_funcs.get_path_extension

releso.util.util_funcs.get_path_extension() str

Creates a string which has the following characteristics.

If not on a slurm system only the current time stamp is added If in a slurm job (non task array) the current time stamp + job id If in slurm task array job the job_id with sub-folders for each task with the task_id_timestamp

If on a slurm system the slurm information are read from the environment variables $SLURM_JOB_ID, $SLURM_ARRAY_JOB_ID, $SLURM_ARRAY_TASK_ID.

Returns:

See function documentation body for definition.

Return type:

str