bim2sim.plugins.PluginTEASER.test.regression package

Submodules

bim2sim.plugins.PluginTEASER.test.regression.create_regression_results module

Create fresh TEASER regression results.

This file holds setups to create new regression results for regression tests.

class bim2sim.plugins.PluginTEASER.test.regression.create_regression_results.CreateRegressionResultsTEASER

Bases: RegressionTestTEASER

create_regression_results_digitalhub()

Create fresh regression results for FM_ARC_DigitalHub_with_SB_neu.ifc

create_regression_results_fzkhaus()

Create fresh regression results for the AC20-FZK-Haus.ifc

bim2sim.plugins.PluginTEASER.test.regression.prepare_regression_tests module

bim2sim.plugins.PluginTEASER.test.regression.prepare_regression_tests.prepare_regression_tests()

bim2sim.plugins.PluginTEASER.test.regression.test_teaser module

class bim2sim.plugins.PluginTEASER.test.regression.test_teaser.RegressionTestTEASER

Bases: RegressionTestBase

create_regression_results()

Creates regression results based on simulation model.

If simulation is successful and regression results differ from new simulation results, the user is asked if the results should be overwritten. If simulation is successful and simulation results are same with regression results nothing happens. If simulation is not successful nothing happens.

create_regression_setup(tolerance: float = 0.001, batch_mode: bool = False)

Create a regression test setup based on BuildingsPy regression tests.

This method uses the BuildingsPy library to create a regression test for the currents project TEASER modelica simulation model export.

Args:
tolerance: the tolerance in which the regression results will be

accepted as valid

batch_mode: in batch mode no input is required and no new results

can be created

run_regression_test()
setUp()
tearDown()
class bim2sim.plugins.PluginTEASER.test.regression.test_teaser.TestRegressionTEASER(methodName='runTest')

Bases: RegressionTestTEASER, TestCase

test_run_digitalhub()

Run TEASER regression test with FM_ARC_DigitalHub_with_SB_neu and one zone model export

test_run_kitfzkhaus()

Run TEASER regression test with AC20-FZK-Haus.ifc and one zone model export