MCPcopy Create free account
hub / github.com/PowerGridModel/power-grid-model / row_dense_data

Function row_dense_data

tests/unit/test_internal_utils.py:834–846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

832
833@pytest.fixture
834def row_dense_data():
835 source = initialize_array(DT.update, CT.source, (2, 3))
836 source[AT.id] = [[0, 2, 3], [0, 2, 3]]
837 source[AT.u_ref] = [[0.1, 0.2, 0.3], [0.4, 0.5, 0.6]]
838
839 sym_load = initialize_array(DT.update, CT.sym_load, (2, 1))
840 sym_load[AT.id] = [[1], [1]]
841 sym_load[AT.p_specified] = [[100.0], [200.0]]
842
843 return {
844 CT.source: source,
845 CT.sym_load: sym_load,
846 }
847
848
849@pytest.fixture

Callers

nothing calls this directly

Calls 1

initialize_arrayFunction · 0.90

Tested by

no test coverage detected