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
pandapipes 90.39%
compressor_component.py 0.00%
setup.py 0.00%
Project Totals (77 files) 88.83%
Loading