| src/distopf/__init__.py |
(no function) |
20 |
0 |
0 |
100% |
| src/distopf/cases/__init__.py |
(no function) |
2 |
0 |
0 |
100% |
| src/distopf/cim_importer/__init__.py |
(no function) |
2 |
0 |
0 |
100% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
load_cim_model |
2 |
2 |
0 |
0% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter.__init__ |
5 |
0 |
0 |
100% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter.load_network |
8 |
0 |
0 |
100% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter.convert |
18 |
2 |
0 |
89% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._process_branch_data |
8 |
0 |
0 |
100% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._fix_bus_phases_from_branches |
9 |
1 |
0 |
89% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._fix_downstream_phase_consistency |
8 |
1 |
0 |
88% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._link_dataframes |
50 |
10 |
0 |
80% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._aggregate_generators |
9 |
1 |
0 |
89% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._get_generator_columns |
1 |
1 |
0 |
0% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._correct_generator_phases |
4 |
0 |
0 |
100% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._correct_generators_without_phases |
15 |
1 |
0 |
93% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._distribute_phase_parameters |
16 |
1 |
0 |
94% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._convert_secondary_gens |
16 |
2 |
0 |
88% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._convert_secondary_loads |
6 |
0 |
0 |
100% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter.save |
26 |
2 |
0 |
92% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._get_branch_columns |
1 |
0 |
0 |
100% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
CIMToCSVConverter._get_bus_columns |
1 |
0 |
0 |
100% |
| src/distopf/cim_importer/cim_to_csv_converter.py |
(no function) |
28 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/__init__.py |
(no function) |
8 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/base_processor.py |
BaseProcessor.__init__ |
1 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/base_processor.py |
BaseProcessor.process |
1 |
1 |
0 |
0% |
| src/distopf/cim_importer/processors/base_processor.py |
BaseProcessor.process_branch |
1 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/base_processor.py |
BaseProcessor._create_base_branch_dict |
1 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/base_processor.py |
BaseProcessor._get_terminals_info |
6 |
3 |
0 |
50% |
| src/distopf/cim_importer/processors/base_processor.py |
BaseProcessor._get_bus_voltage_base |
17 |
3 |
0 |
82% |
| src/distopf/cim_importer/processors/base_processor.py |
(no function) |
12 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/bus_processor.py |
BusProcessor.process |
7 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/bus_processor.py |
BusProcessor._process_bus |
6 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/bus_processor.py |
BusProcessor._process_bus_location |
7 |
2 |
0 |
71% |
| src/distopf/cim_importer/processors/bus_processor.py |
BusProcessor._find_node_location |
18 |
9 |
0 |
50% |
| src/distopf/cim_importer/processors/bus_processor.py |
BusProcessor._extract_coordinates_from_location |
19 |
6 |
0 |
68% |
| src/distopf/cim_importer/processors/bus_processor.py |
BusProcessor._determine_bus_type |
6 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/bus_processor.py |
BusProcessor._process_bus_loads |
8 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/bus_processor.py |
BusProcessor._add_consumer_load |
22 |
1 |
0 |
95% |
| src/distopf/cim_importer/processors/bus_processor.py |
(no function) |
12 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/capacitor_processor.py |
CapacitorProcessor.process |
6 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/capacitor_processor.py |
CapacitorProcessor._process_single_capacitor |
28 |
1 |
0 |
96% |
| src/distopf/cim_importer/processors/capacitor_processor.py |
CapacitorProcessor._get_phase_str |
10 |
3 |
0 |
70% |
| src/distopf/cim_importer/processors/capacitor_processor.py |
(no function) |
7 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/generator_processor.py |
GeneratorProcessor.process |
4 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/generator_processor.py |
GeneratorProcessor._process_power_electronics_connections |
6 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/generator_processor.py |
GeneratorProcessor._process_power_electronics_connection |
41 |
2 |
0 |
95% |
| src/distopf/cim_importer/processors/generator_processor.py |
GeneratorProcessor._process_energy_sources |
9 |
3 |
0 |
67% |
| src/distopf/cim_importer/processors/generator_processor.py |
GeneratorProcessor._process_energy_source |
11 |
11 |
0 |
0% |
| src/distopf/cim_importer/processors/generator_processor.py |
GeneratorProcessor._get_phase_str |
12 |
12 |
0 |
0% |
| src/distopf/cim_importer/processors/generator_processor.py |
(no function) |
10 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/line_processor.py |
LineProcessor.process |
4 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/line_processor.py |
LineProcessor._process_line |
17 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/line_processor.py |
LineProcessor._process_line_impedance |
19 |
4 |
0 |
79% |
| src/distopf/cim_importer/processors/line_processor.py |
LineProcessor._process_line_impedance_no_phases |
13 |
13 |
0 |
0% |
| src/distopf/cim_importer/processors/line_processor.py |
(no function) |
9 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor.process_branch |
11 |
1 |
0 |
91% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor.process |
11 |
1 |
0 |
91% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor.is_regulator |
7 |
1 |
0 |
86% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._is_regulator_tank |
5 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._create_regulator_branch_entry |
10 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._get_regulator_phases |
10 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._create_regulator_branch_entry_from_tank |
13 |
1 |
0 |
92% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._get_tank_phases |
9 |
4 |
0 |
56% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._extract_regulator_data |
24 |
5 |
0 |
79% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._extract_tap_changer_data |
10 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._extract_regulator_data_from_tank |
24 |
24 |
0 |
0% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._get_regulator_voltage_base |
18 |
10 |
0 |
44% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._get_tank_voltage_base |
10 |
3 |
0 |
70% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._process_regulator_impedance |
30 |
2 |
0 |
93% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._process_regulator_tank_impedance |
5 |
2 |
0 |
60% |
| src/distopf/cim_importer/processors/regulator_processor.py |
RegulatorProcessor._extract_tank_impedance_values |
29 |
10 |
0 |
66% |
| src/distopf/cim_importer/processors/regulator_processor.py |
(no function) |
21 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/switch_processor.py |
SwitchProcessor.process |
6 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/switch_processor.py |
SwitchProcessor._process_switch |
18 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/switch_processor.py |
SwitchProcessor._get_switch_impedance_per_phase |
3 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/switch_processor.py |
SwitchProcessor._apply_switch_impedance |
7 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/switch_processor.py |
SwitchProcessor._get_switch_status |
3 |
1 |
0 |
67% |
| src/distopf/cim_importer/processors/switch_processor.py |
(no function) |
9 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor.__init__ |
2 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor.process |
5 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._process_transformer |
12 |
1 |
0 |
92% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._process_2winding_transformer |
7 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._process_3winding_transformer |
11 |
3 |
0 |
73% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._update_impedance_data |
2 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._process_power_transformer_end_impedance |
27 |
11 |
0 |
59% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._process_3winding_end_impedance |
25 |
4 |
0 |
84% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._process_transformer_tank_impedance |
10 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._extract_tank_impedance |
11 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._extract_tank_end_impedance |
25 |
2 |
0 |
92% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._extract_tank_direct_impedance |
16 |
6 |
0 |
62% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._extract_tank_info_impedance |
9 |
4 |
0 |
56% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._convert_to_per_unit |
8 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._get_tank_voltage_base |
13 |
5 |
0 |
62% |
| src/distopf/cim_importer/processors/transformer_processor.py |
TransformerProcessor._set_default_transformer_impedance |
4 |
0 |
0 |
100% |
| src/distopf/cim_importer/processors/transformer_processor.py |
(no function) |
24 |
0 |
0 |
100% |
| src/distopf/cim_importer/utils/__init__.py |
(no function) |
2 |
0 |
0 |
100% |
| src/distopf/cim_importer/utils/phase_utils.py |
PhaseUtils.get_phase_str |
4 |
0 |
0 |
100% |
| src/distopf/cim_importer/utils/phase_utils.py |
PhaseUtils.get_equipment_phases |
18 |
1 |
0 |
94% |
| src/distopf/cim_importer/utils/phase_utils.py |
PhaseUtils.filter_standard_phases |
7 |
0 |
0 |
100% |
| src/distopf/cim_importer/utils/phase_utils.py |
(no function) |
8 |
0 |
0 |
100% |
| src/distopf/cim_importer/validators/__init__.py |
(no function) |
2 |
0 |
0 |
100% |
| src/distopf/cim_importer/validators/topology_validator.py |
TopologyValidator.__init__ |
1 |
0 |
0 |
100% |
| src/distopf/cim_importer/validators/topology_validator.py |
TopologyValidator.validate_tree_topology |
16 |
4 |
0 |
75% |
| src/distopf/cim_importer/validators/topology_validator.py |
TopologyValidator._check_connectivity |
8 |
3 |
0 |
62% |
| src/distopf/cim_importer/validators/topology_validator.py |
TopologyValidator._check_radial_topology |
15 |
6 |
0 |
60% |
| src/distopf/cim_importer/validators/topology_validator.py |
TopologyValidator._check_electrical_consistency |
20 |
0 |
0 |
100% |
| src/distopf/cim_importer/validators/topology_validator.py |
TopologyValidator._check_orphaned_buses |
6 |
2 |
0 |
67% |
| src/distopf/cim_importer/validators/topology_validator.py |
TopologyValidator._build_graph |
7 |
0 |
0 |
100% |
| src/distopf/cim_importer/validators/topology_validator.py |
TopologyValidator.validate_power_flow_data |
14 |
14 |
0 |
0% |
| src/distopf/cim_importer/validators/topology_validator.py |
(no function) |
14 |
0 |
0 |
100% |
| src/distopf/distOPF.py |
create_model |
13 |
13 |
0 |
0% |
| src/distopf/distOPF.py |
auto_solve |
18 |
18 |
0 |
0% |
| src/distopf/distOPF.py |
_handle_path_input |
10 |
10 |
0 |
0% |
| src/distopf/distOPF.py |
_get_data_from_path |
38 |
38 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.__init__ |
90 |
90 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.run_pf |
22 |
22 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.run |
18 |
18 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.save_result_data |
6 |
6 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.save_input_data |
16 |
16 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.make_plots |
13 |
13 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.plot_network |
1 |
1 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.plot_power_flows |
1 |
1 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.plot_voltages |
1 |
1 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.plot_decision_variables |
1 |
1 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.add_generator |
32 |
32 |
0 |
0% |
| src/distopf/distOPF.py |
DistOPFCase.add_capacitor |
20 |
20 |
0 |
0% |
| src/distopf/distOPF.py |
(no function) |
36 |
3 |
0 |
92% |
| src/distopf/dss_importer/__init__.py |
(no function) |
2 |
0 |
0 |
100% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
load_dss_model |
3 |
3 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.__init__ |
16 |
16 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.update |
9 |
9 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.get_bus_names |
23 |
23 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.bus_names_to_index_map |
2 |
2 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.bus_names_to_index_map_fun |
1 |
1 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.basekV_LL |
2 |
2 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.source |
2 |
2 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.gen_buses |
6 |
6 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.cap_buses |
6 |
6 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.load_buses |
6 |
6 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.num_phase_map |
2 |
2 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.get_v_solved |
8 |
8 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.get_apparent_power_flows |
23 |
23 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter._get_line_zmatrix |
17 |
17 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter._get_reactor_zmatrix |
4 |
4 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter._get_powers |
15 |
15 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.get_branch_data |
73 |
73 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.get_bus_data |
23 |
23 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.get_gen_data |
89 |
89 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.get_cap_data |
20 |
20 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.get_reg_data |
51 |
51 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter._get_loads |
39 |
39 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.to_csv |
8 |
8 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
DSSToCSVConverter.update_gen_q |
15 |
15 |
0 |
0% |
| src/distopf/dss_importer/dss_to_csv_converter.py |
(no function) |
43 |
0 |
0 |
100% |
| src/distopf/importer.py |
Case.__init__ |
11 |
0 |
0 |
100% |
| src/distopf/importer.py |
Case._validate_case |
1 |
0 |
0 |
100% |
| src/distopf/importer.py |
create_case |
13 |
6 |
0 |
54% |
| src/distopf/importer.py |
_detect_model_type |
21 |
14 |
0 |
33% |
| src/distopf/importer.py |
_validate_case_data |
10 |
4 |
0 |
60% |
| src/distopf/importer.py |
create_case_from_csv |
36 |
7 |
0 |
81% |
| src/distopf/importer.py |
create_case_from_dss |
13 |
13 |
0 |
0% |
| src/distopf/importer.py |
create_case_from_cim |
14 |
14 |
0 |
0% |
| src/distopf/importer.py |
modify_case |
26 |
26 |
0 |
0% |
| src/distopf/importer.py |
(no function) |
16 |
0 |
0 |
100% |
| src/distopf/matrix_models/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
BaseModel.__init__ |
41 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
BaseModel._init_rx |
5 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.initialize_variable_index_pointers |
6 |
6 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.build |
7 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase._variable_tables |
21 |
2 |
0 |
90% |
| src/distopf/matrix_models/base.py |
LinDistBase._add_device_variables |
6 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.init_bounds |
8 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.user_added_limits |
1 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_voltage_limits |
6 |
1 |
0 |
83% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_generator_limits |
22 |
3 |
0 |
86% |
| src/distopf/matrix_models/base.py |
LinDistBase.branch_into_j |
2 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.branches_out_of_j |
2 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.idx |
20 |
1 |
0 |
95% |
| src/distopf/matrix_models/base.py |
LinDistBase.additional_variable_idx |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.phase_exists |
3 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.create_model |
17 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_power_flow_model |
9 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_voltage_drop_model |
27 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_regulator_model |
20 |
1 |
0 |
95% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_swing_voltage_model |
6 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_generator_model |
17 |
4 |
0 |
76% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_load_model |
13 |
13 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.add_capacitor_model |
10 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.create_inequality_constraints |
2 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.create_hexagon_constraints |
33 |
33 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.create_octagon_constraints |
33 |
2 |
0 |
94% |
| src/distopf/matrix_models/base.py |
LinDistBase.parse_results |
6 |
6 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.get_device_variables |
10 |
1 |
0 |
90% |
| src/distopf/matrix_models/base.py |
LinDistBase.get_voltages |
3 |
0 |
0 |
100% |
| src/distopf/matrix_models/base.py |
LinDistBase.get_p_gens |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.get_q_gens |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.get_q_caps |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.get_apparent_power_flows |
15 |
15 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.get_p_flows |
15 |
15 |
0 |
0% |
| src/distopf/matrix_models/base.py |
LinDistBase.get_q_flows |
15 |
15 |
0 |
0% |
| src/distopf/matrix_models/base.py |
(no function) |
53 |
0 |
0 |
100% |
| src/distopf/matrix_models/lindist.py |
LinDistModel.__init__ |
2 |
2 |
0 |
0% |
| src/distopf/matrix_models/lindist.py |
(no function) |
12 |
5 |
0 |
58% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
LinDistModelCapMI.__init__ |
2 |
2 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
LinDistModelCapMI.initialize_variable_index_pointers |
8 |
8 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
LinDistModelCapMI.additional_variable_idx |
5 |
5 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
LinDistModelCapMI.add_capacitor_model |
10 |
10 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
LinDistModelCapMI.create_capacitor_constraints |
26 |
26 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
LinDistModelCapMI.create_inequality_constraints |
5 |
5 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
LinDistModelCapMI.get_zc |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
LinDistModelCapMI.get_uc |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_mi.py |
(no function) |
16 |
0 |
0 |
100% |
| src/distopf/matrix_models/lindist_capacitor_regulator_mi.py |
LinDistModelCapacitorRegulatorMI.__init__ |
6 |
6 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_regulator_mi.py |
LinDistModelCapacitorRegulatorMI.add_regulator_model |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_regulator_mi.py |
LinDistModelCapacitorRegulatorMI.cvxpy_regulator_mi_constraints |
20 |
20 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_regulator_mi.py |
LinDistModelCapacitorRegulatorMI.get_regulator_taps |
13 |
13 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_regulator_mi.py |
LinDistModelCapacitorRegulatorMI.calculate_x0 |
9 |
9 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_regulator_mi.py |
LinDistModelCapacitorRegulatorMI.solve |
18 |
18 |
0 |
0% |
| src/distopf/matrix_models/lindist_capacitor_regulator_mi.py |
(no function) |
17 |
0 |
0 |
100% |
| src/distopf/matrix_models/lindist_loads.py |
LinDistModelL.__init__ |
2 |
0 |
0 |
100% |
| src/distopf/matrix_models/lindist_loads.py |
LinDistModelL.initialize_variable_index_pointers |
8 |
0 |
0 |
100% |
| src/distopf/matrix_models/lindist_loads.py |
LinDistModelL.additional_variable_idx |
5 |
1 |
0 |
80% |
| src/distopf/matrix_models/lindist_loads.py |
LinDistModelL.add_load_model |
19 |
0 |
0 |
100% |
| src/distopf/matrix_models/lindist_loads.py |
LinDistModelL.get_p_loads |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_loads.py |
LinDistModelL.get_q_loads |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_loads.py |
(no function) |
11 |
0 |
0 |
100% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.__init__ |
2 |
2 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.initialize_variable_index_pointers |
5 |
5 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.add_generator_limits |
9 |
9 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.idx |
18 |
18 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.add_power_flow_model |
26 |
26 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.add_generator_model |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.add_load_model |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.add_capacitor_model |
8 |
8 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.create_inequality_constraints |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.get_device_variables |
11 |
11 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.get_voltages |
3 |
3 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.get_q_gens |
5 |
5 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
LinDistModelPGen.get_apparent_power_flows |
15 |
15 |
0 |
0% |
| src/distopf/matrix_models/lindist_p_gen.py |
(no function) |
22 |
0 |
0 |
100% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.__init__ |
2 |
2 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.initialize_variable_index_pointers |
5 |
5 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.add_generator_limits |
14 |
14 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.idx |
18 |
18 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.add_power_flow_model |
26 |
26 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.add_generator_model |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.add_load_model |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.add_capacitor_model |
8 |
8 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.create_inequality_constraints |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.get_p_gens |
5 |
5 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
LinDistModelQGen.get_apparent_power_flows |
15 |
15 |
0 |
0% |
| src/distopf/matrix_models/lindist_q_gen.py |
(no function) |
20 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/__init__.py |
(no function) |
6 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.__init__ |
64 |
10 |
0 |
84% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP._init_rx |
5 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.branch_data |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.bus_data |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.gen_data |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.cap_data |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.reg_data |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.bat_data |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.a_ineq |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
BaseModelMP.b_ineq |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.initialize_variable_index_pointers |
24 |
24 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.build |
8 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP._variable_tables |
21 |
2 |
0 |
90% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP._add_device_variables |
6 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP._add_device_variables_no_phases |
6 |
6 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.init_bounds |
12 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.additional_limits |
3 |
1 |
0 |
67% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_voltage_limits |
8 |
2 |
0 |
75% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_generator_limits |
27 |
4 |
0 |
85% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_battery_discharging_limits |
10 |
2 |
0 |
80% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_battery_charging_limits |
10 |
2 |
0 |
80% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_battery_soc_limits |
12 |
2 |
0 |
83% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.branch_into_j |
4 |
1 |
0 |
75% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.branches_out_of_j |
4 |
1 |
0 |
75% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.idx |
32 |
2 |
0 |
94% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.additional_variable_idx |
3 |
3 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.phase_exists |
5 |
1 |
0 |
80% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.create_model |
19 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_power_flow_model |
11 |
1 |
0 |
91% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_voltage_drop_model |
29 |
1 |
0 |
97% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_regulator_model |
22 |
2 |
0 |
91% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_swing_voltage_model |
11 |
2 |
0 |
82% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_generator_model |
24 |
1 |
0 |
96% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_load_model |
22 |
22 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_capacitor_model |
12 |
1 |
0 |
92% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.add_battery_model |
41 |
5 |
0 |
88% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.create_battery_cycle_limit_constraints |
22 |
22 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.create_inequality_constraints |
5 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.create_hexagon_constraints |
34 |
34 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.create_inverter_octagon_constraints |
34 |
1 |
0 |
97% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.create_octagon_battery_constraints |
44 |
32 |
0 |
27% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.create_octagon_thermal_constraints |
46 |
46 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_device_variables |
18 |
1 |
0 |
94% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_device_variables_no_phases |
15 |
15 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_voltages |
6 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_p_gens |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_q_gens |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_p_batt |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_q_batt |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_q_caps |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_p_charge |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_p_discharge |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_soc |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_apparent_power_flows |
20 |
20 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_p_flows |
20 |
20 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.get_q_flows |
20 |
20 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
LinDistBaseMP.update |
55 |
55 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/base_mp.py |
(no function) |
87 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/lindist_loads_mp.py |
LinDistMPL.__init__ |
4 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/lindist_loads_mp.py |
LinDistMPL.initialize_variable_index_pointers |
24 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/lindist_loads_mp.py |
LinDistMPL.additional_variable_idx |
7 |
2 |
0 |
71% |
| src/distopf/matrix_models/multiperiod/lindist_loads_mp.py |
LinDistMPL.add_load_model |
26 |
3 |
0 |
88% |
| src/distopf/matrix_models/multiperiod/lindist_loads_mp.py |
LinDistMPL.get_p_loads |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/lindist_loads_mp.py |
LinDistMPL.get_q_loads |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/lindist_loads_mp.py |
(no function) |
15 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/lindist_mp.py |
LinDistMP.__init__ |
2 |
2 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/lindist_mp.py |
(no function) |
7 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/objectives.py |
gradient_load_min |
5 |
5 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
gradient_curtail |
4 |
4 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
gradient_battery_efficiency |
13 |
13 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_loss |
20 |
3 |
0 |
85% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_battery_efficiency |
20 |
20 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_loss_batt |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
charge_batteries |
7 |
7 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_target_p_3ph |
10 |
10 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_target_p_total |
11 |
11 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_target_q_3ph |
10 |
10 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_target_q_total |
11 |
11 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_curtail |
11 |
11 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_curtail_lp |
11 |
11 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
cp_obj_none |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/objectives.py |
(no function) |
17 |
0 |
0 |
100% |
| src/distopf/matrix_models/multiperiod/solvers.py |
cvxpy_solve |
23 |
1 |
0 |
96% |
| src/distopf/matrix_models/multiperiod/solvers.py |
lp_solve |
11 |
3 |
0 |
73% |
| src/distopf/matrix_models/multiperiod/solvers.py |
pf |
8 |
8 |
0 |
0% |
| src/distopf/matrix_models/multiperiod/solvers.py |
(no function) |
10 |
0 |
0 |
100% |
| src/distopf/matrix_models/objectives.py |
gradient_load_min |
5 |
5 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
gradient_curtail |
9 |
9 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
cp_obj_loss |
16 |
2 |
0 |
88% |
| src/distopf/matrix_models/objectives.py |
cp_obj_loss_old |
8 |
8 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
cp_obj_target_p_3ph |
14 |
14 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
cp_obj_target_p_total |
13 |
13 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
cp_obj_target_q_3ph |
14 |
14 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
cp_obj_target_q_total |
13 |
13 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
cp_obj_curtail |
7 |
7 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
cp_obj_curtail_lp |
7 |
7 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
cp_obj_none |
1 |
1 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
pyo_obj_loss |
17 |
17 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
pyo_obj_curtail |
10 |
10 |
0 |
0% |
| src/distopf/matrix_models/objectives.py |
(no function) |
19 |
0 |
0 |
100% |
| src/distopf/matrix_models/solvers.py |
cvxpy_solve |
23 |
1 |
0 |
96% |
| src/distopf/matrix_models/solvers.py |
cvxpy_mi_solve |
26 |
26 |
0 |
0% |
| src/distopf/matrix_models/solvers.py |
pf |
8 |
8 |
0 |
0% |
| src/distopf/matrix_models/solvers.py |
lp_solve |
11 |
3 |
0 |
73% |
| src/distopf/matrix_models/solvers.py |
pyomo_solve |
31 |
31 |
0 |
0% |
| src/distopf/matrix_models/solvers.py |
pyomo_solve.equality_rule |
3 |
3 |
0 |
0% |
| src/distopf/matrix_models/solvers.py |
pyomo_solve.inequality_rule |
3 |
3 |
0 |
0% |
| src/distopf/matrix_models/solvers.py |
(no function) |
14 |
0 |
0 |
100% |
| src/distopf/plot.py |
_choose_t |
9 |
9 |
0 |
0% |
| src/distopf/plot.py |
plot_voltages |
12 |
12 |
0 |
0% |
| src/distopf/plot.py |
compare_voltages |
29 |
29 |
0 |
0% |
| src/distopf/plot.py |
voltage_differences |
28 |
28 |
0 |
0% |
| src/distopf/plot.py |
plot_power_flows |
10 |
10 |
0 |
0% |
| src/distopf/plot.py |
plot_gens |
29 |
29 |
0 |
0% |
| src/distopf/plot.py |
plot_pq |
29 |
29 |
0 |
0% |
| src/distopf/plot.py |
compare_flows |
25 |
25 |
0 |
0% |
| src/distopf/plot.py |
plot_ders |
5 |
5 |
0 |
0% |
| src/distopf/plot.py |
plot_polar |
29 |
29 |
0 |
0% |
| src/distopf/plot.py |
plot_batteries |
19 |
19 |
0 |
0% |
| src/distopf/plot.py |
plot_network |
43 |
43 |
0 |
0% |
| src/distopf/plot.py |
_process_bus_data |
14 |
14 |
0 |
0% |
| src/distopf/plot.py |
_process_branch_data |
29 |
29 |
0 |
0% |
| src/distopf/plot.py |
_process_gen_data |
12 |
12 |
0 |
0% |
| src/distopf/plot.py |
_make_reverse_flow_marker_trace |
9 |
9 |
0 |
0% |
| src/distopf/plot.py |
_make_edge_traces |
18 |
18 |
0 |
0% |
| src/distopf/plot.py |
_make_hover_text |
57 |
57 |
0 |
0% |
| src/distopf/plot.py |
_make_hover_text.format_phase_value |
3 |
3 |
0 |
0% |
| src/distopf/plot.py |
_make_title |
14 |
14 |
0 |
0% |
| src/distopf/plot.py |
_make_asset_markers |
7 |
7 |
0 |
0% |
| src/distopf/plot.py |
_make_node_trace |
2 |
2 |
0 |
0% |
| src/distopf/plot.py |
(no function) |
28 |
0 |
0 |
100% |
| src/distopf/pyomo_models/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_p_flow_constraints |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_p_flow_constraints.p_balance_rule |
6 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_q_flow_constraints |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_q_flow_constraints.q_balanced_rule |
7 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_voltage_drop_constraints |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_voltage_drop_constraints.voltage_drop_rule |
17 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_regulator_constraints |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_regulator_constraints.regulator_v_drop |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_regulator_constraints.regulator_rule |
1 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_cvr_load_constraints |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_cvr_load_constraints.cvr_p_rule |
3 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_cvr_load_constraints.cvr_q_rule |
3 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_generator_constant_p_constraints |
1 |
1 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_generator_constant_q_constraints |
1 |
1 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_generator_constant_p_constraints_q_control |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_generator_constant_p_constraints_q_control._rule |
3 |
1 |
0 |
67% |
| src/distopf/pyomo_models/constraints.py |
add_generator_constant_q_constraints_p_control |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_generator_constant_q_constraints_p_control._rule |
3 |
1 |
0 |
67% |
| src/distopf/pyomo_models/constraints.py |
add_octagonal_inverter_constraints_pq_control |
9 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_octagonal_inverter_constraints_pq_control._1 |
3 |
1 |
0 |
67% |
| src/distopf/pyomo_models/constraints.py |
add_octagonal_inverter_constraints_pq_control._2 |
3 |
1 |
0 |
67% |
| src/distopf/pyomo_models/constraints.py |
add_octagonal_inverter_constraints_pq_control._3 |
3 |
1 |
0 |
67% |
| src/distopf/pyomo_models/constraints.py |
add_octagonal_inverter_constraints_pq_control._4 |
3 |
1 |
0 |
67% |
| src/distopf/pyomo_models/constraints.py |
add_circular_generator_constraints_pq_control |
2 |
2 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_circular_generator_constraints_pq_control._circle |
3 |
3 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_capacitor_constraints |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_capacitor_constraints.capacitor_rule |
1 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_swing_bus_constraints |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_swing_bus_constraints.swing_voltage_rule |
3 |
1 |
0 |
67% |
| src/distopf/pyomo_models/constraints.py |
add_voltage_limits |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_voltage_limits.voltage_limits |
1 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_generator_limits |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_generator_limits.p_gen_bounds |
1 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_generator_limits.q_gen_bounds |
4 |
2 |
0 |
50% |
| src/distopf/pyomo_models/constraints.py |
add_battery_power_limits |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_battery_power_limits._d |
1 |
1 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_battery_power_limits._c |
1 |
1 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_battery_soc_limits |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_battery_soc_limits.battery_soc_limits |
1 |
1 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_battery_net_p_bat_constraints |
2 |
2 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_battery_net_p_bat_constraints.net_discharge |
4 |
4 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_battery_net_p_bat_equal_phase_constraints |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_battery_net_p_bat_equal_phase_constraints.net_discharge_equal_phases |
2 |
2 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_battery_energy_constraints |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_battery_energy_constraints.storage |
6 |
6 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
add_battery_constant_q_constraints_p_control |
2 |
0 |
0 |
100% |
| src/distopf/pyomo_models/constraints.py |
add_battery_constant_q_constraints_p_control._rule |
3 |
3 |
0 |
0% |
| src/distopf/pyomo_models/constraints.py |
(no function) |
27 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
_create_phase_tuples |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
_create_sets |
13 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
_create_rx_parameters |
9 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
_create_load_parameters |
26 |
3 |
0 |
88% |
| src/distopf/pyomo_models/lindist.py |
_create_generator_parameters |
26 |
1 |
0 |
96% |
| src/distopf/pyomo_models/lindist.py |
_create_capacitor_parameters |
6 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
_create_regulator_parameters |
5 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
_create_v_swing_parameters |
10 |
1 |
0 |
90% |
| src/distopf/pyomo_models/lindist.py |
_create_v_limit_parameters |
8 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
_create_battery_parameters |
59 |
26 |
0 |
56% |
| src/distopf/pyomo_models/lindist.py |
_create_parameters |
8 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
create_lindist_model |
25 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist.py |
(no function) |
24 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist_loads.py |
LinDistPyoMPL.__init__ |
20 |
0 |
0 |
100% |
| src/distopf/pyomo_models/lindist_loads.py |
(no function) |
5 |
0 |
0 |
100% |
| src/distopf/pyomo_models/objectives.py |
loss_objective_rule |
6 |
0 |
0 |
100% |
| src/distopf/pyomo_models/objectives.py |
(no function) |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.pprint |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.display |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.write |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.load |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.clone |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.component |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.component_objects |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.component_data_objects |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.add_component |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.del_component |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.__setattr__ |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.__getattr__ |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
LindistModelProtocol.__contains__ |
0 |
0 |
1 |
100% |
| src/distopf/pyomo_models/protocol.py |
(no function) |
72 |
0 |
6 |
100% |
| src/distopf/pyomo_models/results.py |
OpfResult.__init__ |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/results.py |
get_values |
4 |
0 |
0 |
100% |
| src/distopf/pyomo_models/results.py |
get_values_tidy_3ph |
1 |
0 |
0 |
100% |
| src/distopf/pyomo_models/results.py |
get_values_1ph |
1 |
1 |
0 |
0% |
| src/distopf/pyomo_models/results.py |
get_values_tidy |
7 |
1 |
0 |
86% |
| src/distopf/pyomo_models/results.py |
get_voltages |
5 |
0 |
0 |
100% |
| src/distopf/pyomo_models/results.py |
(no function) |
11 |
0 |
0 |
100% |
| src/distopf/pyomo_models/solvers.py |
solve |
7 |
1 |
0 |
86% |
| src/distopf/pyomo_models/solvers.py |
(no function) |
5 |
0 |
0 |
100% |
| src/distopf/utils.py |
get |
4 |
0 |
0 |
100% |
| src/distopf/utils.py |
handle_gen_input |
7 |
1 |
0 |
86% |
| src/distopf/utils.py |
handle_cap_input |
5 |
1 |
0 |
80% |
| src/distopf/utils.py |
handle_reg_input |
12 |
1 |
0 |
92% |
| src/distopf/utils.py |
handle_branch_input |
5 |
1 |
0 |
80% |
| src/distopf/utils.py |
handle_bus_input |
12 |
1 |
0 |
92% |
| src/distopf/utils.py |
handle_schedules_input |
5 |
0 |
0 |
100% |
| src/distopf/utils.py |
handle_pv_loadshape_input |
5 |
5 |
0 |
0% |
| src/distopf/utils.py |
handle_bat_input_depricated |
11 |
11 |
0 |
0% |
| src/distopf/utils.py |
handle_bat_input |
5 |
0 |
0 |
100% |
| src/distopf/utils.py |
(no function) |
12 |
0 |
0 |
100% |
| tests/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
| tests/cim_converter/integration/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
| tests/cim_converter/integration/test_full_conversion.py |
test_full_conversion_writes_expected_files_and_columns |
31 |
0 |
0 |
100% |
| tests/cim_converter/integration/test_full_conversion.py |
test_branch_and_bus_phase_strings_and_basic_invariants |
15 |
0 |
0 |
100% |
| tests/cim_converter/integration/test_full_conversion.py |
test_branch_and_bus_phase_strings_and_basic_invariants.valid_phase_str |
5 |
2 |
0 |
60% |
| tests/cim_converter/integration/test_full_conversion.py |
test_regulator_and_capacitor_output_consistency |
26 |
0 |
0 |
100% |
| tests/cim_converter/integration/test_full_conversion.py |
(no function) |
10 |
0 |
0 |
100% |
| tests/cim_converter/integration/test_impedance_comparison.py |
_find_matching_row |
7 |
0 |
0 |
100% |
| tests/cim_converter/integration/test_impedance_comparison.py |
_find_two_hop_candidate |
12 |
1 |
0 |
92% |
| tests/cim_converter/integration/test_impedance_comparison.py |
_phase_set |
5 |
2 |
0 |
60% |
| tests/cim_converter/integration/test_impedance_comparison.py |
test_branch_impedances_against_reference |
139 |
28 |
0 |
80% |
| tests/cim_converter/integration/test_impedance_comparison.py |
(no function) |
10 |
0 |
0 |
100% |
| tests/cim_converter/unit/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_helpser.py |
test_fix_bus_phases_from_branches_simple |
5 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_helpser.py |
test_fix_downstream_phase_consistency_intersection |
4 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_helpser.py |
test_aggregate_generators_basic |
8 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_helpser.py |
test_correct_generators_without_phases_and_distribution |
6 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_helpser.py |
test_convert_secondary_loads_moves_s1_s2_into_primary_phase |
5 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_helpser.py |
(no function) |
8 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_linking.py |
make_minimal_bus_df |
1 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_linking.py |
make_minimal_branch_df |
1 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_linking.py |
test_link_dataframes_assigns_ids_and_maps_fb_tb |
11 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_cim_to_csv_linking.py |
(no function) |
5 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_converter_run.py |
test_converter_end_to_end |
16 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_converter_run.py |
(no function) |
4 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_phase_utils.py |
make_obj_with_value |
3 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_phase_utils.py |
test_get_phase_str_various_inputs |
9 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_phase_utils.py |
test_filter_standard_phases_behavior |
5 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_phase_utils.py |
(no function) |
5 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_processors.py |
ConcreteBase.__init__ |
1 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_processors.py |
ConcreteBase.process |
1 |
1 |
0 |
0% |
| tests/cim_converter/unit/test_processors.py |
make_connectivity_node_with_voltage |
8 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_processors.py |
make_line_with_phase_impedance |
16 |
5 |
0 |
69% |
| tests/cim_converter/unit/test_processors.py |
test_base_processor_create_and_terminals_and_voltage |
11 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_processors.py |
test_line_processor_impedance_mapping_and_scaling |
11 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_processors.py |
test_switch_processor_impedance_and_status |
13 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_processors.py |
test_capacitor_processor_shunt_phases |
14 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_processors.py |
test_generator_processor_power_electronics_phases |
27 |
2 |
0 |
93% |
| tests/cim_converter/unit/test_processors.py |
(no function) |
19 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_reg_transformer_small.py |
make_terminal |
4 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_reg_transformer_small.py |
test_regulator_is_regulator_and_extract_tap |
20 |
2 |
0 |
90% |
| tests/cim_converter/unit/test_reg_transformer_small.py |
_make_power_transformer_end |
9 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_reg_transformer_small.py |
test_transformer_2winding_from_mesh_impedance |
16 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_reg_transformer_small.py |
test_transformer_3winding_mesh_impedance_pairing |
19 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_reg_transformer_small.py |
test_transformer_default_impedance_when_none_found |
8 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_reg_transformer_small.py |
(no function) |
12 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_regulator_impedances.py |
make_terminal |
4 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_regulator_impedances.py |
make_tank_with_basevoltage |
6 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_regulator_impedances.py |
test_regulator_impedance_from_mesh_on_powertransformerend |
20 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_regulator_impedances.py |
test_regulator_impedance_from_starimpedance_on_powertransformerend |
21 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_regulator_impedances.py |
test_regulator_impedance_from_direct_r_x_on_powertransformerend |
20 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_regulator_impedances.py |
test_regulator_tank_impedance_fallback_and_phases_and_names |
21 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_regulator_impedances.py |
(no function) |
9 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_topology_validator.py |
test_validate_empty_branch_data |
5 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_topology_validator.py |
test_validate_disconnected_and_orphaned |
5 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_topology_validator.py |
test_negative_impedance_and_missing_voltage_warning |
4 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_topology_validator.py |
(no function) |
5 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_transformer_tank_impedances.py |
make_tank_end_with_basevoltage |
10 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_transformer_tank_impedances.py |
test_transformer_tank_frommeshimpedance_used_for_impedance |
18 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_transformer_tank_impedances.py |
test_transformer_tank_starimpedance_used_for_impedance |
17 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_transformer_tank_impedances.py |
test_transformer_tank_direct_attributes_and_default_fallback |
28 |
0 |
0 |
100% |
| tests/cim_converter/unit/test_transformer_tank_impedances.py |
(no function) |
7 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
ieee13_case |
1 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
ieee123_30der_case |
1 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
simple_case_data |
6 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestCreateLinDistModel.test_model_creation_ieee13 |
68 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestCreateLinDistModel.test_model_creation_ieee123_30der |
4 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestCreateLinDistModel.test_model_creation_simple_case |
5 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestSets.test_bus_phase_set_ieee13 |
12 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestSets.test_branch_phase_set_ieee13 |
7 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestSets.test_gen_phase_set_empty |
3 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestSets.test_cap_phase_set_ieee13 |
7 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestParameters.test_impedance_parameters_ieee13 |
6 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
TestModelIntegrity.test_model_variables_match_sets |
18 |
0 |
0 |
100% |
| tests/pyomo_models/test_pyomo_lindist.py |
(no function) |
27 |
1 |
0 |
96% |
| tests/test_verify_multiperiod.py |
(no function) |
18 |
0 |
0 |
100% |
| tests/test_verify_pyomo.py |
(no function) |
25 |
0 |
0 |
100% |