New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adjust how reference forecast names are truncated #571
Conversation
Co-authored-by: Will Holmgren <william.holmgren@gmail.com>
# ensure suffix not more than 50 characters to allow | ||
# for some site identification in the name | ||
if len(suffix) > 50: | ||
raise ValueError('Template forecast name is too long') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we also need a check like if len(site_name.split(' ')[0]) > 13: raise ValueError
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could. I am OK with having no site specifier at all, but probably best just to raise the error when creating the forecast instead of something odd slipping through
docs/source/api.rst
for API changes.docs/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).First, abbreviate Persistence to Pers. then start cutting whole words out of the site name