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

Simulation fails from Federal straight line depreciation check even when it is disabled #1733

Open
cpaulgilman opened this issue Mar 8, 2024 · 0 comments
Assignees
Labels

Comments

@cpaulgilman
Copy link
Collaborator

Describe the bug

The cashloan module generates a simulation error about Federal straight line depreciation not being positive even though it is not enabled:

image

Simulation error:

depr_fed_sl_years:fail(depr_fed_sl_years, positive): 0
Simulation cashloan failed :depr_fed_sl_years:fail(depr_fed_sl_years, positive): 0

Workaround

Workaround is to set Federal straight line depreciation to a positive number like 1, even when Federal straight line depreciation is not enabled.

To Reproduce

Steps to reproduce the behavior:

  1. Create a default PVWatts / Commercial case.
  2. On the Finanical Parameters page, set Federal depreciation to No depreciation.
  3. Set Straight line to 0.
  4. Click Simulate.
  5. See error.

Expected behavior

If Federal or State depreciation is not set to the straight line option, SAM should not check the value of straight line depreciation.

Operating System and Version

  • SAM 2023.12.17 r1 (also SAM 2023.12.17)
  • Windows 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants