@utils.measure_execution_time
def test_modular_household_configurations():
    path = '../examples/modular_household.py'
    func = 'modular_household_explicit'
    mysimpar = SimulationParameters.one_day_only(year=2019, seconds_per_timestep=60)
    predictive = True
    pv_included = random.choice([True, False])
    smart_devices_included = random.choice([True, False])
    boiler_included = random.choice(['electricity', 'hydrogen', None])
    heating_device_included = random.choice(['heat_pump', 'oil_heater', 'district_heating'])
    mysimpar.reset_system_config(predictive=predictive, pv_included=pv_included, smart_devices_included=smart_devices_included, boiler_included=boiler_included, heating_device_included=heating_device_included)
    hisim_main.main(path, func, mysimpar)
@utils.measure_execution_time
def test_modular_household_configurations():
    path = '../examples/modular_household.py'
    func = 'modular_household_explicit'
    mysimpar = SimulationParameters.one_day_only(year=2019, seconds_per_timestep=60)
    predictive = True
    pv_included = random.choice([True, False])
    smart_devices_included = random.choice([True, False])
    boiler_included = random.choice(['electricity', 'hydrogen', None])
    heating_device_included = random.choice(['heat_pump', 'oil_heater', 'district_heating'])
    mysimpar.reset_system_config(predictive=predictive, pv_included=pv_included, smart_devices_included=smart_devices_included, boiler_included=boiler_included, heating_device_included=heating_device_included)
    hisim_main.main(path, func, mysimpar)