-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add scale_voltage_current_power to ModelChain.pvwatts_dc #1138
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d210be9
add scale_voltage_current_power to ModelChain.pvwatts_dc, docstring e…
cwhanse a6140ed
extend pvsystem.scale_voltage_current_power to not require all column…
cwhanse 917737a
handle tuples, use temporary DataFrame
cwhanse e078c0e
improve scale_voltage_current_power, handle tuples
cwhanse 4e7f849
sort the new test
cwhanse fb04b7e
improve scale function, fix multiple string test
cwhanse 18cb049
multiple string test runs
cwhanse bdc8120
add PR number
cwhanse 478fb34
Maintain column order in returned DataFrame
cwhanse ad2fd80
whatsnew entry formatting
cwhanse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
handle tuples, use temporary DataFrame
- Loading branch information
commit 917737a9dab8fabc32db04e721fc169cc19f3568
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I was thinking of something like this:
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
I don't know how to scale a power other than
p_mp
without hugely complicating the code. I also don't know that there's a need for it at this time.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.
The
pvwatts
methods don't produce voltage or current.Uh oh!
There was an error while loading. Please reload this page.
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.
I was still in the mindset that we could provide a DataFrame with
p_mp=pdc
,v_mp=pdc
, andi_mp=1
as I suggested above. But yes it is better to just multiply the power keys by the voltage and current scale factors.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.
One issue with the temporary DataFrame: when converting back to Series, the column label
'p_mp'
is assigned to the Series name, which affect 8FB7 s testing but likely no user code. Any concern here?Uh oh!
There was an error while loading. Please reload this page.
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.
no concern. pandas
assert_series_equal
only recently started checking that attribute and it was a fair bit of work to fix all of the newly broken tests in the Arbiter.