Skip to content
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

Merged
merged 5 commits into from Sep 15, 2020

Conversation

alorenzo175
Copy link
Member

@alorenzo175 alorenzo175 commented Sep 14, 2020

  • Closes inconsistent SRML PV reference forecast names #521 .
  • I am familiar with the contributing guidelines.
  • Tests added.
  • Updates entries to docs/source/api.rst for API changes.
  • Adds descriptions to appropriate "what's new" file in 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`).
  • New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

First, abbreviate Persistence to Pers. then start cutting whole words out of the site name

@alorenzo175 alorenzo175 added the referencefx Issue pertains to reference forecasts label Sep 14, 2020
@alorenzo175 alorenzo175 added this to the 1.0 rc3 milestone Sep 14, 2020
alorenzo175 and others added 2 commits September 15, 2020 07:42
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')
Copy link
Member

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?

Copy link
Member Author

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

@alorenzo175 alorenzo175 merged commit 6b3f7c8 into SolarArbiter:master Sep 15, 2020
@alorenzo175 alorenzo175 deleted the fxname branch September 15, 2020 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
referencefx Issue pertains to reference forecasts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inconsistent SRML PV reference forecast names
2 participants