source_name_to_fs_name

daschlab.source_name_to_fs_name(name: str) str[source]

Convert the name of an astronomical source to something convenient to use in file names.

Parameters:
namestr

The astronomical source name.

Returns:
The converted filesystem name.

Notes

This function is a helper that is used to automatically generate names for Session data directories. The transformation that it performs is intentionally not precisely specified, but it does things like lowercasing the input, removing spaces and special characters, and so on.