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

NYS Clean Heat Program (con Edison) #4689

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

fuyukitn
Copy link
Contributor

Fixes #4648

Copy link
Collaborator

@PavelMakarchuk PavelMakarchuk left a comment

Choose a reason for hiding this comment

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

Great start, some initial comment for folder structures and breakdown parameter values

Copy link

codecov bot commented Jun 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.97%. Comparing base (3cd3771) to head (d979325).
Report is 37 commits behind head on master.

Current head d979325 differs from pull request most recent head edef16e

Please upload reports for the commit edef16e to get more accurate results.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #4689    +/-   ##
========================================
  Coverage   98.97%   98.97%            
========================================
  Files        2468     2480    +12     
  Lines       35887    36078   +191     
  Branches      184      184            
========================================
+ Hits        35518    35709   +191     
  Misses        339      339            
  Partials       30       30            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# calc capped incentive
family_type_bool = family_type == family_type.possible_values.RESIDENTIAL
min_incentive_residential = min_(uncapped_incentive, cap)
min_incentive_multifamily = min(uncapped_incentive, cap, p.multifamily.cap)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since min_ function cannot be used for comparison involving more than two items, I reverted to min function only here.

@@ -1,16 +1,16 @@
from policyengine_us.model_api import *

class BUILDCategory(Enum):
Copy link
Contributor

Choose a reason for hiding this comment

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

could this be a bool?

Copy link
Contributor Author

@fuyukitn fuyukitn Jul 5, 2024

Choose a reason for hiding this comment

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

It can be a boolean, but I made it an enumerated type to align with other conditions determining the incentive amount. Also, to avoid unnecessary misunderstanding, I'd like to use the exact wording from the policy. (below is a part of the diagram showing the classification)
image

Do you think it should be a boolean? If we make this a boolean, it would be good also to make DAC (whether it's DAC or not) a boolean.

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry for delay - yes please make both bools. enums with two categories are ok if it could plausibly be expanded to more categories, but that doesn't seem the case here

Copy link
Collaborator

@PavelMakarchuk PavelMakarchuk left a comment

Choose a reason for hiding this comment

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

Last adjustment:
can you create a rebates.yaml list parameter file in the ny/tax/income folder and include this credit for the relevant year.

Then add to the subtracts statement in the ny_income_tax.py file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NYS Clean Heat Program - Con Edison
5 participants