def test_energy_signature_missing(missing_dataset):
    expected_output = build_expected(('Load_vs_Oat', 'Weather_Sensitivity'),
                                      (os.path.join(basedir, 'energy_signature_missing_SP.ref.csv'), 
                                       os.path.join(basedir, 'energy_signature_missing_WS.ref.csv')))
    config = build_energysig_config_parser(app_name, 
                                           missing_dataset.id, 
                                           missing_dataset.map.id)
    run_appwrapper(config, expected_output)
def test_energy_signature_missing(missing_dataset):
    expected_output = build_expected(
        ('Load_vs_Oat', 'Weather_Sensitivity'),
        (os.path.join(basedir, 'energy_signature_missing_SP.ref.csv'),
         os.path.join(basedir, 'energy_signature_missing_WS.ref.csv')))
    config = build_energysig_config_parser(app_name, missing_dataset.id,
                                           missing_dataset.map.id)
    run_appwrapper(config, expected_output)
Exemple #3
0
def test_heat_map_floats_missing(floats_missing_dataset):
    
    expected_output = build_expected('Heat_Map', 'heat_map_floats_missing.ref.csv')
    config = build_heatmap_config_parser(app_name, 
                                         floats_missing_dataset.id,
                                         floats_missing_dataset.map.id)
     
    run_appwrapper(config, expected_output)
def test_whole_building_energy_savings_base(base_dataset):
    expected_output = build_expected('DayTimeTemperatureModel',
                                     'whole_building_energy_savings_base.ref.csv')
    config = build_whole_building_config_parser(app_name, 
                                                base_dataset.id, 
                                                base_dataset.map.id)
    
    run_appwrapper(config, expected_output)
def test_whole_building_energy_savings_base(base_dataset):
    expected_output = build_expected(
        'DayTimeTemperatureModel',
        'whole_building_energy_savings_base.ref.csv')
    config = build_whole_building_config_parser(app_name, base_dataset.id,
                                                base_dataset.map.id)

    run_appwrapper(config, expected_output)
Exemple #6
0
def test_heat_map_basic(basic_dataset):
    
    expected_output = build_expected('Heat_Map', 'heat_map_basic.ref.csv')     
    config = build_heatmap_config_parser(app_name, 
                                         basic_dataset.id,
                                         basic_dataset.map.id)
     
    run_appwrapper(config, expected_output)
def test_daily_summary_missing_(missing_dataset):
    ds_missing_exp = {
        'Daily_Summary_Table': os.path.join(basedir,
                                    'daily_summary_missing.ref.csv')
    }
    
    config = build_dailysummary_config_parser(app_name, missing_dataset.id, 
                                 missing_dataset.map.id)
    
    run_appwrapper(config, ds_missing_exp)
def test_daily_summary_one_to_five(onetofive_dataset):
    ds_onetofive_exp = {
        'Daily_Summary_Table': os.path.join(basedir,
                                    'daily_summary_onetofive.ref.csv')
    }
    
    config = build_dailysummary_config_parser(app_name, onetofive_dataset.id, 
                                 onetofive_dataset.map.id)
    
    run_appwrapper(config, ds_onetofive_exp)
def test_daily_summary_missing_(missing_dataset):
    ds_missing_exp = {
        'Daily_Summary_Table':
        os.path.join(basedir, 'daily_summary_missing.ref.csv')
    }

    config = build_dailysummary_config_parser(app_name, missing_dataset.id,
                                              missing_dataset.map.id)

    run_appwrapper(config, ds_missing_exp)
def test_daily_summary_one_to_five(onetofive_dataset):
    ds_onetofive_exp = {
        'Daily_Summary_Table':
        os.path.join(basedir, 'daily_summary_onetofive.ref.csv')
    }

    config = build_dailysummary_config_parser(app_name, onetofive_dataset.id,
                                              onetofive_dataset.map.id)

    run_appwrapper(config, ds_onetofive_exp)
def test_daily_summary_floats(floats_dataset):
    
    ds_floats_exp = {
        'Daily_Summary_Table': os.path.join(basedir,
                                    'daily_summary_floats.ref.csv')
    }
    
    config = build_dailysummary_config_parser(app_name, floats_dataset.id, 
                                 floats_dataset.map.id)
    
    run_appwrapper(config, ds_floats_exp)
def test_daily_summary_floats(floats_dataset):

    ds_floats_exp = {
        'Daily_Summary_Table':
        os.path.join(basedir, 'daily_summary_floats.ref.csv')
    }

    config = build_dailysummary_config_parser(app_name, floats_dataset.id,
                                              floats_dataset.map.id)

    run_appwrapper(config, ds_floats_exp)
def test_daily_summary_same_numbers(samenumber_dataset):

    ds_same_num_exp = {
        'Daily_Summary_Table':
        os.path.join(basedir, 'daily_summary_same_number.ref.csv')
    }

    config = build_dailysummary_config_parser(app_name, samenumber_dataset.id,
                                              samenumber_dataset.map.id)

    run_appwrapper(config, ds_same_num_exp)
def test_longitudinal_BM_floats(floats_dataset):
    outfile = os.path.join(basedir, 'longitudinal_bm_floats.ref.csv')
    
    expected = build_expected(('Longitudinal_BM',), 
                              (outfile,))
    
    config = build_longitudinal_bm_config_parser(app_name,
                                                  floats_dataset.id,
                                                  floats_dataset.map.id)
    
    run_appwrapper(config, expected)
def test_daily_summary_same_numbers(samenumber_dataset):
    
    ds_same_num_exp = {
        'Daily_Summary_Table': os.path.join(basedir, 
                                    'daily_summary_same_number.ref.csv')
    }  
    
    config = build_dailysummary_config_parser(app_name, samenumber_dataset.id, 
                                 samenumber_dataset.map.id)
    
    run_appwrapper(config, ds_same_num_exp)
def test_load_duration_floats(floats_dataset):
    config = ConfigParser()

    config.add_section("global_settings")
    config.set("global_settings", 'application', app_name)
    config.set("global_settings", 'dataset_id', str(floats_dataset.id))
    config.set("global_settings", 'sensormap_id', str(floats_dataset.map.id))

    config.add_section("application_config")
    config.set('application_config', 'building_name', '"bldg90"')

    config.add_section('inputs')
    config.set('inputs', 'load', 'lbnl/bldg90/WholeBuildingPower')

    expected = {
        'Load_Duration': os.path.join(basedir, 'load_duration_floats.ref.csv')
    }

    run_appwrapper(config, expected)
def test_load_duration_floats(floats_dataset):
    config = ConfigParser()
    
    config.add_section("global_settings")
    config.set("global_settings", 'application', app_name)
    config.set("global_settings", 'dataset_id', str(floats_dataset.id))
    config.set("global_settings", 'sensormap_id', str(floats_dataset.map.id))
    
    config.add_section("application_config")
    config.set('application_config', 'building_name', '"bldg90"')
    
    config.add_section('inputs')
    config.set('inputs', 'load', 'lbnl/bldg90/WholeBuildingPower')
    
    expected = {
        'Load_Duration': os.path.join(basedir, 'load_duration_floats.ref.csv')
    }
    
    run_appwrapper(config, expected)