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
5d6573d
... +2 ...
0e0f6cb
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
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 | 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.
pandapipes/component_models/ext_grid_component.py
Files | Coverage |
---|---|
pandapipes | 90.39% |
compressor_component.py | 0.00% |
setup.py | 0.00% |
Project Totals (77 files) | 88.83% |
0e0f6cb
853d4a2
3630098
5d6573d