make_numbered_prefix

imagepypelines.core.io.make_numbered_prefix(file_number, number_digits=5)[source]

returns a number string designed to be used in the prefix of systematic outputs.

example use case
“00001example_output_file.txt” “00002example_output_file.txt”
Parameters:
  • file_number (int) – the number you want to prefix
  • number_digits (int) – minimum number of digits in the output string. Default is 5
Returns:

string of numbers with standard at least

’number_digits’ of digits

Return type:

str