repoNameToPrefix¶
-
lsst.validate.drp.util.
repoNameToPrefix
(repo)[source]¶ Generate a base prefix for plots based on the repo name.
Examples
>>> repoNameToPrefix('a/b/c') 'a_b_c_' >>> repoNameToPrefix('/bar/foo/') 'bar_foo_' >>> repoNameToPrefix('CFHT/output') 'CFHT_output_' >>> repoNameToPrefix('./CFHT/output') 'CFHT_output_' >>> repoNameToPrefix('.a/CFHT/output') 'a_CFHT_output_'