File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -651,13 +651,14 @@ def test_royalty_rate(self):
651
651
def get_row (name : str ):
652
652
return EconomicsSamTestCase ._get_cash_flow_row (cash_flow , name )
653
653
654
- ppa_revenue_row = get_row ('PPA revenue ($)' )
655
- expected_royalties = [x * royalty_rate for x in ppa_revenue_row ]
654
+ ppa_revenue_row_USD = get_row ('PPA revenue ($)' )
655
+ expected_royalties_USD = [x * royalty_rate for x in ppa_revenue_row_USD ]
656
+ expected_royalties_MUSD = [x * 1e-6 for x in expected_royalties_USD ]
656
657
657
- self .assertListEqual (expected_royalties , sam_econ .royalties_opex )
658
+ self .assertListEqual (expected_royalties_MUSD , sam_econ .royalties_opex )
658
659
659
660
om_prod_based_expense_row = get_row ('O&M production-based expense ($)' )
660
- self .assertListAlmostEqual (expected_royalties , om_prod_based_expense_row , places = 0 )
661
+ self .assertListAlmostEqual (expected_royalties_USD , om_prod_based_expense_row , places = 0 )
661
662
# Note the above assertion assumes royalties are the only production-based O&M expenses. If this changes,
662
663
# the assertion will need to be updated.
663
664
You can’t perform that action at this time.
0 commit comments