Skip to content

Fix cf energy sales#750

Closed
brtietz wants to merge 2 commits into
patchfrom
fix_cf_energy_sales
Closed

Fix cf energy sales#750
brtietz wants to merge 2 commits into
patchfrom
fix_cf_energy_sales

Conversation

@brtietz

@brtietz brtietz commented Feb 7, 2022

Copy link
Copy Markdown
Collaborator

Fixes issue with redundant variables: "PPA revenue gross" and "PPA revenue net" were in fact using the same calculations now that we transitioned electricity purchases to an O&M cost regardless of payment method. Remove PPA revenue gross, since it wasn't used in any downstream calculations.

Pairs with SAM PR: NatLabRockies/SAM#919

@brtietz brtietz added this to the 2021.12.02 Patch 1 milestone Feb 7, 2022
@brtietz brtietz changed the base branch from develop to patch February 7, 2022 21:00

@cpaulgilman cpaulgilman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@brtietz I've got related changes in the om_var_labels branch (https://github.com/NREL/ssc/tree/om_var_labels). I can merge fix_cf_energy_sales into om_var_labels and get these changes into patch via that route. OK?

@@ -606,8 +606,6 @@ static var_info _cm_vtab_communitysolar[] = {
/* PPA revenue not applicable to community solar, may need to be restored later
{ SSC_OUTPUT, SSC_ARRAY, "cf_ppa_price", "PPA price", "cents/kWh", "", "Cash Flow Revenues", "*", "LENGTH_EQUAL=cf_length", "" },
{ SSC_OUTPUT, SSC_ARRAY, "cf_energy_value", "PPA revenue net", "$", "", "Cash Flow Revenues", "*", "LENGTH_EQUAL=cf_length", "" },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I am confused based on the email chain... are we keeping "net" here or does that go away when @cpaulgilman merges his changes?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We can remove net, but this is in commented out code, so it won't change anything. Should I remove net or just remove the whole block?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good point... we should be consistent and removing commented code - only keep if necessary or informative. Would you say this is clarifying or just a historic artifact? (Useful for debugging in the future?)

@sjanzou sjanzou self-requested a review February 8, 2022 22:20

@sjanzou sjanzou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Comment removal at your discretion!

@brtietz

brtietz commented Feb 10, 2022

Copy link
Copy Markdown
Collaborator Author

Included in #753, closing this PR

@brtietz brtietz closed this Feb 10, 2022
@brtietz brtietz deleted the fix_cf_energy_sales branch April 29, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants