astromodels.utils.long_path_formatter module

astromodels.utils.long_path_formatter.long_path_formatter(line, max_width=50)[source]

If a path is longer than max_width, it substitute it with the first and last element, joined by “…”. For example ‘this.is.a.long.path.which.we.want.to.shorten’ becomes ‘this…shorten’

Parameters
  • line

  • max_width

Returns