TNO Intern

Commit 6685b4f2 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

Adding extra performance tests to compare more directly with the Java code

parent a1077b00
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@ import timeit

import numpy as np

import pytest

from pythermogis.workflow.utc.doublet import DoubletInput, calculate_doublet_performance
from pythermogis.workflow.utc.utc_properties import UTCConfiguration

@@ -48,7 +50,6 @@ def test_calculate_doublet_performance_precise():
    assert np.isclose(result.var_opex, -7.510325908660889, rtol=rtol)
    assert np.isclose(result.fixed_opex, -11.227973937988281, rtol=rtol)

@pytest.skip("This is for timing performance and comparing to the Java code, not needed to run on the pipeline")
def test_calculate_doublet_performance_approximate():
    # Arrange: instantiate default UTCConfiguration
    props = UTCConfiguration(