Skip to content
Snippets Groups Projects
Select Git revision
  • 9581c69bdf919f8f3b1127620103463a7a551aef
  • main default protected
  • NIS_Workshop
  • dev_yhe_citymodel
  • dev_jli_gridmodel
  • dev_jfu_community
  • sce_mobility_district
  • modelling_altertheim
  • dev_jbr_mkr_modelclass_settings
  • dev_lpe_market_components
  • dev_network_yni
  • dev_EVA_dst
  • dev_V2X_jfu
  • dev_haoyu
  • Landlord-to-Tenant_Study
  • dev_jfu_V2X
  • dev_nni_hp_sizing
  • dev_nni_prosumer_rh
  • dev_dph_jkr_multi_use_bat
  • dev_jou_cme_dsm_simple
  • dev_jbr_district_poster
21 results

optimization_model.py

Blame
  • test_clear_temp_files.py 1.02 KiB
    import os
    import shutil
    import pytest
    
    @pytest.mark.order(-1)
    def test_clear_temp_files():
    
        dir_test = os.path.abspath(os.path.join(__file__, '../'))
    
        temp_dirs = [
            os.path.join(dir_test, 'temp_add'), # test_run_simulator
            os.path.join(dir_test, 'temp_run_add'), # test_run_simulator
            os.path.join(dir_test, 'temp_run_mass_point_model'), # test_run_mass_point_model
            os.path.join(dir_test, 'temp_ravaflow_1'), # test_ravaflow24
            os.path.join(dir_test, 'temp_ravaflow_2'), # test_ravaflow24
            os.path.join(dir_test, 'temp_run_ravaflow'), # test_run_ravaflow24
            os.path.join(dir_test, 'temp_ravaflow_results'), # test_run_ravaflow24
            os.path.join(dir_test, 'temp_metropolis_hastings'), # test_metropolis_hasting
            os.path.join(dir_test, 'temp_bayes_inference'), # test_bayes_inference
            os.path.join(dir_test, 'temp_active_learning') # test_active_learning
        ]
    
        for temp_dir in temp_dirs:
            if os.path.exists(temp_dir):
                shutil.rmtree(temp_dir)