Closed moustakas closed 8 years ago
The error message could certainly be improved here, or do you think passing a bad string should not raise a ValueError at all?
This case is now unit-tested and raises a ValueError with the more helpful message:
ValueError: Invalid wildcard pattern 'decam2014*'. Use '<group>-*'.
I also added a few other new error messages to handle common problems:
ValueError: No such group 'sdss'. Choose one of ['sdss2010', 'decam2014', 'wise2010', 'bessell'].
ValueError: Invalid filter name 'nosuch'. Use '<group>-<band>'.
ValueError: No such filter 'sdss2010-y' in this group.
I just committed the changes to the master branch.
This look good to me; feel free to close.
This works fine
but this causes doom and destruction: