prereise.gather.demanddata.eia.tests package

Submodules

prereise.gather.demanddata.eia.tests.test_clean_data module

prereise.gather.demanddata.eia.tests.test_clean_data.random() x in the interval [0, 1).
prereise.gather.demanddata.eia.tests.test_clean_data.test_slope_interpolate()[source]

prereise.gather.demanddata.eia.tests.test_get_eia_data module

prereise.gather.demanddata.eia.tests.test_get_eia_data.test_eia_download()[source]

Check data frame assembled from data download by API call from EIA. Test checks that the correct number of files are downloaded and correct number of columns are created.

Token string can be obtained by registering here.

prereise.gather.demanddata.eia.tests.test_get_eia_data.test_from_excel()[source]

Tests data frame assembled from Excel spreadsheets manually downloaded from EIA. Test checks that correct number of columns are created.

prereise.gather.demanddata.eia.tests.test_map_ba module

prereise.gather.demanddata.eia.tests.test_map_ba.create_ba_to_region_dataframe()[source]
prereise.gather.demanddata.eia.tests.test_map_ba.create_loadzone_dataframe()[source]
prereise.gather.demanddata.eia.tests.test_map_ba.test_aggregate_ba_demand_sums_first_columns_pairs()[source]
prereise.gather.demanddata.eia.tests.test_map_ba.test_aggregate_ba_demand_sums_first_three_columns()[source]
prereise.gather.demanddata.eia.tests.test_map_ba.test_get_demand_in_loadzone_case()[source]
prereise.gather.demanddata.eia.tests.test_map_ba.test_get_demand_in_loadzone_has_equal_total_demand()[source]
prereise.gather.demanddata.eia.tests.test_map_ba.test_map_buses_to_ba()[source]
prereise.gather.demanddata.eia.tests.test_map_ba.test_map_buses_to_county()[source]

Module contents