TNO Intern

Commit 1c19ca30 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

Fixing the tests

parent f1ddedf1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4919,7 +4919,7 @@ packages:
- pypi: ./
  name: pythermogis
  version: 1.2.0
  sha256: f484b4cf939f0f4b0cccabf53e301e4ab4b85f1f4d96b533dbee0e63dfeb1415
  sha256: 44271718a4a84514ee6d1f6a413b57b060a4868ea6dd8fadf0e1ed09c39dfae1
  requires_dist:
  - jpype1>=1.5.2,<2
  - xarray==2024.9.0.*
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ def doubletcalc(
        well_distance=well_distance,
        cooling_fraction=0.1,
        yearly_operating_hours=props.load_hours,
        pressure_balance_tolerance=0.5,
        pressure_balance_tolerance=1e-1,
        viscosity_mode=props.viscosity_mode,
        heat_exchanger_exit_temperature=injection_temp,
    )
+9 −9
Original line number Diff line number Diff line
@@ -20,12 +20,12 @@ def test_calculate_volumetric_flow():
    )

    flow_results = calculate_volumetric_flow(props, input_data, 600000, 1550, 40)

    assert np.isclose(flow_results.hp_cop, 0.0, rtol=0.01)
    assert np.isclose(flow_results.hp_added_power, 0.0, rtol=0.01)
    assert np.isclose(flow_results.heat_power_per_doublet, 0.027926914290870505, rtol=0.01)
    assert np.isclose(flow_results.cop, 5.396068601571214, rtol=0.01)
    assert np.isclose(flow_results.flowrate, 18.631507399806665, rtol=0.01)
    assert np.isclose(flow_results.pump_power_required, 5.175418689587975, rtol=0.01)
    assert np.isclose(flow_results.production_temp, 41.36211427733413, rtol=0.01)
    assert np.isclose(flow_results.heat_power_produced[0], 0.027926914290870505, rtol=0.01)
 No newline at end of file
    rtol = 0.01
    assert np.isclose(flow_results.hp_cop, 0.0, rtol=rtol)
    assert np.isclose(flow_results.hp_added_power, 0.0, rtol=rtol)
    assert np.isclose(flow_results.heat_power_per_doublet, 0.027926914290870505, rtol=rtol)
    assert np.isclose(flow_results.cop, 5.396068601571214, rtol=rtol)
    assert np.isclose(flow_results.flowrate, 18.631507399806665, rtol=rtol)
    assert np.isclose(flow_results.pump_power_required, 5.175418689587975, rtol=rtol)
    assert np.isclose(flow_results.production_temp, 41.36211427733413, rtol=rtol)
    assert np.isclose(flow_results.heat_power_produced[0], 0.027926914290870505, rtol=rtol)
 No newline at end of file