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

Make "data" argument required in ModelChain.run_model_from_effective_irradiance #1720

Merged
merged 4 commits into from May 1, 2023

Conversation

k10blogger
Copy link
Contributor

@k10blogger k10blogger commented Apr 30, 2023

Based on the issue here #1713 . Removed the None from the data argument in the function modelchain.run_model_from_effective_irradiance
modelchain._prepare_temperature
modelchain._run_from_effective_irradiance

Before and after change pyunittest remains the same.
======== 11 failed, 953 passed, 75 skipped, 2 xfailed, 1 xpassed, 82 warnings, 100 errors in 146.61s (0:02:26) ========

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.

Thanks @k10blogger! Can you please make these updates as well:

  • Remove default None from the docstring descriptions for these data parameters. For example on Line 1702, and the same for the other functions.
  • Add an entry to the what's new file, maybe something like this under Bug Fixes:
* `data` can no longer be left unspecified in
  :py:meth:`pvlib.modelchain.ModelChain.run_model_from_effective_irradiance`. (:issue:`1713`, :pull:`1720`)
  • Add yourself to the Contributor's list at the bottom of the what's new file as well

@kandersolar kandersolar added this to the 0.9.6 milestone May 1, 2023
@kandersolar kandersolar added the bug label May 1, 2023
@k10blogger
Copy link
Contributor Author

Removed "default None" from doc string in following functions
modelchain._prepare_temperature
modelchain._run_from_effective_irradiance

Added entry under bug fixes.
Added name under contributors.

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.

LGTM. Thanks @k10blogger!

@kandersolar kandersolar changed the title Made "data" argument required in functions as below Make "data" argument required in ModelChain.run_model_from_effective_irradiance May 1, 2023
@kandersolar kandersolar merged commit 3def7e3 into pvlib:main May 1, 2023
30 checks passed
@kandersolar kandersolar modified the milestones: 0.9.6, 0.10.0 May 16, 2023
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.

data should not be optional in ModelChain.run_model_from_effective_irradiance
2 participants