postreise.analyze.generation.tests package

Submodules

postreise.analyze.generation.tests.test_binding module

class postreise.analyze.generation.tests.test_binding.TestCheckEpsilon(methodName='runTest')[source]

Bases: TestCase

test_bad_type()[source]
test_bad_value()[source]
test_good_float_value()[source]
test_good_int_value()[source]
test_zero()[source]
class postreise.analyze.generation.tests.test_binding.TestCheckScenario(methodName='runTest')[source]

Bases: TestCase

test_bad_scenario_state()[source]
test_bad_scenario_type()[source]
test_good_scenario()[source]
class postreise.analyze.generation.tests.test_binding.TestPmaxConstraints(methodName='runTest')[source]

Bases: TestCase

get_default_expected()[source]
setUp()[source]

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

test_pmax_constraints_default()[source]
test_pmax_constraints_default_sepc_epsilon1()[source]
test_pmax_constraints_default_sepc_epsilon2()[source]
test_pmax_constraints_default_sepc_epsilon3()[source]
class postreise.analyze.generation.tests.test_binding.TestPminConstraints(methodName='runTest')[source]

Bases: TestCase

get_default_expected()[source]
setUp()[source]

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

test_pmin_constraints_default()[source]
test_pmin_constraints_default_spec_epsilon1()[source]
test_pmin_constraints_default_spec_epsilon2()[source]
test_pmin_constraints_default_spec_epsilon3()[source]
class postreise.analyze.generation.tests.test_binding.TestRampConstraints(methodName='runTest')[source]

Bases: TestCase

get_default_expected()[source]
setUp()[source]

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

test_ramp_constraints_default()[source]
test_ramp_constraints_spec_epsilon1()[source]
test_ramp_constraints_spec_epsilon2()[source]
test_ramp_constraints_spec_epsilon3()[source]

postreise.analyze.generation.tests.test_capacity module

postreise.analyze.generation.tests.test_capacity.test_NLDC_calculation_solar()[source]
postreise.analyze.generation.tests.test_capacity.test_NLDC_calculation_solar_wind()[source]
postreise.analyze.generation.tests.test_capacity.test_NLDC_calculation_wind_5_hour()[source]
postreise.analyze.generation.tests.test_capacity.test_NLDC_calculation_wind_list()[source]
postreise.analyze.generation.tests.test_capacity.test_NLDC_calculation_wind_set()[source]
postreise.analyze.generation.tests.test_capacity.test_NLDC_calculation_wind_solar()[source]
postreise.analyze.generation.tests.test_capacity.test_NLDC_calculation_wind_str()[source]
postreise.analyze.generation.tests.test_capacity.test_NLDC_calculation_wind_tuple()[source]
postreise.analyze.generation.tests.test_capacity.test_calculate_net_load_peak_solar()[source]
postreise.analyze.generation.tests.test_capacity.test_calculate_net_load_peak_solar_5()[source]
postreise.analyze.generation.tests.test_capacity.test_calculate_net_load_peak_solar_wind()[source]
postreise.analyze.generation.tests.test_capacity.test_calculate_net_load_peak_solar_wind_5()[source]
postreise.analyze.generation.tests.test_capacity.test_calculate_net_load_peak_wind()[source]
postreise.analyze.generation.tests.test_capacity.test_calculate_net_load_peak_wind_5()[source]
postreise.analyze.generation.tests.test_capacity.test_failure_hours_type()[source]
postreise.analyze.generation.tests.test_capacity.test_failure_no_resources()[source]
postreise.analyze.generation.tests.test_capacity.test_failure_no_resources_present()[source]
postreise.analyze.generation.tests.test_capacity.test_failure_one_resource_not_present()[source]
postreise.analyze.generation.tests.test_capacity.test_failure_resources_type_dict()[source]
postreise.analyze.generation.tests.test_capacity.test_failure_scenario_type()[source]
postreise.analyze.generation.tests.test_capacity.test_failure_too_many_hours()[source]
postreise.analyze.generation.tests.test_capacity.test_failure_zero_hours()[source]
postreise.analyze.generation.tests.test_capacity.test_get_capacity_by_resources()[source]
postreise.analyze.generation.tests.test_capacity.test_get_capacity_factor_time_series()[source]
postreise.analyze.generation.tests.test_capacity.test_get_storage_capacity()[source]
postreise.analyze.generation.tests.test_capacity.test_sum_capacity_by_type_zone()[source]

postreise.analyze.generation.tests.test_costs module

postreise.analyze.generation.tests.test_costs.mock_gencost(mock_gencost_data)[source]
postreise.analyze.generation.tests.test_costs.mock_gencost_data()[source]
postreise.analyze.generation.tests.test_costs.mock_pg(mock_plant)[source]
postreise.analyze.generation.tests.test_costs.mock_plant()[source]
postreise.analyze.generation.tests.test_costs.mock_scenario(mock_gencost_data, mock_pg)[source]
postreise.analyze.generation.tests.test_costs.test_calculate_cost_equal_both_methods(mock_gencost, mock_pg, mock_scenario)[source]
postreise.analyze.generation.tests.test_costs.test_negative_pg(mock_gencost, mock_pg)[source]
postreise.analyze.generation.tests.test_costs.test_pass_just_gencost(mock_gencost)[source]
postreise.analyze.generation.tests.test_costs.test_pass_just_pg(mock_pg)[source]
postreise.analyze.generation.tests.test_costs.test_pass_nothing()[source]
postreise.analyze.generation.tests.test_costs.test_pass_too_many_things(mock_gencost, mock_pg, mock_scenario)[source]

