From 37b13ea95ae89f4b95c575c56844cea3c07393d2 Mon Sep 17 00:00:00 2001 From: sebastian-swob Date: Mon, 17 Mar 2025 15:59:23 +0100 Subject: [PATCH 1/3] added working doctest examples doctest is available to be run separately to unit tests --- dev-tools/dev_tools.py | 21 +++++++++- pytrnsys_process/process/process_batch.py | 41 +++++++++++++++++-- .../results/sim-1/PySimCoolDownAdd_Mfr.prt | 6 +++ .../results/sim-1/PySimCoolDownAdd_T.prt | 6 +++ .../data/doctest/results/sim-1/deck.dck | 19 +++++++++ .../sim-1/temp/ENERGY_BALANCE_HP_225.Prt | 40 ++++++++++++++++++ .../sim-1/temp/ENERGY_BALANCE_MO_60_TESS.Prt | 40 ++++++++++++++++++ .../sim-1/temp/ENERGY_BALANCE_MO_HP_60.Prt | 40 ++++++++++++++++++ .../results/sim-1/temp/HPCtrlPrinter.Prt | 6 +++ .../results/sim-1/temp/ModePrinter_step.prt | 31 ++++++++++++++ .../doctest/results/sim-1/temp/PCMOut.prt | 29 +++++++++++++ .../doctest/results/sim-1/temp/Src_Hr.Prt | 29 +++++++++++++ .../doctest/results/sim-1/temp/control.prt | 29 +++++++++++++ .../results/sim-1/temp/don-not-process.xlsx | 0 .../data/doctest/results/sim-2/deck.dck | 19 +++++++++ .../sim-2/temp/ENERGY_BALANCE_MO_60_TESS.Prt | 40 ++++++++++++++++++ .../sim-2/temp/ENERGY_BALANCE_MO_HP_417.Prt | 40 ++++++++++++++++++ .../sim-2/temp/ENERGY_BALANCE_MO_HP_60.Prt | 40 ++++++++++++++++++ 18 files changed, 470 insertions(+), 6 deletions(-) create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/PySimCoolDownAdd_Mfr.prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/PySimCoolDownAdd_T.prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/deck.dck create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_HP_225.Prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_MO_60_TESS.Prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_MO_HP_60.Prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/HPCtrlPrinter.Prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/ModePrinter_step.prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/PCMOut.prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/Src_Hr.Prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/control.prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-1/temp/don-not-process.xlsx create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-2/deck.dck create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_60_TESS.Prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_HP_417.Prt create mode 100644 tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_HP_60.Prt diff --git a/dev-tools/dev_tools.py b/dev-tools/dev_tools.py index 76d3eaa..a19cae1 100644 --- a/dev-tools/dev_tools.py +++ b/dev-tools/dev_tools.py @@ -42,6 +42,8 @@ def main(): _maybe_run_pytest(arguments, test_results_dir_path) + _maybe_run_doctest(arguments) + _maybe_create_documentation(arguments) @@ -102,6 +104,16 @@ def _parse_arguments() -> ap.Namespace: nargs="?", dest="pytestMarkersExpression", ) + parser.add_argument( + "-dt", + "--doctest", + help="Perform doc tests", + type=str, + default=None, + const="", + nargs="?", + dest="doctestArguments", + ) parser.add_argument( "-d", "--diagram", @@ -221,6 +233,7 @@ def _maybe_run_pytest(arguments, test_results_dir_path): and arguments.blackArguments is None and arguments.diagramsFormat is None and not arguments.shallCreateDocumentation + and arguments.doctestArguments is None ) if ( arguments.shallRunAll @@ -228,9 +241,13 @@ def _maybe_run_pytest(arguments, test_results_dir_path): or was_called_without_arguments ): _run_unit_tests_with_pytest(arguments, test_results_dir_path) - # TODO: re-enable this once the documentation is updated pylint: disable=fixme - # _run_doctests_with_pytest() +def _maybe_run_doctest(arguments): + if ( + arguments.shallRunAll + or arguments.doctestArguments is not None + ): + _run_doctests_with_pytest() def _run_unit_tests_with_pytest(arguments, test_results_dir_path): marker_expressions = _get_marker_expressions( diff --git a/pytrnsys_process/process/process_batch.py b/pytrnsys_process/process/process_batch.py index ae2627d..9797c92 100644 --- a/pytrnsys_process/process/process_batch.py +++ b/pytrnsys_process/process/process_batch.py @@ -199,10 +199,22 @@ def process_single_simulation( >>> def processing_step_1(sim: api.Simulation): ... # Process simulation data ... pass - >>> results = api.process_single_simulation( - ... _pl.Path("path/to/simulation"), + ... + >>> api.global_settings.reader.read_step_files = True + ... + >>> simulation = api.process_single_simulation( # doctest: +ELLIPSIS + ... _pl.Path("tests/pytrnsys_process/data/doctest/results/sim-1"), ... processing_step_1 ... ) + INFO ... + >>> simulation.step.shape + (5, 142) + >>> simulation.hourly.shape + (3, 18) + >>> simulation.monthly.shape + (14, 11) + >>> simulation.scalar.shape + (1, 10) """ main_logger = log.get_main_logger(sim_folder) log.initialize_logs(sim_folder) @@ -267,16 +279,37 @@ def process_whole_result_set( >>> import pathlib as _pl >>> from pytrnsys_process import api ... + >>> api.global_settings.reader.force_reread_prt = True + ... + >>> api.global_settings.reader.read_step_files = False + ... >>> def processing_step_1(sim): ... # Process simulation data ... pass + ... >>> def processing_step_2(sim): ... # Process simulation data ... pass - >>> results = api.process_whole_result_set( - ... _pl.Path("path/to/results"), + ... + >>> simulations_data = api.process_whole_result_set( # doctest: +ELLIPSIS + ... _pl.Path("tests/pytrnsys_process/data/doctest/results"), ... [processing_step_1, processing_step_2] ... ) + INFO ... + >>> simulations_data.simulations["sim-1"].hourly.shape + (3, 18) + >>> simulations_data.simulations["sim-1"].monthly.shape + (14, 11) + >>> simulations_data.simulations["sim-1"].step.shape + (0, 0) + >>> simulations_data.simulations["sim-1"].step.shape + (0, 0) + >>> simulations_data.simulations["sim-2"].monthly.shape + (14, 11) + >>> simulations_data.simulations["sim-2"].step.shape + (0, 0) + >>> simulations_data.scalar.shape + (2, 10) """ _validate_folder(results_folder) main_logger = log.get_main_logger(results_folder) diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/PySimCoolDownAdd_Mfr.prt b/tests/pytrnsys_process/data/doctest/results/sim-1/PySimCoolDownAdd_Mfr.prt new file mode 100644 index 0000000..24ed33b --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/PySimCoolDownAdd_Mfr.prt @@ -0,0 +1,6 @@ + TIME xFracVBoil MBoil_TeeBoil MHXSnk_VBoil MVBoil_TeeBoil MVBoil_Boil xFracVSrcPS2 xFracVSrcPS1 xFracVSnkPreHeat MQSrcRZ_TeeRZHP MTeeRZHP_HPRZ MHPRZ_PPitReg MPPitReg_TeeHPRZ MTeeHPRZ_QSrcRZ MHPRZ_TeeHPHX MTeeHPHX_PHXSnk MPHXSnk_HXSnk MHXSnk_TeeHXHP MTeeHXHP_PHPRZ MVSnkPreHeat_TeeHPHX MVSrcH_TeeRZHP MTeePitL1H_VSrcH xFracVSnkPS2 xFracVSnkPS3 MVSrcPS2_VSrcPS1 MTeePS2_VSrcPS2 MTeePS2_VSnkPS2 MVSnkPS2_TeeHXHP MTeePS3_VSnkPS3 MTeePS3_VSrcPS2 MVSnkPS3_VSnkPS2 xFracVPSDiv1b xFracVPSDiv1a xFracVPSDiv2b xFracVPSDiv2a xFracVPSDiv3b xFracVPSDiv3a xFracVPSDiv4b xFracVPSDiv4a MVPSDiv1a_TeePSCon1 MVPSDiv1b_VPSDiv1a MPS_VPSDiv1a MPS_VPSDiv1b MPS_VPSDiv1b2 MVPSDiv2a_TeePS2 MVPSDiv2b_VPSDiv2a MPS_VPSDiv2a MPS_VPSDiv2b MPS_VPSDiv2b2 MVPSDiv3a_TeePS3 MVPSDiv3b_VPSDiv3a MPS_VPSDiv3a MPS_VPSDiv3b MPS_VPSDiv3b2 MPS_VPSDiv4a MPS_VPSDiv4b MPS_VPSDiv4b2 MVPSDiv4b_VPSDiv4a MTeePSCon1_VSnkPreHeat xFracVPS4 MVPS4_VSnkPS3 MVPS4_TeeHPRZ MVPSDiv4a_VPS4 MVSnkPreHeat_PPreHeat MPPreHeat_TeePreHeat MPHPRZ_TeePreHeat MTeePreHeat_HPRZ MTeeBoil_SCnr MSCnr_SCnr2Cold MSCnr_SCnr2Hot MSCnr2_QSnk1 MQSnk1_SCnr2 MSCnr_HXSnk + +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 + +1.6666666666666666E-01 +1.0000000000000000E+00 +3.4034278971338371E+05 +3.4034278971338371E+05 +0.0000000000000000E+00 +3.4034278971338371E+05 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +3.2209990500000014E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.2209990500000014E+05 +1.8242884713383566E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 -1.8242884713383566E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 -1.8242884713383566E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.8242884713383566E+04 +1.8242884713383566E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.8242884713383566E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 -1.8242884713383566E+04 -1.8242884713383566E+04 +1.8242884713383566E+04 +1.0000000000000000E+00 -1.8242884713383566E+04 +0.0000000000000000E+00 -1.8242884713383566E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +3.2209990500000014E+05 +3.2209990500000014E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 + +3.3333333333333331E-01 +1.0000000000000000E+00 +3.4034278971338371E+05 +3.4034278971338371E+05 +0.0000000000000000E+00 +3.4034278971338371E+05 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +2.9645650638254941E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +2.9645650638254941E+05 +4.3886283330834296E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.3886283330834296E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.3886283330834296E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +4.3886283330834296E+04 +4.3886283330834296E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +4.3886283330834296E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.3886283330834296E+04 -4.3886283330834296E+04 +4.3886283330834296E+04 +1.0000000000000000E+00 -4.3886283330834296E+04 +0.0000000000000000E+00 -4.3886283330834296E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +2.9645650638254941E+05 +2.9645650638254941E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 + +5.0000000000000000E-01 +1.0000000000000000E+00 +3.4034278971338371E+05 +3.4034278971338371E+05 +0.0000000000000000E+00 +3.4034278971338371E+05 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +2.9831240206806629E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +2.9831240206806629E+05 +4.2030387645317416E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.2030387645317416E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.2030387645317416E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +4.2030387645317416E+04 +4.2030387645317416E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +4.2030387645317416E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.2030387645317416E+04 -4.2030387645317416E+04 +4.2030387645317416E+04 +1.0000000000000000E+00 -4.2030387645317416E+04 +0.0000000000000000E+00 -4.2030387645317416E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +2.9831240206806629E+05 +2.9831240206806629E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 + +6.6666666666666663E-01 +1.0000000000000000E+00 +3.4034278971338371E+05 +3.4034278971338371E+05 +0.0000000000000000E+00 +3.4034278971338371E+05 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +8.6097625140506541E+05 +2.9169765459545422E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +2.9169765459545422E+05 +4.8645135117929487E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.8645135117929487E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.8645135117929487E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +4.8645135117929487E+04 +4.8645135117929487E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +4.8645135117929487E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 -4.8645135117929487E+04 -4.8645135117929487E+04 +4.8645135117929487E+04 +1.0000000000000000E+00 -4.8645135117929487E+04 +0.0000000000000000E+00 -4.8645135117929487E+04 +0.0000000000000000E+00 +0.0000000000000000E+00 +2.9169765459545422E+05 +2.9169765459545422E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 +3.4034278971338371E+05 \ No newline at end of file diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/PySimCoolDownAdd_T.prt b/tests/pytrnsys_process/data/doctest/results/sim-1/PySimCoolDownAdd_T.prt new file mode 100644 index 0000000..ccec0e5 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/PySimCoolDownAdd_T.prt @@ -0,0 +1,6 @@ + TIME TBoil_TeeBoil THXSnk_VBoil TVBoil_TeeBoil TVBoil_Boil TQSrcRZ_TeeRZHP TTeeRZHP_HPRZ THPRZ_PPitReg TPPitReg_TeeHPRZ TTeeHPRZ_QSrcRZ THPRZ_TeeHPHX TTeeHPHX_PHXSnk TPHXSnk_HXSnk THXSnk_TeeHXHP TTeeHXHP_PHPRZ TVSnkPreHeat_TeeHPHX TVSrcH_TeeRZHP TTeePitL1H_VSrcH TVSrcPS2_VSrcPS1 TTeePS2_VSrcPS2 TTeePS2_VSnkPS2 TVSnkPS2_TeeHXHP TTeePS3_VSnkPS3 TTeePS3_VSrcPS2 TVSnkPS3_VSnkPS2 TVPSDiv1a_TeePSCon1 TVPSDiv1b_VPSDiv1a TPS_VPSDiv1a TPS_VPSDiv1b TPS_VPSDiv1b2 TVPSDiv2a_TeePS2 TVPSDiv2b_VPSDiv2a TPS_VPSDiv2a TPS_VPSDiv2b TPS_VPSDiv2b2 TVPSDiv3a_TeePS3 TVPSDiv3b_VPSDiv3a TPS_VPSDiv3a TPS_VPSDiv3b TPS_VPSDiv3b2 TPS_VPSDiv4a TPS_VPSDiv4b TPS_VPSDiv4b2 TVPSDiv4b_VPSDiv4a TTeePSCon1_VSnkPreHeat TVPS4_VSnkPS3 TVPS4_TeeHPRZ TVPSDiv4a_VPS4 TVSnkPreHeat_PPreHeat TPPreHeat_TeePreHeat TPHPRZ_TeePreHeat TTeePreHeat_HPRZ TTeeBoil_SCnr TSCnr_SCnr2Cold TSCnr_SCnr2Hot TSCnr2_QSnk1 TQSnk1_SCnr2 TSCnr_HXSnk + +0.0000000000000000E+00 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +5.0000000000000000E+01 +8.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 + +1.6666666666666666E-01 +8.4750091595022269E+01 +8.3138550082199515E+01 +3.9845096303710534E+01 +8.2898909157086848E+01 +3.2016772532245291E+01 +3.2033508492544591E+01 +2.1866552584646382E+01 +2.1905420760303063E+01 +2.1945786107220531E+01 +8.6611118234707405E+01 +8.5412740694385818E+01 +8.5138039326463471E+01 +5.1656442750334918E+01 +5.1586715362464027E+01 +6.8984862356708902E+01 +3.9845096303710534E+01 +3.9845096303710534E+01 +3.9845096303710534E+01 +3.9845096303710534E+01 +3.9845096303710534E+01 +5.0427788766973904E+01 +3.9845096303710534E+01 +3.9845096303710534E+01 +4.9325471022660643E+01 +7.6080378950569227E+01 +8.0249067041471207E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +8.4895526970742551E+01 +3.9845096303710534E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +3.9845096303710534E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.6005933764983951E+01 +4.6688759944757933E+01 +7.2340335850282912E+01 +4.8336499004595865E+01 +3.9845096303710534E+01 +4.7449217948329760E+01 +3.9845096303710534E+01 +3.9845096303710534E+01 +5.1517394362499864E+01 +5.1448477381916419E+01 +8.4501561647499500E+01 +5.0008018842042866E+01 +7.9883808962582108E+01 +7.9896296259480039E+01 -1.5000000000000000E+01 +4.9967656043223222E+01 + +3.3333333333333331E-01 +8.7790284489970247E+01 +8.7838998927161683E+01 +3.9536949797516733E+01 +8.7809467614941056E+01 +3.1999467694128384E+01 +3.1998972828152759E+01 +2.1863655044417442E+01 +2.1863305912061975E+01 +2.1860487680097261E+01 +9.0215329722330040E+01 +8.9902377186529705E+01 +8.9873784392320317E+01 +5.1748476774251543E+01 +5.1745352409659510E+01 +8.7999533347940456E+01 +3.9536949797516733E+01 +3.9536949797516733E+01 +3.9536949797516733E+01 +3.9536949797516733E+01 +3.9536949797516733E+01 +5.1726858754969207E+01 +3.9536949797516733E+01 +3.9536949797516733E+01 +5.1654057044612372E+01 +8.9317534997417496E+01 +8.9751659745297559E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +8.9999315160797863E+01 +3.9536949797516733E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +3.9536949797516733E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +5.1025064523629425E+01 +5.1217232494593645E+01 +8.8725177628513421E+01 +5.1537618442791860E+01 +3.9536949797516733E+01 +5.1384216085517416E+01 +3.9536949797516733E+01 +3.9536949797516733E+01 +5.1741809824378109E+01 +5.1737854219528735E+01 +8.7769839752242248E+01 +4.9747987067749257E+01 +7.9745469063782764E+01 +7.9743443341661916E+01 +4.4896296259480039E+01 +4.9745460624034443E+01 + +5.0000000000000000E-01 +8.7068953090654617E+01 +8.7068238022771951E+01 +3.9231279599337064E+01 +8.7068677562182003E+01 +3.1999467694128384E+01 +3.1998935397546916E+01 +2.1823760814544293E+01 +2.1823492402803861E+01 +2.1823218277449598E+01 +8.8990308399868553E+01 +8.9089282059336284E+01 +8.9089864009948002E+01 +5.0671326744688542E+01 +5.0675574130150167E+01 +8.9785799914933222E+01 +3.9231279599337064E+01 +3.9231279599337064E+01 +3.9231279599337064E+01 +3.9231279599337064E+01 +3.9231279599337064E+01 +5.0701477956401035E+01 +3.9231279599337064E+01 +3.9231279599337064E+01 +5.0729325346021419E+01 +8.9926529452684832E+01 +8.9967691471354868E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +8.9999295023658306E+01 +3.9231279599337064E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +3.9231279599337064E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +5.0815718864781438E+01 +5.0797103240941155E+01 +8.9867976331143097E+01 +5.0752704662392773E+01 +3.9231279599337064E+01 +5.0769882566336548E+01 +3.9231279599337064E+01 +3.9231279599337064E+01 +5.0679775282852390E+01 +5.0683927882955871E+01 +8.7069122135033709E+01 +4.8640784981520497E+01 +7.9740794073788635E+01 +7.9745469063782764E+01 +4.4743443341661916E+01 +4.8645344011222925E+01 + +6.6666666666666663E-01 +8.5782522453039661E+01 +8.5775836813815914E+01 +3.8928065809217244E+01 +8.5779187672331389E+01 +3.1999467694128384E+01 +3.1998935397546916E+01 +2.1755057510001073E+01 +2.1754852611745200E+01 +2.1754647579684796E+01 +8.7509604094776904E+01 +8.7850035892842158E+01 +8.7853004327080882E+01 +4.8336044782360283E+01 +4.8348541101164663E+01 +8.9870559517454240E+01 +3.8928065809217244E+01 +3.8928065809217244E+01 +3.8928065809217244E+01 +3.8928065809217244E+01 +3.8928065809217244E+01 +4.8410910249584809E+01 +3.8928065809217244E+01 +3.8928065809217244E+01 +4.8484041249281503E+01 +8.9940285780916923E+01 +8.9971879543011582E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +8.9998843382701452E+01 +3.8928065809217244E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +3.8928065809217244E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.0000000000000000E+01 +4.8787066170262563E+01 +4.8707050336879433E+01 +8.9899136513495677E+01 +4.8555416528781130E+01 +3.8928065809217244E+01 +4.8624932826522354E+01 +3.8928065809217244E+01 +3.8928065809217244E+01 +4.8360984113879958E+01 +4.8373373868409104E+01 +8.5785840347204712E+01 +4.6230233291773757E+01 +7.9971614306622158E+01 +7.9972549889230933E+01 +4.4743443341661916E+01 +4.6242330996305512E+01 \ No newline at end of file diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/deck.dck b/tests/pytrnsys_process/data/doctest/results/sim-1/deck.dck new file mode 100644 index 0000000..61edf9b --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/deck.dck @@ -0,0 +1,19 @@ +********************************************************************** +** head.ddck from C:\actions-runner-simulations\_work\icegrid\icegrid\simulation\ddck\generic +********************************************************************** +******************************* +**BEGIN Head.ddck +******************************* +CONSTANTS 3 +mfrSolverAbsTol = + 1e-6 - 5 +mfrSolverRelTol = 1e-9 +mfrTolSwitchThreshold = 1 +VERSION 17 +CONSTANTS 7 +START=7300.0 +STOP=17520.0 +dtSim=1/60*2 +dtSim_SI = dtSim*3600 +dt_s = dtSim_SI +DTHOur = 1 +recallStart = START + dtSim \ No newline at end of file diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_HP_225.Prt b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_HP_225.Prt new file mode 100644 index 0000000..3e0910e --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_HP_225.Prt @@ -0,0 +1,40 @@ + Label not available Label not available Label not available Label not available +Month TIME QSnk225PauxEvap_kW QSnk225PelAuxComp_kW QSnk225PauxCondSwitch_kW +November +0.8016000000000000E+004 +0.4283761248192302E+005 +0.1137383681987381E+005 +0.5421144930179693E+005 +December +0.8760000000000000E+004 +0.5465307990181053E+005 +0.1573889268747866E+005 +0.7039197258928938E+005 +January +0.9504000000000000E+004 +0.5852683478986656E+005 +0.1795434741184493E+005 +0.7648118220171169E+005 +February +0.1017600000000000E+005 +0.4869078961155780E+005 +0.1499959084836819E+005 +0.6369038045992640E+005 +March +0.1092000000000000E+005 +0.4124284057175510E+005 +0.1190160066734546E+005 +0.5314444123910055E+005 +April +0.1164000000000000E+005 +0.3039278405012395E+005 +0.8002255924833162E+004 +0.3839503997495705E+005 +May +0.1238400000000000E+005 +0.1778134835488530E+005 +0.4358539613544914E+004 +0.2213988796843028E+005 +June +0.1310400000000000E+005 +0.7038365892223834E+004 +0.1637547993842664E+004 +0.8675913886066488E+004 +July +0.1384800000000000E+005 +0.3762452483320393E+004 +0.8818463918005464E+003 +0.4644298875120939E+004 +August +0.1459200000000000E+005 +0.5667015879697819E+004 +0.1262425032724405E+004 +0.6929440912422228E+004 +September +0.1531200000000000E+005 +0.1285483829703207E+005 +0.2846683839190911E+004 +0.1570152213622299E+005 +October +0.1605600000000000E+005 +0.2780288546516398E+005 +0.6541789750839558E+004 +0.3434467521600381E+005 +November +0.1677600000000000E+005 +0.4259878754160456E+005 +0.1128729764222673E+005 +0.5388608518383105E+005 +December +0.1752000000000000E+005 +0.5453710931692371E+005 +0.1571805021732550E+005 +0.7025515953424892E+005 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.2876087590480707E+003 +0.7821602417098813E+002 +0.3457835874978536E+003 +Time of Maximum +0.1752000000000000E+005 +0.1390463333333333E+005 +0.1386423333333333E+005 +0.1390463333333333E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.0000000000000000E+000 +Time of Minimum +0.7300033333333334E+004 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.5852683478986656E+005 +0.1795434741184493E+005 +0.7648118220171169E+005 +Time of Maximum +0.1752000000000000E+005 +0.9504000000000000E+004 +0.9504000000000000E+004 +0.9504000000000000E+004 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available +Minimum Value +0.8016000000000000E+004 +0.3762452483320393E+004 +0.8818463918005464E+003 +0.4644298875120939E+004 +Time of Minimum +0.8016000000000000E+004 +0.1384800000000000E+005 +0.1384800000000000E+005 +0.1384800000000000E+005 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.4483867446378887E+006 +0.1245047048412391E+006 +0.5728914494791317E+006 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_MO_60_TESS.Prt b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_MO_60_TESS.Prt new file mode 100644 index 0000000..3cb9289 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_MO_60_TESS.Prt @@ -0,0 +1,40 @@ + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Month TIME QSnk60PauxCondSwitch_kW QSnk60dQ QSnk60P QSnk60PDhw QSnk60dQlossTess QSnk60qImbTess +November +0.8016000000000000E+004 +0.2739037203579770E+005 +0.3305461821614853E+003 +0.2657585924762046E+005 +0.0000000000000000E+000 +0.4839668484318744E+003 -0.2424158225549574E-003 +December +0.8760000000000000E+004 +0.3652916821723460E+005 -0.5695406115112196E+002 +0.3608337483417692E+005 +0.0000000000000000E+000 +0.5027475101765604E+003 -0.6596826026129619E-004 +January +0.9504000000000000E+004 +0.4029699609538541E+005 +0.1064007587258659E+003 +0.3968779925538818E+005 +0.0000000000000000E+000 +0.5027960078685793E+003 +0.7340332670478634E-004 +February +0.1017600000000000E+005 +0.3366910639047660E+005 -0.5653304604111808E+002 +0.3327151759961177E+005 +0.0000000000000000E+000 +0.4541221070541168E+003 -0.2701489241093007E-003 +March +0.1092000000000000E+005 +0.2737862013597025E+005 +0.6468848476774959E+002 +0.2681119675543713E+005 +0.0000000000000000E+000 +0.5027340783825925E+003 +0.8173826739737695E-003 +April +0.1164000000000000E+005 +0.1884515587904413E+005 +0.7162387012057539E+000 +0.1835793195490307E+005 +0.0000000000000000E+000 +0.4865077513869735E+003 -0.6594693289823107E-004 +May +0.1238400000000000E+005 +0.9543958619968678E+004 -0.8825427321486411E+002 +0.9129137350991263E+004 +0.0000000000000000E+000 +0.5030754394289790E+003 +0.1027633174967446E-003 +June +0.1310400000000000E+005 +0.3391246474100910E+004 +0.7185732341334239E+002 +0.2832574461509232E+004 +0.0000000000000000E+000 +0.4868146590461043E+003 +0.3013221789989187E-004 +July +0.1384800000000000E+005 +0.1341072406843437E+004 +0.5158482835861155E+001 +0.8333080784932389E+003 +0.0000000000000000E+000 +0.5026066478198720E+003 -0.8023055452343563E-003 +August +0.1459200000000000E+005 +0.2540806472072484E+004 -0.8470027506461592E+002 +0.2122973754375004E+004 +0.0000000000000000E+000 +0.5025329386465598E+003 +0.5411553746237880E-004 +September +0.1531200000000000E+005 +0.5994371428541986E+004 -0.8662748546212898E+001 +0.5516729352176221E+004 +0.0000000000000000E+000 +0.4863046881182356E+003 +0.1367936969649169E-003 +October +0.1605600000000000E+005 +0.1626344818378989E+005 +0.8345765643825045E+002 +0.1567698148846663E+005 +0.0000000000000000E+000 +0.5030092038586567E+003 -0.1649735180803146E-003 +November +0.1677600000000000E+005 +0.2713157191302666E+005 +0.1558578972827581E+002 +0.2662932661840298E+005 +0.0000000000000000E+000 +0.4866591235779662E+003 +0.3813175914777440E-003 +December +0.1752000000000000E+005 +0.3651405108013218E+005 -0.9437074665122041E+002 +0.3610563796403934E+005 +0.0000000000000000E+000 +0.5027838126557667E+003 +0.5008751972743772E-004 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.1567056145561912E+003 +0.1467079885373512E+003 +0.2026969532250000E+003 +0.0000000000000000E+000 +0.6913004221586194E+000 +0.9403639176272072E-002 +Time of Maximum +0.1752000000000000E+005 +0.1453096666666667E+005 +0.1428796666666667E+005 +0.9970000000000000E+004 +0.1752000000000000E+005 +0.1341343333333333E+005 +0.1429330000000000E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.0000000000000000E+000 -0.1412016421551587E+003 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.6623133557320278E+000 -0.4492013923251825E-004 +Time of Minimum +0.7300033333333334E+004 +0.1752000000000000E+005 +0.9035966666666667E+004 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1579900000000000E+005 +0.1341343333333333E+005 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.4029699609538541E+005 +0.3305461821614853E+003 +0.3968779925538818E+005 +0.0000000000000000E+000 +0.5030754394289790E+003 +0.8173826739737695E-003 +Time of Maximum +0.1752000000000000E+005 +0.9504000000000000E+004 +0.8016000000000000E+004 +0.9504000000000000E+004 +0.1752000000000000E+005 +0.1238400000000000E+005 +0.1092000000000000E+005 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.8016000000000000E+004 +0.1341072406843437E+004 -0.9437074665122041E+002 +0.8333080784932389E+003 +0.0000000000000000E+000 +0.4541221070541168E+003 -0.8023055452343563E-003 +Time of Minimum +0.8016000000000000E+004 +0.1384800000000000E+005 +0.1752000000000000E+005 +0.1384800000000000E+005 +0.1752000000000000E+005 +0.1017600000000000E+005 +0.1384800000000000E+005 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.2868299453323836E+006 +0.2889357661028753E+003 +0.2796343487155706E+006 +0.0000000000000000E+000 +0.6906660816452869E+004 +0.3423687856920587E-004 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_MO_HP_60.Prt b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_MO_HP_60.Prt new file mode 100644 index 0000000..876e357 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ENERGY_BALANCE_MO_HP_60.Prt @@ -0,0 +1,40 @@ + Label not available Label not available Label not available Label not available +Month TIME QSnk60PauxEvap_kW QSnk60PelAuxComp_kW QSnk60PauxCondSwitch_kW +November +0.8016000000000000E+004 +0.2161358340750096E+005 +0.5776788628296898E+004 +0.2739037203579770E+005 +December +0.8760000000000000E+004 +0.2838888210807185E+005 +0.8140286109162899E+004 +0.3652916821723460E+005 +January +0.9504000000000000E+004 +0.3099081794071290E+005 +0.9306178154672469E+004 +0.4029699609538541E+005 +February +0.1017600000000000E+005 +0.2580109312781669E+005 +0.7868013262659784E+004 +0.3366910639047660E+005 +March +0.1092000000000000E+005 +0.2120961830858527E+005 +0.6169001827384862E+004 +0.2737862013597025E+005 +April +0.1164000000000000E+005 +0.1486670395882630E+005 +0.3978451920217696E+004 +0.1884515587904413E+005 +May +0.1238400000000000E+005 +0.7628377358636680E+004 +0.1915581261331994E+004 +0.9543958619968678E+004 +June +0.1310400000000000E+005 +0.2731920242477886E+004 +0.6593262316230313E+003 +0.3391246474100910E+004 +July +0.1384800000000000E+005 +0.1063312304434059E+004 +0.2777601024093779E+003 +0.1341072406843437E+004 +August +0.1459200000000000E+005 +0.2057131024277858E+004 +0.4836754477946225E+003 +0.2540806472072484E+004 +September +0.1531200000000000E+005 +0.4886254979749180E+004 +0.1108116448792786E+004 +0.5994371428541986E+004 +October +0.1605600000000000E+005 +0.1312982789194613E+005 +0.3133620291843777E+004 +0.1626344818378989E+005 +November +0.1677600000000000E+005 +0.2141597363167885E+005 +0.5715598281347823E+004 +0.2713157191302666E+005 +December +0.1752000000000000E+005 +0.2837193267579600E+005 +0.8142118404336021E+004 +0.3651405108013218E+005 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.1301301130104686E+003 +0.3577578501555571E+002 +0.1567056145561912E+003 +Time of Maximum +0.1752000000000000E+005 +0.1453096666666667E+005 +0.1429330000000000E+005 +0.1453096666666667E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.0000000000000000E+000 +Time of Minimum +0.7300033333333334E+004 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.3099081794071290E+005 +0.9306178154672469E+004 +0.4029699609538541E+005 +Time of Maximum +0.1752000000000000E+005 +0.9504000000000000E+004 +0.9504000000000000E+004 +0.9504000000000000E+004 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available +Minimum Value +0.8016000000000000E+004 +0.1063312304434059E+004 +0.2777601024093779E+003 +0.1341072406843437E+004 +Time of Minimum +0.8016000000000000E+004 +0.1384800000000000E+005 +0.1384800000000000E+005 +0.1384800000000000E+005 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.2241554289605119E+006 +0.6267451637187461E+005 +0.2868299453323836E+006 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/HPCtrlPrinter.Prt b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/HPCtrlPrinter.Prt new file mode 100644 index 0000000..97d9920 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/HPCtrlPrinter.Prt @@ -0,0 +1,6 @@ + TIME HPCtrl PriceCtrl ElPrice HotWatCtrl HotWatProportion + +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +2.0997000000000000E+01 +2.0000000000000000E+00 +9.9999837206454878E-01 + +1.6666666666666666E-01 +1.0000000000000000E+00 +1.0000000000000000E+00 +1.5273000000000000E+01 +2.0000000000000000E+00 +9.9999837206454878E-01 + +3.3333333333333331E-01 +1.0000000000000000E+00 +1.0000000000000000E+00 +1.5273000000000000E+01 +2.0000000000000000E+00 +9.9999837206454878E-01 + +5.0000000000000000E-01 +1.0000000000000000E+00 +1.0000000000000000E+00 +1.5273000000000000E+01 +2.0000000000000000E+00 +9.9999837206454878E-01 + +6.6666666666666663E-01 +1.0000000000000000E+00 +1.0000000000000000E+00 +1.5273000000000000E+01 +2.0000000000000000E+00 +9.9999837206454878E-01 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ModePrinter_step.prt b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ModePrinter_step.prt new file mode 100644 index 0000000..7ee7547 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/ModePrinter_step.prt @@ -0,0 +1,31 @@ + label not available + TIME ModePP12 ModePP21 ModePP13 ModePP31 ModePP14 ModePP41 ModePP34 ModePP43 + +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 + +1.6666666666666666E-01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 + +3.3333333333333331E-01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 + +5.0000000000000000E-01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 + +6.6666666666666663E-01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.1301301130104686E+003 +0.3577578501555571E+002 +0.1567056145561912E+003 +Time of Maximum +0.1752000000000000E+005 +0.1453096666666667E+005 +0.1429330000000000E+005 +0.1453096666666667E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.0000000000000000E+000 +Time of Minimum +0.7300033333333334E+004 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.3099081794071290E+005 +0.9306178154672469E+004 +0.4029699609538541E+005 +Time of Maximum +0.1752000000000000E+005 +0.9504000000000000E+004 +0.9504000000000000E+004 +0.9504000000000000E+004 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available +Minimum Value +0.8016000000000000E+004 +0.1063312304434059E+004 +0.2777601024093779E+003 +0.1341072406843437E+004 +Time of Minimum +0.8016000000000000E+004 +0.1384800000000000E+005 +0.1384800000000000E+005 +0.1384800000000000E+005 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.2241554289605119E+006 +0.6267451637187461E+005 +0.2868299453323836E+006 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/PCMOut.prt b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/PCMOut.prt new file mode 100644 index 0000000..76f23b4 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/PCMOut.prt @@ -0,0 +1,29 @@ + Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Period TIME VIceRatio TAvgPCM TCsHx1i TCsHx1o IceThicknessHx1 TsensorPcm1 TsensorPcm2 TsensorPcm3 TsensorPcm4 TsensorPcm5 + +7301 +0.7301000000000000E+004 +0.0000000000000000E+000 +0.5800904258479441E+001 +0.4252908005807225E+001 +0.4264850657284616E+001 +0.8500000403728334E-002 +0.5800488090286969E+001 +0.5800488090286969E+001 +0.5800488090286969E+001 +0.5800488090286969E+001 +0.5804649853460475E+001 + +7302 +0.7302000000000000E+004 +0.0000000000000000E+000 +0.5505737735683888E+001 +0.4154626414486458E+001 +0.4164421677429874E+001 +0.8500000403728334E-002 +0.5504540981738737E+001 +0.5504540981738737E+001 +0.5504540981738737E+001 +0.5504540981738737E+001 +0.5516508777392800E+001 + +7303 +0.7303000000000000E+004 +0.0000000000000000E+000 +0.5262761859503907E+001 +0.4102386021709501E+001 +0.4110572402873904E+001 +0.8500000403728334E-002 +0.5260909228060763E+001 +0.5260909228060763E+001 +0.5260909228060763E+001 +0.5260909228060763E+001 +0.5279435306983331E+001 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.3757501860842681E+001 +0.2097736271782394E+002 +0.2099936608590429E+002 +0.2099472944362750E+002 +0.2349161039931710E-001 +0.2096595221099379E+002 +0.2097582948199013E+002 +0.2097649146852061E+002 +0.2097864705928235E+002 +0.2098940687431523E+002 +Time of Maximum +0.1752000000000000E+005 +0.9981466666666667E+004 +0.1381336666666667E+005 +0.1389786666666667E+005 +0.1392306666666667E+005 +0.9981533333333333E+004 +0.1381336666666667E+005 +0.1381336666666667E+005 +0.1381336666666667E+005 +0.1381336666666667E+005 +0.1381336666666667E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.0000000000000000E+000 +0.2508749193413723E-001 -0.1371270097732050E+001 -0.1346831575796743E+001 +0.8500000403728336E-002 +0.1243671474505369E+000 +0.1138600374319783E-001 +0.3009697649059297E-002 +0.2677937608050258E-002 +0.2677937608050258E-002 +Time of Minimum +0.7300033333333334E+004 +0.1752000000000000E+005 +0.8995100000000000E+004 +0.9954366666666667E+004 +0.9954366666666667E+004 +0.1752000000000000E+005 +0.9982799999999999E+004 +0.8995100000000000E+004 +0.8995100000000000E+004 +0.8995100000000000E+004 +0.8995100000000000E+004 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.3464346873231666E+001 +0.2097407347184667E+002 +0.2099878457512353E+002 +0.2099399817974818E+002 +0.2342562586618425E-001 +0.2096482282695165E+002 +0.2097243054481084E+002 +0.2097300784426573E+002 +0.2097505245005375E+002 +0.2098568094618714E+002 +Time of Maximum +0.1752000000000000E+005 +0.9958000000000000E+004 +0.1381300000000000E+005 +0.1389600000000000E+005 +0.1392300000000000E+005 +0.9982000000000000E+004 +0.1381300000000000E+005 +0.1381300000000000E+005 +0.1381300000000000E+005 +0.1381300000000000E+005 +0.1381300000000000E+005 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.7301000000000000E+004 +0.0000000000000000E+000 +0.2828031741483173E-001 -0.1363099007407780E+001 -0.1339855683441965E+001 +0.8500000403728334E-002 +0.1376441763420022E+000 +0.1399925632811849E-001 +0.6611944665443862E-002 +0.6591592655305913E-002 +0.6591592655305913E-002 +Time of Minimum +0.7301000000000000E+004 +0.1752000000000000E+005 +0.8996000000000000E+004 +0.9955000000000000E+004 +0.9955000000000000E+004 +0.1752000000000000E+005 +0.9959000000000000E+004 +0.8996000000000000E+004 +0.8996000000000000E+004 +0.8996000000000000E+004 +0.8996000000000000E+004 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.6113425444455550E+002 +0.1375979199564355E+006 +0.1364001182064755E+006 +0.1361676579023886E+006 +0.8722865470406573E+002 +0.1374796288617924E+006 +0.1376028648780399E+006 +0.1376072115426567E+006 +0.1376111522757853E+006 +0.1376495946986551E+006 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/Src_Hr.Prt b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/Src_Hr.Prt new file mode 100644 index 0000000..92dbf30 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/Src_Hr.Prt @@ -0,0 +1,29 @@ + Label not available Label not available Label not available Label not available Label not available +Period TIME QSrc1TIn QSrc1TOut QSrc1dT QSrc1P + +7301 +0.7301000000000000E+004 +0.5316449349354768E+001 +0.1705450373999999E+002 +0.1173805439064524E+002 +0.2938719570789423E+004 + +7302 +0.7302000000000000E+004 +0.4809714171705465E+001 +0.1705163529000000E+002 +0.1224192111829453E+002 +0.3064866797947672E+004 + +7303 +0.7303000000000000E+004 +0.4757889622700678E+001 +0.1704876681000001E+002 +0.1229087718729932E+002 +0.3077123357110318E+004 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.2099509006287009E+002 +0.2099999994000000E+002 +0.1305276189896590E+002 +0.3267867533133576E+004 +Time of Maximum +0.1752000000000000E+005 +0.1392306666666667E+005 +0.1388900000000000E+005 +0.9979866666666667E+004 +0.9979866666666667E+004 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.1739945110341043E+000 +0.1300000006000000E+002 -0.4997998579536755E-002 -0.1251290524958542E+001 +Time of Minimum +0.7300033333333334E+004 +0.9979866666666667E+004 +0.9508000000000000E+004 +0.7300033333333334E+004 +0.7300033333333334E+004 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.2099443839975665E+002 +0.2099999993999998E+002 +0.1229087718729932E+002 +0.3077123357110318E+004 +Time of Maximum +0.1752000000000000E+005 +0.1392300000000000E+005 +0.1388900000000000E+005 +0.7303000000000000E+004 +0.7303000000000000E+004 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.7301000000000000E+004 +0.2107810788756277E+001 +0.1300000006000001E+002 +0.9659612300782312E-004 +0.2418364302108744E-001 +Time of Minimum +0.7301000000000000E+004 +0.9019000000000000E+004 +0.9508000000000000E+004 +0.1511700000000000E+005 +0.1511700000000000E+005 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.1387696133110873E+006 +0.1710231090666104E+006 +0.3225349575552048E+005 +0.8074930993560771E+007 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/control.prt b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/control.prt new file mode 100644 index 0000000..ef4d621 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/control.prt @@ -0,0 +1,29 @@ + Label not available Label not available Label not available Label not available Label not available +Period TIME SrcCtrlOnCountRel SrcCtrlStuckCountRel SrcCtrlOutsideTolCountRel SrcCtrlTTooLowCountRel + +7301 +0.7301000000000000E+004 +0.3261578604044358E-005 +0.0000000000000000E+000 +0.3261578604044358E-005 +0.0000000000000000E+000 + +7302 +0.7302000000000000E+004 +0.3261578604044358E-005 +0.0000000000000000E+000 +0.3261578604044358E-005 +0.0000000000000000E+000 + +7303 +0.7303000000000000E+004 +0.3261578604044358E-005 +0.0000000000000000E+000 +0.3261578604044358E-005 +0.0000000000000000E+000 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.3113176777560339E-001 +0.2544031311154599E-003 +0.8463796477495107E-002 +0.1299412915851272E-001 +Time of Maximum +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.3261578604044358E-005 +0.0000000000000000E+000 +0.3261578604044358E-005 +0.0000000000000000E+000 +Time of Minimum +0.7300033333333334E+004 +0.8553333333333334E+004 +0.8947600000000000E+004 +0.8553333333333334E+004 +0.8600766666666666E+004 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.3113176777560339E-001 +0.2544031311154599E-003 +0.8463796477495107E-002 +0.1299412915851272E-001 +Time of Maximum +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.7301000000000000E+004 +0.3261578604044358E-005 +0.0000000000000000E+000 +0.3261578604044358E-005 +0.0000000000000000E+000 +Time of Minimum +0.7301000000000000E+004 +0.8553000000000000E+004 +0.8947000000000000E+004 +0.8553000000000000E+004 +0.8600000000000000E+004 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.0000000000000000E+000 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-1/temp/don-not-process.xlsx b/tests/pytrnsys_process/data/doctest/results/sim-1/temp/don-not-process.xlsx new file mode 100644 index 0000000..e69de29 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-2/deck.dck b/tests/pytrnsys_process/data/doctest/results/sim-2/deck.dck new file mode 100644 index 0000000..0d8c6f1 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-2/deck.dck @@ -0,0 +1,19 @@ +********************************************************************** +** head.ddck from C:\actions-runner-simulations\_work\icegrid\icegrid\simulation\ddck\generic +********************************************************************** +******************************* +**BEGIN Head.ddck +******************************* +CONSTANTS 3 +mfrSolverAbsTol = 1e-5 +mfrSolverRelTol = 1e-8 +mfrTolSwitchThreshold = 0.5 +VERSION 17 +CONSTANTS 7 +START=8760.0 +STOP=16800.0 +dtSim=1/30 +dtSim_SI = dtSim*3600 +dt_s = dtSim_SI +DTHOur = 2 +recallStart = START + dtSim \ No newline at end of file diff --git a/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_60_TESS.Prt b/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_60_TESS.Prt new file mode 100644 index 0000000..3e44fa6 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_60_TESS.Prt @@ -0,0 +1,40 @@ + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Month TIME QSnk60PauxCondSwitch_kW QSnk60dQ QSnk60P QSnk60PDhw QSnk60dQlossTess QSnk60qImbTess +November +0.8016000000000000E+004 +0.2739038471963685E+005 +0.3305597637123231E+003 +0.2657585924762046E+005 +0.0000000000000000E+000 +0.4839659488883599E+003 -0.2405841556806381E-003 +December +0.8760000000000000E+004 +0.3653082246062115E+005 -0.5530145433263063E+002 +0.3608337483417692E+005 +0.0000000000000000E+000 +0.5027491370347230E+003 -0.5625836052013039E-004 +January +0.9504000000000000E+004 +0.4029575837851402E+005 +0.1051647854254593E+003 +0.3968779925538818E+005 +0.0000000000000000E+000 +0.5027942623773696E+003 +0.7532375001838146E-004 +February +0.1017600000000000E+005 +0.3367027797219673E+005 -0.5541224281131637E+002 +0.3327151759961177E+005 +0.0000000000000000E+000 +0.4541728008688523E+003 -0.1854733372949219E-003 +March +0.1092000000000000E+005 +0.2736211984248076E+005 +0.4823488202651360E+002 +0.2681119675543713E+005 +0.0000000000000000E+000 +0.5026883535486484E+003 -0.1485315195436400E-003 +April +0.1164000000000000E+005 +0.1885436764396009E+005 +0.9932862383865810E+001 +0.1835793195490307E+005 +0.0000000000000000E+000 +0.4865023377367202E+003 +0.4889367734945112E-003 +May +0.1238400000000000E+005 +0.9547887529319883E+004 -0.8432282015293416E+002 +0.9129137350991263E+004 +0.0000000000000000E+000 +0.5030725736142662E+003 +0.4248672767383949E-003 +June +0.1310400000000000E+005 +0.3379282407011493E+004 +0.5980877410952876E+002 +0.2832574461509232E+004 +0.0000000000000000E+000 +0.4868999564162112E+003 -0.7850234985219630E-003 +July +0.1384800000000000E+005 +0.1358836224731080E+004 +0.2288547672971498E+002 +0.8333080784932389E+003 +0.0000000000000000E+000 +0.5026423765756513E+003 +0.2929324614484253E-003 +August +0.1459200000000000E+005 +0.2547863525315991E+004 -0.7763044022822449E+002 +0.2122973754375004E+004 +0.0000000000000000E+000 +0.5025201664608986E+003 +0.4470831519933135E-004 +September +0.1531200000000000E+005 +0.5983685364522231E+004 -0.1931224652580705E+002 +0.5516729352176221E+004 +0.0000000000000000E+000 +0.4862681762961271E+003 +0.8257566480270171E-004 +October +0.1605600000000000E+005 +0.1626674710354874E+005 +0.8675484477088482E+002 +0.1567698148846663E+005 +0.0000000000000000E+000 +0.5030110046823442E+003 -0.2343709409837360E-003 +November +0.1677600000000000E+005 +0.2713080224115234E+005 +0.1486585165024623E+002 +0.2662932661840298E+005 +0.0000000000000000E+000 +0.4866094402700427E+003 +0.3308293126880372E-003 +December +0.1752000000000000E+005 +0.3651096159034943E+005 -0.9743718240540150E+002 +0.3610563796403934E+005 +0.0000000000000000E+000 +0.5027608800692021E+003 -0.7135459212407514E-004 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.1567178883254657E+003 +0.1498316257497021E+003 +0.2026969532250000E+003 +0.0000000000000000E+000 +0.6912866334970836E+000 +0.9380793585141989E-002 +Time of Maximum +0.1752000000000000E+005 +0.1453170000000000E+005 +0.1431240000000000E+005 +0.9970000000000000E+004 +0.1752000000000000E+005 +0.1339763333333333E+005 +0.1431996666666667E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.0000000000000000E+000 -0.1305464728770725E+003 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.6623132962509237E+000 -0.4491924450966689E-004 +Time of Minimum +0.7300033333333334E+004 +0.1752000000000000E+005 +0.9036200000000001E+004 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1166146666666667E+005 +0.1339763333333333E+005 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.4029575837851402E+005 +0.3305597637123231E+003 +0.3968779925538818E+005 +0.0000000000000000E+000 +0.5030725736142662E+003 +0.4889367734945112E-003 +Time of Maximum +0.1752000000000000E+005 +0.9504000000000000E+004 +0.8016000000000000E+004 +0.9504000000000000E+004 +0.1752000000000000E+005 +0.1238400000000000E+005 +0.1164000000000000E+005 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Minimum Value +0.8016000000000000E+004 +0.1358836224731080E+004 -0.9743718240540150E+002 +0.8333080784932389E+003 +0.0000000000000000E+000 +0.4541728008688523E+003 -0.7850234985219630E-003 +Time of Minimum +0.8016000000000000E+004 +0.1384800000000000E+005 +0.1752000000000000E+005 +0.1384800000000000E+005 +0.1752000000000000E+005 +0.1017600000000000E+005 +0.1310400000000000E+005 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.2868297970033618E+006 +0.2887908543522217E+003 +0.2796343487155706E+006 +0.0000000000000000E+000 +0.6906657414839417E+004 +0.1857714972067588E-004 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_HP_417.Prt b/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_HP_417.Prt new file mode 100644 index 0000000..c3224d9 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_HP_417.Prt @@ -0,0 +1,40 @@ + Label not available Label not available Label not available Label not available +Month TIME QSnk417PauxEvap_kW QSnk417PelAuxComp_kW QSnk417PauxCondSwitch_kW +November +0.8016000000000000E+004 +0.1226275530692601E+005 +0.3323914905475671E+004 +0.1558667021240161E+005 +December +0.8760000000000000E+004 +0.1559442183740693E+005 +0.4592357745846556E+004 +0.2018677958325342E+005 +January +0.9504000000000000E+004 +0.1672305303820799E+005 +0.5250112973326536E+004 +0.2197316601153448E+005 +February +0.1017600000000000E+005 +0.1386522914630289E+005 +0.4427328374170081E+004 +0.1829255752047291E+005 +March +0.1092000000000000E+005 +0.1170891744115594E+005 +0.3580218278317417E+004 +0.1528913571947335E+005 +April +0.1164000000000000E+005 +0.8573249066949065E+004 +0.2442140994555307E+004 +0.1101539006150438E+005 +May +0.1238400000000000E+005 +0.5058245852448125E+004 +0.1373126391146144E+004 +0.6431372243594264E+004 +June +0.1310400000000000E+005 +0.2058179957446717E+004 +0.5462844315772998E+003 +0.2604464389024021E+004 +July +0.1384800000000000E+005 +0.1112711020367338E+004 +0.2986643122124257E+003 +0.1411375332579762E+004 +August +0.1459200000000000E+005 +0.1687378545961088E+004 +0.4042240778645191E+003 +0.2091602623825608E+004 +September +0.1531200000000000E+005 +0.3726969178757922E+004 +0.8564657037832161E+003 +0.4583434882541140E+004 +October +0.1605600000000000E+005 +0.7992527772951324E+004 +0.1928101584157020E+004 +0.9920629357108299E+004 +November +0.1677600000000000E+005 +0.1219368881826823E+005 +0.3293701701707968E+004 +0.1548739051997609E+005 +December +0.1752000000000000E+005 +0.1559025725213526E+005 +0.4591309094435684E+004 +0.2018156634657094E+005 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.7803200967829763E+002 +0.2225795256975758E+002 +0.9464431889865128E+002 +Time of Maximum +0.1752000000000000E+005 +0.1452846666666667E+005 +0.1471026666666667E+005 +0.1452846666666667E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.0000000000000000E+000 +Time of Minimum +0.7300033333333334E+004 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.1672305303820799E+005 +0.5250112973326536E+004 +0.2197316601153448E+005 +Time of Maximum +0.1752000000000000E+005 +0.9504000000000000E+004 +0.9504000000000000E+004 +0.9504000000000000E+004 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available +Minimum Value +0.8016000000000000E+004 +0.1112711020367338E+004 +0.2986643122124257E+003 +0.1411375332579762E+004 +Time of Minimum +0.8016000000000000E+004 +0.1384800000000000E+005 +0.1384800000000000E+005 +0.1384800000000000E+005 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.1281475842352855E+006 +0.3690795056857546E+005 +0.1650555348038634E+006 diff --git a/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_HP_60.Prt b/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_HP_60.Prt new file mode 100644 index 0000000..7e8eb56 --- /dev/null +++ b/tests/pytrnsys_process/data/doctest/results/sim-2/temp/ENERGY_BALANCE_MO_HP_60.Prt @@ -0,0 +1,40 @@ + Label not available Label not available Label not available Label not available +Month TIME QSnk60PauxEvap_kW QSnk60PelAuxComp_kW QSnk60PauxCondSwitch_kW +November +0.8016000000000000E+004 +0.2161541391775242E+005 +0.5774970801884425E+004 +0.2739038471963685E+005 +December +0.8760000000000000E+004 +0.2839267028775213E+005 +0.8138152172868851E+004 +0.3653082246062115E+005 +January +0.9504000000000000E+004 +0.3099428433317627E+005 +0.9301474045337894E+004 +0.4029575837851402E+005 +February +0.1017600000000000E+005 +0.2580666288374605E+005 +0.7863615088450608E+004 +0.3367027797219673E+005 +March +0.1092000000000000E+005 +0.2120052667326299E+005 +0.6161593169217803E+004 +0.2736211984248076E+005 +April +0.1164000000000000E+005 +0.1487655271216166E+005 +0.3977814931798481E+004 +0.1885436764396009E+005 +May +0.1238400000000000E+005 +0.7631470925168908E+004 +0.1916416604150954E+004 +0.9547887529319883E+004 +June +0.1310400000000000E+005 +0.2722728178424616E+004 +0.6565542285868747E+003 +0.3379282407011493E+004 +July +0.1384800000000000E+005 +0.1075849396990147E+004 +0.2829868277409343E+003 +0.1358836224731080E+004 +August +0.1459200000000000E+005 +0.2063584850258126E+004 +0.4842786750578675E+003 +0.2547863525315991E+004 +September +0.1531200000000000E+005 +0.4878709783176264E+004 +0.1104975581345968E+004 +0.5983685364522231E+004 +October +0.1605600000000000E+005 +0.1313326219709075E+005 +0.3133484906458060E+004 +0.1626674710354874E+005 +November +0.1677600000000000E+005 +0.2141632871051952E+005 +0.5714473530632816E+004 +0.2713080224115234E+005 +December +0.1752000000000000E+005 +0.2837604369443418E+005 +0.8134917895915098E+004 +0.3651096159034943E+005 + + Maximum Instantaneous Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.1301078640256694E+003 +0.3577592603922007E+002 +0.1567178883254657E+003 +Time of Maximum +0.1752000000000000E+005 +0.1453170000000000E+005 +0.1431996666666667E+005 +0.1453170000000000E+005 + + Minimum Instantaneous Values + Label not available Label not available Label not available Label not available +Minimum Value +0.7300033333333334E+004 +0.0000000000000000E+000 +0.0000000000000000E+000 +0.0000000000000000E+000 +Time of Minimum +0.7300033333333334E+004 +0.1752000000000000E+005 +0.1752000000000000E+005 +0.1752000000000000E+005 + + Maximum Integrated Values + Label not available Label not available Label not available Label not available +Maximum Value +0.1752000000000000E+005 +0.3099428433317627E+005 +0.9301474045337894E+004 +0.4029575837851402E+005 +Time of Maximum +0.1752000000000000E+005 +0.9504000000000000E+004 +0.9504000000000000E+004 +0.9504000000000000E+004 + + Minimum Integrated Values + Label not available Label not available Label not available Label not available +Minimum Value +0.8016000000000000E+004 +0.1075849396990147E+004 +0.2829868277409343E+003 +0.1358836224731080E+004 +Time of Minimum +0.8016000000000000E+004 +0.1384800000000000E+005 +0.1384800000000000E+005 +0.1384800000000000E+005 + + Sum (note: sums are set to zero for inputs that were not integrated.) + Label not available Label not available Label not available Label not available +Total +0.0000000000000000E+000 +0.2241840885439120E+006 +0.6264570845944647E+005 +0.2868297970033618E+006 From 1e494894329aa2b7d2f603eb9338a2d0f96eee21 Mon Sep 17 00:00:00 2001 From: sebastian-swob Date: Mon, 17 Mar 2025 15:59:57 +0100 Subject: [PATCH 2/3] black reformat --- dev-tools/dev_tools.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dev-tools/dev_tools.py b/dev-tools/dev_tools.py index a19cae1..903ec47 100644 --- a/dev-tools/dev_tools.py +++ b/dev-tools/dev_tools.py @@ -242,13 +242,12 @@ def _maybe_run_pytest(arguments, test_results_dir_path): ): _run_unit_tests_with_pytest(arguments, test_results_dir_path) + def _maybe_run_doctest(arguments): - if ( - arguments.shallRunAll - or arguments.doctestArguments is not None - ): + if arguments.shallRunAll or arguments.doctestArguments is not None: _run_doctests_with_pytest() + def _run_unit_tests_with_pytest(arguments, test_results_dir_path): marker_expressions = _get_marker_expressions( arguments.pytestMarkersExpression From 5630a5e4cc88eab19613394f33a7097206a29970 Mon Sep 17 00:00:00 2001 From: sebastian-swob Date: Mon, 17 Mar 2025 16:19:23 +0100 Subject: [PATCH 3/3] force doctest to read form raw files --- pytrnsys_process/process/process_batch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytrnsys_process/process/process_batch.py b/pytrnsys_process/process/process_batch.py index 9797c92..0d818b4 100644 --- a/pytrnsys_process/process/process_batch.py +++ b/pytrnsys_process/process/process_batch.py @@ -202,6 +202,8 @@ def process_single_simulation( ... >>> api.global_settings.reader.read_step_files = True ... + >>> api.global_settings.reader.force_reread_prt = True + ... >>> simulation = api.process_single_simulation( # doctest: +ELLIPSIS ... _pl.Path("tests/pytrnsys_process/data/doctest/results/sim-1"), ... processing_step_1