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

remove pvsystem.systemdef #1008

Merged
merged 7 commits into from
Jul 21, 2020
Merged

remove pvsystem.systemdef #1008

merged 7 commits into from
Jul 21, 2020

Conversation

wholmgren
Copy link
Member

@wholmgren wholmgren commented Jul 21, 2020

  • Closes remove pvsystem.systemdef function #965
  • I am familiar with the contributing guidelines
  • Tests added
  • Updates entries to docs/sphinx/source/api.rst for API changes.
  • Adds description and name entries in the appropriate "what's new" file in docs/sphinx/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.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

I was surprised by the very large number of removed lines in the pvsystem.ipynb file. Maybe relevant: I edited and reran the file using the VSCode's jupyter extension. First time doing that, but it looks ok to me. Really dislike keeping those in the main repo.

@wholmgren wholmgren added the api label Jul 21, 2020
@wholmgren wholmgren added this to the 0.8.0 milestone Jul 21, 2020
Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a look at the source code of the new notebook just for curiosity. The big difference in line count is mostly because table HTML is all in one line now instead of one cell per line. Interestingly, some of the images are encoded as SVG instead of base64 PNG -- very cool. I don't see an issue with those differences except I suppose there will be an inversely large diff next time someone edits the notebooks without using the VSCode plugin.

Minor nits below, feel free to ignore.

'surface_azimuth': 0,
'surface_tilt': 5}
assert expected == pvsystem.systemdef(meta, 5, 0, .1, 5, 5)
needs_numpy_1_10, requires_scipy, fail_on_pvlib_version)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny nit, this import might fit on one line now

used in pvlib and its output was not directly compatible with any pvlib
function. See :py:func:`pvlib.iotools.read_tmy2`,
:py:func:`pvlib.iotools.read_tmy3`, :py:meth:`pvlib.Location.from_tmy`, and
:py:class:`pvlib.pvsystem.LocalizedPVSystem` for alternatives. (:issue:`965`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually the PR is linked as well, though it's easy to get to from the issue page so I don't care about being a stickler about this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this is in the "API Changes with Deprecations" section, but I don't think this was deprecated was it?

wholmgren and others added 3 commits July 21, 2020 08:14
Co-authored-by: Kevin Anderson <57452607+kanderso-nrel@users.noreply.github.com>
@wholmgren
Copy link
Member Author

I took a look at the source code of the new notebook just for curiosity. The big difference in line count is mostly because table HTML is all in one line now instead of one cell per line. Interestingly, some of the images are encoded as SVG instead of base64 PNG -- very cool. I don't see an issue with those differences except I suppose there will be an inversely large diff next time someone edits the notebooks without using the VSCode plugin.

Thanks that's good to know. I wonder if it's less about vscode and more about jupyterlab vs notebook or newer versions of the dependencies.

Usually the PR is linked as well, though it's easy to get to from the issue page so I don't care about being a stickler about this.

Agree that a PR link is a nice to have rather than a necessity.

Also, this is in the "API Changes with Deprecations" section, but I don't think this was deprecated was it?

Thanks for catching this. #1009.

@wholmgren wholmgren merged commit d216ebe into pvlib:master Jul 21, 2020
@wholmgren wholmgren deleted the sysdef branch July 21, 2020 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove pvsystem.systemdef function
3 participants