powersimdata.input.tests package

Submodules

powersimdata.input.tests.test_change_table module

powersimdata.input.tests.test_change_table.ct()[source]
powersimdata.input.tests.test_change_table.test_add_branch_Pmin_and_Pmax(ct)[source]
powersimdata.input.tests.test_change_table.test_add_branch_argument_buses_in_different_interconnect(ct)[source]
powersimdata.input.tests.test_change_table.test_add_branch_zero_distance_between_buses(ct)[source]
powersimdata.input.tests.test_change_table.test_add_bus_bad_list_entries(ct)[source]
powersimdata.input.tests.test_change_table.test_add_bus_bad_type(ct)[source]
powersimdata.input.tests.test_change_table.test_add_bus_success(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_Pmin_and_Pmax_and_capacity(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_Pmin_and_Pmax_success(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_Pmin_gt_Pmax(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_argument_negative_capacity(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_argument_number_of_keys(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_argument_same_buses(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_argument_type(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_argument_wrong_bus(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_argument_wrong_keys(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_in_different_interconnect(ct)[source]
powersimdata.input.tests.test_change_table.test_add_dcline_output(ct)[source]
powersimdata.input.tests.test_change_table.test_add_demand_flexibility(monkeypatch)[source]
powersimdata.input.tests.test_change_table.test_add_new_elements_at_new_buses(ct)[source]
powersimdata.input.tests.test_change_table.test_add_plant_argument_type(ct)[source]
powersimdata.input.tests.test_change_table.test_add_plant_check_pmin_is_added(ct)[source]
powersimdata.input.tests.test_change_table.test_add_plant_negative_pmax(ct)[source]
powersimdata.input.tests.test_change_table.test_add_plant_negative_pmin(ct)[source]
powersimdata.input.tests.test_change_table.test_add_plant_neighbor_can_be_on_same_bus(ct)[source]
powersimdata.input.tests.test_change_table.test_add_plant_pmin_pmax_relationship(ct)[source]
powersimdata.input.tests.test_change_table.test_add_plant_wrong_bus(ct)[source]
powersimdata.input.tests.test_change_table.test_add_plant_wrong_resource(ct)[source]
powersimdata.input.tests.test_change_table.test_add_renewable_plant_check_neighbor_is_added(ct)[source]
powersimdata.input.tests.test_change_table.test_add_renewable_plant_missing_key_bus_id(ct)[source]
powersimdata.input.tests.test_change_table.test_add_renewable_plant_missing_key_pmax(ct)[source]
powersimdata.input.tests.test_change_table.test_add_renewable_plant_missing_key_type(ct)[source]
powersimdata.input.tests.test_change_table.test_add_thermal_plant_missing_key_c0(ct)[source]
powersimdata.input.tests.test_change_table.test_add_thermal_plant_missing_key_c1(ct)[source]
powersimdata.input.tests.test_change_table.test_add_thermal_plant_missing_key_c2(ct)[source]
powersimdata.input.tests.test_change_table.test_add_thermal_plant_wrong_coefficients(ct)[source]
powersimdata.input.tests.test_change_table.test_change_table_clear_bad_key(ct)[source]
powersimdata.input.tests.test_change_table.test_change_table_clear_bad_type(ct)[source]
powersimdata.input.tests.test_change_table.test_change_table_clear_success(ct)[source]
powersimdata.input.tests.test_change_table.test_remove_branch(ct)[source]
powersimdata.input.tests.test_change_table.test_remove_bus(ct)[source]
powersimdata.input.tests.test_change_table.test_resource_exist(ct)[source]
powersimdata.input.tests.test_change_table.test_scale_pmin_by_plant_and_zone_too_high(ct)[source]
powersimdata.input.tests.test_change_table.test_scale_pmin_by_plant_too_high(ct)[source]
powersimdata.input.tests.test_change_table.test_scale_pmin_by_zone_too_high(ct)[source]

powersimdata.input.tests.test_check module

powersimdata.input.tests.test_check.check_grid_models_match_failure()[source]
powersimdata.input.tests.test_check.check_grid_models_match_success()[source]
powersimdata.input.tests.test_check.europe()[source]
powersimdata.input.tests.test_check.mock_gencost()[source]
powersimdata.input.tests.test_check.mock_grid(mock_scenario)[source]
powersimdata.input.tests.test_check.mock_plant()[source]
powersimdata.input.tests.test_check.mock_scenario(mock_plant, mock_gencost)[source]
powersimdata.input.tests.test_check.test_check_areas_and_format(europe)[source]
powersimdata.input.tests.test_check.test_check_areas_and_format_argument_type()[source]
powersimdata.input.tests.test_check.test_check_areas_and_format_argument_value()[source]
powersimdata.input.tests.test_check.test_check_areas_are_in_grid_and_format(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_areas_are_in_grid_and_format_argument_type(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_areas_are_in_grid_and_format_argument_value(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_data_frame()[source]
powersimdata.input.tests.test_check.test_check_data_frame_argument_type()[source]
powersimdata.input.tests.test_check.test_check_data_frame_argument_value()[source]
powersimdata.input.tests.test_check.test_check_date()[source]
powersimdata.input.tests.test_check.test_check_date_argument_type()[source]
powersimdata.input.tests.test_check.test_check_date_range_in_scenario(mock_scenario)[source]
powersimdata.input.tests.test_check.test_check_date_range_in_scenario_argument_value(mock_scenario)[source]
powersimdata.input.tests.test_check.test_check_date_range_in_time_series_argument_value()[source]
powersimdata.input.tests.test_check.test_check_epsilon()[source]
powersimdata.input.tests.test_check.test_check_epsilon_argument_type()[source]
powersimdata.input.tests.test_check.test_check_epsilon_argument_value()[source]
powersimdata.input.tests.test_check.test_check_gencost(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_gencost_argument_type(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_gencost_argument_value(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_grid(interconnect)[source]
powersimdata.input.tests.test_check.test_check_grid_type_failure()[source]
powersimdata.input.tests.test_check.test_check_grid_type_success(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_number_hours_to_analyze(mock_scenario)[source]
powersimdata.input.tests.test_check.test_check_number_hours_to_analyze_argument_type(mock_scenario)[source]
powersimdata.input.tests.test_check.test_check_number_hours_to_analyze_argument_value(mock_scenario)[source]
powersimdata.input.tests.test_check.test_check_plants_are_in_grid(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_plants_are_in_grid_argument_type(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_plants_are_in_grid_argument_value(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_resources_and_format(europe)[source]
powersimdata.input.tests.test_check.test_check_resources_and_format_argument_type()[source]
powersimdata.input.tests.test_check.test_check_resources_and_format_argument_value()[source]
powersimdata.input.tests.test_check.test_check_resources_are_in_grid_and_format(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_resources_are_in_grid_and_format_argument_value(mock_grid)[source]
powersimdata.input.tests.test_check.test_check_resources_are_renewable_and_format(europe)[source]
powersimdata.input.tests.test_check.test_check_resources_are_renewable_and_format_argument_value()[source]
powersimdata.input.tests.test_check.test_check_time_series()[source]
powersimdata.input.tests.test_check.test_check_time_series_argument_value()[source]
powersimdata.input.tests.test_check.test_error_handling()[source]

powersimdata.input.tests.test_configure module

powersimdata.input.tests.test_configure.test_linearize_gencost()[source]
powersimdata.input.tests.test_configure.test_linearize_gencost_pmin_equal_pmax()[source]
powersimdata.input.tests.test_configure.test_linearize_gencost_two_segment()[source]

powersimdata.input.tests.test_expansion_candidates module

powersimdata.input.tests.test_expansion_candidates.test_check_branch_voltage()[source]
powersimdata.input.tests.test_expansion_candidates.test_check_bus_id()[source]
powersimdata.input.tests.test_expansion_candidates.test_column_types()[source]
powersimdata.input.tests.test_expansion_candidates.test_set_candidates()[source]

powersimdata.input.tests.test_grid module

powersimdata.input.tests.test_grid.base_texas()[source]
powersimdata.input.tests.test_grid.base_western()[source]
powersimdata.input.tests.test_grid.test_deepcopy_works(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_failure_branch(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_failure_bus(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_failure_dcline(base_western)[source]
powersimdata.input.tests.test_grid.test_grid_eq_failure_gencost_before(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_failure_plant(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_failure_simple(base_texas, base_western)[source]
powersimdata.input.tests.test_grid.test_grid_eq_failure_storage(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_failure_sub(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_success_bus_type(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_success_gencost_after(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_success_plant_ramp30(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_eq_success_simple(base_texas)[source]
powersimdata.input.tests.test_grid.test_grid_incorrect_source()[source]
powersimdata.input.tests.test_grid.test_grid_type()[source]
powersimdata.input.tests.test_grid.test_that_fields_are_not_modified_when_loading_another_grid()[source]

powersimdata.input.tests.test_helpers module

class powersimdata.input.tests.test_helpers.TestResourcesInGrid(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_get_active_resources_in_grid()[source]
test_get_resources_in_grid()[source]
class powersimdata.input.tests.test_helpers.TestSummarizePlantToBus(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_summarize_all_buses_false()[source]
test_summarize_all_buses_true()[source]
test_summarize_default()[source]
class powersimdata.input.tests.test_helpers.TestSummarizePlantToLocation(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_summarize_location()[source]
powersimdata.input.tests.test_helpers.check_dataframe_matches(received_return, expected_return)[source]
powersimdata.input.tests.test_helpers.grid()[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_argument_type(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_argument_value(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_area()[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_interconnects(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_interconnects_argument_type(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_interconnects_argument_value(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_loadzones(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_loadzones_argument_type(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_loadzones_argument_value(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_states(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_states_argument_type(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_for_resources_in_states_argument_value(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_interconnects(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_interconnects_argument_type(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_interconnects_argument_value(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_loadzones(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_loadzones_argument_type(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_loadzones_argument_value(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_states(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_states_argument_type(grid)[source]
powersimdata.input.tests.test_helpers.test_get_plant_id_in_states_argument_value(grid)[source]
powersimdata.input.tests.test_helpers.test_get_storage_id_in_area()[source]

powersimdata.input.tests.test_input_data module

powersimdata.input.tests.test_input_data.test_check_field()[source]
powersimdata.input.tests.test_input_data.test_get_file_components()[source]

powersimdata.input.tests.test_profile_input module

powersimdata.input.tests.test_profile_input.test_get_file_path()[source]
powersimdata.input.tests.test_profile_input.test_get_profile_version()[source]
powersimdata.input.tests.test_profile_input.test_get_profile_version_electrification()[source]

powersimdata.input.tests.test_transform_demand module

powersimdata.input.tests.test_transform_demand.test_aggregate_demand()[source]
powersimdata.input.tests.test_transform_demand.test_profile_mappings()[source]

powersimdata.input.tests.test_transform_grid module

powersimdata.input.tests.test_transform_grid.ct()[source]
powersimdata.input.tests.test_transform_grid.get_branch_id(zone_id)[source]
powersimdata.input.tests.test_transform_grid.get_plant_id(zone_id, gen_type)[source]
powersimdata.input.tests.test_transform_grid.test_add_branch(ct)[source]
powersimdata.input.tests.test_transform_grid.test_add_bus(ct)[source]
powersimdata.input.tests.test_transform_grid.test_add_dcline(ct)[source]
powersimdata.input.tests.test_transform_grid.test_add_gen_add_entries_in_gencost_data_frame(ct)[source]
powersimdata.input.tests.test_transform_grid.test_add_gen_add_entries_in_plant_data_frame(ct)[source]
powersimdata.input.tests.test_transform_grid.test_add_storage(ct)[source]
powersimdata.input.tests.test_transform_grid.test_added_branch_scaled(ct)[source]
powersimdata.input.tests.test_transform_grid.test_remove_branch(ct)[source]
powersimdata.input.tests.test_transform_grid.test_remove_bus(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_branch_one_zone(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_branch_two_zones(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_dcline(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_gen_capacity_one_zone(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_gen_one_plant(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_gen_pmin_one_plant(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_gen_pmin_two_types_two_zones(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_gencost_one_plant(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_gencost_two_types_two_zones(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_one_branch(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_renewable_gen_gencost_one_zone(ct)[source]
powersimdata.input.tests.test_transform_grid.test_scale_thermal_gen_gencost_two_types_two_zones(ct)[source]
powersimdata.input.tests.test_transform_grid.test_that_only_capacities_are_modified_when_scaling_renewable_gen(ct)[source]

powersimdata.input.tests.test_transform_profile module

powersimdata.input.tests.test_transform_profile.base_grid()[source]
powersimdata.input.tests.test_transform_profile.get_change_table_for_id_scaling(base_grid, resource)[source]
powersimdata.input.tests.test_transform_profile.get_change_table_for_new_plant_addition(base_grid, resource)[source]
powersimdata.input.tests.test_transform_profile.get_change_table_for_zone_scaling(base_grid, resource)[source]
powersimdata.input.tests.test_transform_profile.get_plant_with_resource(base_grid, resource)[source]
powersimdata.input.tests.test_transform_profile.get_zone_with_resource(base_grid, resource)[source]
powersimdata.input.tests.test_transform_profile.mock_profile_input_class(profile_input)[source]
powersimdata.input.tests.test_transform_profile.profile_input(base_grid)[source]
powersimdata.input.tests.test_transform_profile.raw_demand(profile_input)[source]
powersimdata.input.tests.test_transform_profile.raw_demand_flexibility_dn(profile_input)[source]
powersimdata.input.tests.test_transform_profile.raw_demand_flexibility_up(profile_input)[source]
powersimdata.input.tests.test_transform_profile.raw_hydro(profile_input)[source]
powersimdata.input.tests.test_transform_profile.raw_solar(profile_input)[source]
powersimdata.input.tests.test_transform_profile.raw_wind(profile_input)[source]
powersimdata.input.tests.test_transform_profile.test_demand_is_scaled(base_grid, raw_demand)[source]
powersimdata.input.tests.test_transform_profile.test_flexible_demand_profiles_are_trimmed(base_grid, raw_demand_flexibility_up, raw_demand_flexibility_dn, monkeypatch)[source]
powersimdata.input.tests.test_transform_profile.test_hydro_is_scaled_by_id(base_grid, raw_hydro)[source]
powersimdata.input.tests.test_transform_profile.test_hydro_is_scaled_by_zone(base_grid, raw_hydro)[source]
powersimdata.input.tests.test_transform_profile.test_hydro_is_scaled_by_zone_and_id(base_grid, raw_hydro)[source]
powersimdata.input.tests.test_transform_profile.test_new_hydro_added(base_grid, raw_hydro)[source]
powersimdata.input.tests.test_transform_profile.test_new_hydro_are_not_scaled(base_grid, raw_hydro)[source]
powersimdata.input.tests.test_transform_profile.test_new_hydro_profile(base_grid, raw_hydro)[source]
powersimdata.input.tests.test_transform_profile.test_new_solar_are_added(base_grid, raw_solar)[source]
powersimdata.input.tests.test_transform_profile.test_new_solar_are_not_scaled(base_grid, raw_solar)[source]
powersimdata.input.tests.test_transform_profile.test_new_solar_profile(base_grid, raw_solar)[source]
powersimdata.input.tests.test_transform_profile.test_new_wind_are_added(base_grid, raw_wind)[source]
powersimdata.input.tests.test_transform_profile.test_new_wind_are_not_scaled(base_grid, raw_wind)[source]
powersimdata.input.tests.test_transform_profile.test_new_wind_profile(base_grid, raw_wind)[source]
powersimdata.input.tests.test_transform_profile.test_solar_is_scaled_by_id(base_grid, raw_solar)[source]
powersimdata.input.tests.test_transform_profile.test_solar_is_scaled_by_zone(base_grid, raw_solar)[source]
powersimdata.input.tests.test_transform_profile.test_solar_is_scaled_by_zone_and_id(base_grid, raw_solar)[source]
powersimdata.input.tests.test_transform_profile.test_wind_is_scaled_by_id(base_grid, raw_wind)[source]
powersimdata.input.tests.test_transform_profile.test_wind_is_scaled_by_zone(base_grid, raw_wind)[source]
powersimdata.input.tests.test_transform_profile.test_wind_is_scaled_by_zone_and_id(base_grid, raw_wind)[source]

Module contents