postreise.analyze.generation.tests.test_curtailment module

class postreise.analyze.generation.tests.test_curtailment.TestCalculateCurtailmentPercentage(methodName='runTest')[source]

Bases: TestCase

test_calculate_curtailment_percentage_default()[source]
test_calculate_curtailment_percentage_solar()[source]
test_calculate_curtailment_percentage_solar_wind()[source]
test_calculate_curtailment_percentage_wind()[source]
test_calculate_curtailment_percentage_wind_offshore()[source]
class postreise.analyze.generation.tests.test_curtailment.TestCalculateCurtailmentTimeSeries(methodName='runTest')[source]

Bases: TestCase

test_calculate_curtailment_time_series_default()[source]
test_calculate_curtailment_time_series_solar()[source]
test_calculate_curtailment_time_series_solar_wind_set()[source]
test_calculate_curtailment_time_series_solar_wind_tuple()[source]
test_calculate_curtailment_time_series_wind_argument_type()[source]
test_calculate_curtailment_time_series_wind_solar_list()[source]
class postreise.analyze.generation.tests.test_curtailment.TestCalculateCurtailmentTimeSeriesGrouped(methodName='runTest')[source]

Bases: TestCase

test_curtailment_time_series_by_areas()[source]
test_curtailment_time_series_by_areas_and_resource()[source]
test_curtailment_time_series_by_areas_and_resources()[source]
test_curtailment_time_series_by_resource_and_area()[source]
test_curtailment_time_series_by_resources_and_areas()[source]
class postreise.analyze.generation.tests.test_curtailment.TestCheckResourceInScenario(methodName='runTest')[source]

Bases: TestCase

test_error_geothermal_curtailment()[source]
test_error_no_solar()[source]
class postreise.analyze.generation.tests.test_curtailment.TestGetCurtailmentTimeSeries(methodName='runTest')[source]

Bases: TestCase

test_get_curtailment_time_series()[source]
class postreise.analyze.generation.tests.test_curtailment.TestSummarizeCurtailmentByBus(methodName='runTest')[source]

Bases: TestCase

test_summarize_curtailment_by_bus()[source]
class postreise.analyze.generation.tests.test_curtailment.TestSummarizeCurtailmentByLocation(methodName='runTest')[source]

Bases: TestCase

test_summarize_curtailment_by_location()[source]

postreise.analyze.generation.tests.test_emissions module

class postreise.analyze.generation.tests.test_emissions.TestCarbonCalculation[source]

Bases: object

test_carbon_calc_always_on(scenario, mock_plant)[source]
test_carbon_calc_decommit(scenario, mock_plant)[source]
test_carbon_calc_simple(scenario, mock_plant)[source]
class postreise.analyze.generation.tests.test_emissions.TestEmissionStatsArguments[source]

Bases: object

test_method_type(scenario)[source]
test_method_value(scenario)[source]
test_pollutant_value(scenario)[source]
class postreise.analyze.generation.tests.test_emissions.TestEmissionsSummarization[source]

Bases: object

test_carbon_diff(scenario)[source]
test_emissions_is_non_negative(scenario)[source]
test_emissions_summarization(mock_pg, mock_plant)[source]
class postreise.analyze.generation.tests.test_emissions.TestNOxCalculation[source]

Bases: object

test_calculate_nox_disallowed_method(scenario)[source]
test_calculate_nox_simple(scenario)[source]
class postreise.analyze.generation.tests.test_emissions.TestSO2Calculation[source]

Bases: object

test_calculate_so2_disallowed_method(scenario)[source]
test_calculate_so2_simple(scenario)[source]
postreise.analyze.generation.tests.test_emissions.mock_gencost()[source]
postreise.analyze.generation.tests.test_emissions.mock_pg(mock_plant)[source]
postreise.analyze.generation.tests.test_emissions.mock_plant()[source]
postreise.analyze.generation.tests.test_emissions.scenario(mock_plant, mock_gencost, mock_pg)[source]

postreise.analyze.generation.tests.test_summarize module

class postreise.analyze.generation.tests.test_summarize.TestSumGenerationByTypeZone(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_print_statement()[source]
test_sum_generation()[source]
test_with_scenario_not_analyze()[source]
test_with_string()[source]
test_with_time_change()[source]
test_with_time_change_and_time_slice()[source]
test_with_time_slice()[source]
postreise.analyze.generation.tests.test_summarize.hist_gen_raw()[source]
postreise.analyze.generation.tests.test_summarize.sim_gen_result()[source]
postreise.analyze.generation.tests.test_summarize.test_get_generation_time_series_by_resources()[source]
postreise.analyze.generation.tests.test_summarize.test_get_storage_time_series()[source]
postreise.analyze.generation.tests.test_summarize.test_sum_generation_by_state_shape(sim_gen_result)[source]
postreise.analyze.generation.tests.test_summarize.test_sum_generation_by_state_values_scaled(sim_gen_result)[source]
postreise.analyze.generation.tests.test_summarize.test_summarize_hist_gen_include_areas(hist_gen_raw)[source]
postreise.analyze.generation.tests.test_summarize.test_summarize_hist_gen_shape(hist_gen_raw)[source]

Module contents