e2nIEE / pandapipes

Compare 5d6573d ... +2 ... 0e0f6cb

Coverage Reach
pandapipes/component_models/abstract_models/branch_models.py pandapipes/component_models/abstract_models/branch_w_internals_models.py pandapipes/component_models/abstract_models/branch_wo_internals_models.py pandapipes/component_models/abstract_models/const_flow_models.py pandapipes/component_models/abstract_models/base_component.py pandapipes/component_models/abstract_models/branch_wzerolength_models.py pandapipes/component_models/abstract_models/circulation_pump.py pandapipes/component_models/abstract_models/node_models.py pandapipes/component_models/abstract_models/node_element_models.py pandapipes/component_models/abstract_models/__init__.py pandapipes/component_models/auxiliaries/build_system_matrix.py pandapipes/component_models/auxiliaries/derivative_toolbox.py pandapipes/component_models/auxiliaries/component_toolbox.py pandapipes/component_models/auxiliaries/__init__.py pandapipes/component_models/pipe_component.py pandapipes/component_models/pump_component.py pandapipes/component_models/ext_grid_component.py pandapipes/component_models/pressure_control_component.py pandapipes/component_models/valve_component.py pandapipes/component_models/junction_component.py pandapipes/component_models/heat_exchanger_component.py pandapipes/component_models/compressor_component.py pandapipes/component_models/circulation_pump_pressure_component.py pandapipes/component_models/circulation_pump_mass_component.py pandapipes/component_models/__init__.py pandapipes/component_models/sink_component.py pandapipes/component_models/source_component.py pandapipes/plotting/collections.py pandapipes/plotting/patch_makers.py pandapipes/plotting/simple_plot.py pandapipes/plotting/generic_geodata.py pandapipes/plotting/__init__.py pandapipes/plotting/pipeflow_results.py pandapipes/plotting/plotting_toolbox.py pandapipes/multinet/control/controller/multinet_control.py pandapipes/multinet/control/controller/__init__.py pandapipes/multinet/control/run_control_multinet.py pandapipes/multinet/control/__init__.py pandapipes/multinet/timeseries/run_time_series_multinet.py pandapipes/multinet/timeseries/__init__.py pandapipes/multinet/multinet.py pandapipes/multinet/create_multinet.py pandapipes/multinet/__init__.py pandapipes/properties/fluids.py pandapipes/properties/properties_toolbox.py pandapipes/properties/__init__.py pandapipes/networks/simple_water_networks.py pandapipes/networks/simple_gas_networks.py pandapipes/networks/simple_heat_transfer_networks.py pandapipes/networks/nw_aux.py pandapipes/networks/__init__.py pandapipes/create.py pandapipes/pipeflow_setup.py pandapipes/pipeflow.py pandapipes/io/io_utils.py pandapipes/io/file_io.py pandapipes/io/convert_format.py pandapipes/io/__init__.py pandapipes/toolbox.py pandapipes/std_types/std_type_class.py pandapipes/std_types/std_types.py pandapipes/std_types/__init__.py pandapipes/topology/create_graph.py pandapipes/topology/graph_searches.py pandapipes/topology/__init__.py pandapipes/timeseries/run_time_series.py pandapipes/timeseries/__init__.py pandapipes/idx_branch.py pandapipes/pandapipes_net.py pandapipes/internals_toolbox.py pandapipes/idx_node.py pandapipes/control/run_control.py pandapipes/control/__init__.py pandapipes/__init__.py pandapipes/constants.py compressor_component.py setup.py

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.


@@ -49,9 +49,10 @@
Loading
49 49
        :return: No Output.
50 50
        """
51 51
        ext_grids = net[cls.table_name()]
52 +
        ext_grids = ext_grids[ext_grids.in_service.values]
52 53
53 54
        p_mask = np.where(np.isin(ext_grids.type.values, ["p", "pt"]))
54 -
        press = ext_grids.p_bar.values[p_mask] * ext_grids.in_service.values[p_mask]
55 +
        press = ext_grids.p_bar.values[p_mask]
55 56
        junction_idx_lookups = get_lookup(net, "node", "index")[node_name]
56 57
        junction = cls.get_connected_junction(net)
57 58
        juncts_p, press_sum, number = _sum_by_group(junction.values[p_mask], press,
@@ -62,7 +63,7 @@
Loading
62 63
        node_pit[index_p, EXT_GRID_OCCURENCE] += number
63 64
64 65
        t_mask = np.where(np.isin(ext_grids.type.values, ["t", "pt"]))
65 -
        t_k = ext_grids.t_k.values[t_mask] * ext_grids.in_service.values[t_mask]
66 +
        t_k = ext_grids.t_k.values[t_mask]
66 67
        juncts_t, t_sum, number = _sum_by_group(junction.values[t_mask], t_k,
67 68
                                                np.ones_like(t_k, dtype=np.int32))
68 69
        index = junction_idx_lookups[juncts_t]

Learn more Showing 1 files with coverage changes found.

Changes in pandapipes/component_models/ext_grid_component.py
-1
Loading file...
Files Coverage
compressor_component.py 0.00%
pandapipes/__init__.py 100.00%
pandapipes/component_models/__init__.py 100.00%
pandapipes/component_models/abstract_models/__init__.py 100.00%
pandapipes/component_models/abstract_models/base_component.py 92.50%
pandapipes/component_models/abstract_models/branch_models.py 95.70%
pandapipes/component_models/abstract_models/branch_w_internals_models.py 95.12%
pandapipes/component_models/abstract_models/branch_wo_internals_models.py 86.27%
pandapipes/component_models/abstract_models/branch_wzerolength_models.py 80.00%
pandapipes/component_models/abstract_models/circulation_pump.py 100.00%
pandapipes/component_models/abstract_models/const_flow_models.py 95.00%
pandapipes/component_models/abstract_models/node_element_models.py 90.00%
pandapipes/component_models/abstract_models/node_models.py 84.62%
pandapipes/component_models/auxiliaries/__init__.py 100.00%
pandapipes/component_models/auxiliaries/build_system_matrix.py 100.00%
pandapipes/component_models/auxiliaries/component_toolbox.py 86.49%
pandapipes/component_models/auxiliaries/derivative_toolbox.py 88.68%
pandapipes/component_models/circulation_pump_mass_component.py 100.00%
pandapipes/component_models/circulation_pump_pressure_component.py 100.00%
pandapipes/component_models/compressor_component.py 100.00%
pandapipes/component_models/ext_grid_component.py 100.00%
pandapipes/component_models/heat_exchanger_component.py 97.83%
pandapipes/component_models/junction_component.py 95.00%
pandapipes/component_models/pipe_component.py 83.33%
pandapipes/component_models/pressure_control_component.py 95.52%
pandapipes/component_models/pump_component.py 98.78%
pandapipes/component_models/sink_component.py 100.00%
pandapipes/component_models/source_component.py 100.00%
pandapipes/component_models/valve_component.py 100.00%
pandapipes/constants.py 100.00%
pandapipes/control/__init__.py 100.00%
pandapipes/control/run_control.py 76.92%
pandapipes/create.py 99.12%
pandapipes/idx_branch.py 100.00%
pandapipes/idx_node.py 100.00%
pandapipes/internals_toolbox.py 100.00%
pandapipes/io/__init__.py 100.00%
pandapipes/io/convert_format.py 97.22%
pandapipes/io/file_io.py 82.14%
pandapipes/io/io_utils.py 87.06%
pandapipes/multinet/__init__.py 100.00%
pandapipes/multinet/control/__init__.py 100.00%
pandapipes/multinet/control/controller/__init__.py 100.00%
pandapipes/multinet/control/controller/multinet_control.py 82.68%
pandapipes/multinet/control/run_control_multinet.py 96.52%
pandapipes/multinet/create_multinet.py 95.24%
pandapipes/multinet/multinet.py 83.33%
pandapipes/multinet/timeseries/__init__.py 100.00%
pandapipes/multinet/timeseries/run_time_series_multinet.py 95.65%
pandapipes/networks/__init__.py 100.00%
pandapipes/networks/nw_aux.py 75.00%
pandapipes/networks/simple_gas_networks.py 100.00%
pandapipes/networks/simple_heat_transfer_networks.py 100.00%
pandapipes/networks/simple_water_networks.py 98.51%
pandapipes/pandapipes_net.py 87.50%
pandapipes/pipeflow.py 90.27%
pandapipes/pipeflow_setup.py 91.54%
pandapipes/plotting/__init__.py 80.00%
pandapipes/plotting/collections.py 82.12%
pandapipes/plotting/generic_geodata.py 93.33%
pandapipes/plotting/patch_makers.py 83.85%
pandapipes/plotting/pipeflow_results.py 87.50%
pandapipes/plotting/plotting_toolbox.py 100.00%
pandapipes/plotting/simple_plot.py 73.47%
pandapipes/properties/__init__.py 100.00%
pandapipes/properties/fluids.py 81.82%
pandapipes/properties/properties_toolbox.py 98.55%
pandapipes/std_types/__init__.py 100.00%
pandapipes/std_types/std_type_class.py 82.43%
pandapipes/std_types/std_types.py 64.79%
pandapipes/timeseries/__init__.py 100.00%
pandapipes/timeseries/run_time_series.py 88.10%
pandapipes/toolbox.py 82.35%
pandapipes/topology/__init__.py 100.00%
pandapipes/topology/create_graph.py 85.29%
pandapipes/topology/graph_searches.py 76.92%
setup.py 0.00%
Project Totals (77 files) 88.83%
Loading