File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -531,9 +531,11 @@ def test_parse_annualized_capital_costs(self):
531
531
532
532
def test_parse_number_with_commas (self ):
533
533
result = GeophiresXResult (self ._get_test_file_path ('examples/S-DAC-GT.out' ))
534
- self .assertEqual (result .result ['S-DAC-GT ECONOMICS' ]['Total Cost of Capture' ]['value' ], 499_311_405.59 )
535
- gt_lcoh = result .result ['S-DAC-GT ECONOMICS' ]['Geothermal LCOH' ]['value' ]
536
- self .assertEqual (gt_lcoh , 0.0017 )
534
+ self .assertAlmostEqualWithinPercentage (
535
+ 499_311_405.59 , result .result ['S-DAC-GT ECONOMICS' ]['Total Cost of Capture' ]['value' ]
536
+ )
537
+
538
+ self .assertAlmostEqualWithinPercentage (result .result ['S-DAC-GT ECONOMICS' ]['Geothermal LCOH' ]['value' ], 0.0017 )
537
539
538
540
def test_parse_sdacgt_profile (self ):
539
541
result = GeophiresXResult (self ._get_test_file_path ('examples/S-DAC-GT.out' ))
You can’t perform that action at this time.
0 commit comments