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

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:
- Create a default PVWatts / Commercial case.
- On the Finanical Parameters page, set Federal depreciation to No depreciation.
- Set Straight line to 0.
- Click Simulate.
- 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
Describe the bug
The
cashloanmodule generates a simulation error about Federal straight line depreciation not being positive even though it is not enabled:Simulation error:
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:
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