name_sanitize

rubin_sim.maf.utils.name_sanitize(in_string)

Convert a string to a more file name (and web) friendly format.

Parameters:
in_stringstr

The input string to be sanitized. Typically these are combinations of metric names and metadata.

Returns:
str

The string after removal/replacement of non-filename friendly characters.