Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PowerGridModel/power-grid-model
/ functions
Functions
2,475 in github.com/PowerGridModel/power-grid-model
⨍
Functions
2,475
◇
Types & classes
819
↳
Endpoints
41
↓ 5 callers
Function
get_line_input
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:167
↓ 5 callers
Method
get_next_cartesian_product_dimension
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:576
↓ 5 callers
Function
import_json_data
[deprecated] Import json data. **WARNING:** This function is deprecated. Please use json_deserialize_from_file instead. Args: j
src/power_grid_model/utils.py:225
↓ 5 callers
Method
is_topology_valid
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_preparation.hpp:59
↓ 5 callers
Function
json_serialize
Dump data to a JSON str. If the dataset_type is not specified or None, it will be deduced from the dataset if possible. Deduction is not
src/power_grid_model/_core/serialization.py:238
↓ 5 callers
Method
load
Load the deserialized data to a new dataset. Raises: ValueError: if the data is inconsistent with the rest of the datase
src/power_grid_model/_core/serialization.py:73
↓ 5 callers
Method
n_node_total
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_parameters.hpp:430
↓ 5 callers
Method
n_shunt
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_parameters.hpp:182
↓ 5 callers
Method
nnz
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/y_bus.hpp:320
↓ 5 callers
Method
pf_input
tests/cpp_unit_tests/math_solver/test_math_solver_pf.hpp:53
↓ 5 callers
Method
phi_p
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_se_solver.hpp:48
↓ 5 callers
Method
phi_q
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_se_solver.hpp:49
↓ 5 callers
Function
process_data_filter
Checks valid type for data_filter. Also checks for any invalid component names and attribute names. Args: dataset_type (DatasetType): the
src/power_grid_model/_core/utils.py:457
↓ 5 callers
Method
rank_index
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:738
↓ 5 callers
Function
run_parallel_jobs
tests/cpp_unit_tests/logging/test_calculation_info.cpp:61
↓ 5 callers
Function
run_power_flow
tests/cpp_unit_tests/math_solver/test_math_solver_pf.hpp:26
↓ 5 callers
Function
set_nan
set nan
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/meta_data.hpp:72
↓ 5 callers
Method
set_next_cartesian_product_dimension
Set the next dataset in the linked list. Args: next_dataset: The next dataset to set.
src/power_grid_model/_core/power_grid_dataset.py:360
↓ 5 callers
Method
set_tap
setter
power_grid_model_c/power_grid_model/include/power_grid_model/component/transformer.hpp:108
↓ 5 callers
Method
set_value
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:42
↓ 5 callers
Function
sufficient_condition_radial_with_voltage_phasor
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/observability.hpp:217
↓ 5 callers
Method
sync
power_grid_model_c/power_grid_model/include/power_grid_model/common/multi_threaded_logging.hpp:84
↓ 5 callers
Method
tap_side
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:507
↓ 5 callers
Function
to_node
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:85
↓ 5 callers
Method
type
getter for load type
power_grid_model_c/power_grid_model/include/power_grid_model/component/load_gen.hpp:36
↓ 5 callers
Function
validate_batch_data
The input dataset is validated: 1. Is the data structure correct? (checking data types and numpy array shapes) 2. Are all input
src/power_grid_model/validation/_validation.py:123
↓ 5 callers
Function
validate_branch
(data: SingleDataset, component: CT)
src/power_grid_model/validation/_validation.py:625
↓ 5 callers
Function
validate_ids
Checks if all ids of the components in the update data: - exist and match those in the input data - are not present but qualifies for o
src/power_grid_model/validation/_validation.py:245
↓ 5 callers
Function
validate_required_values
Checks if all required data is available. Args: data: A power-grid-model input dataset calculation_type: Supply a calculatio
src/power_grid_model/validation/_validation.py:269
↓ 4 callers
Function
PGM_buffer_get_value
power_grid_model_c/power_grid_model_c/src/buffer.cpp:101
↓ 4 callers
Function
PGM_calculate
run calculation
power_grid_model_c/power_grid_model_c/src/model.cpp:348
↓ 4 callers
Method
_calculate_state_estimation
( # noqa: PLR0913 self, *, symmetric: bool = True, error_tolerance: float = 1
src/power_grid_model/_core/power_grid_model.py:404
↓ 4 callers
Function
_extract_data_from_component_data
(data: ComponentData, is_batch: bool | None = None)
src/power_grid_model/_core/utils.py:711
↓ 4 callers
Function
_get_raw_attribute_data_view
Get a raw view on the data. Args: data: the data. schema: the schema the raw buffer should obey. Returns: a raw
src/power_grid_model/_core/buffer_handling.py:117
↓ 4 callers
Method
add_attribute_buffer
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:203
↓ 4 callers
Function
all_between
Check that for all records of a particular type of component, the values in the 'field' column are (exclusively) between reference value 1 an
src/power_grid_model/validation/_rules.py:246
↓ 4 callers
Function
all_valid_enum_values
Check that for all records of a particular type of component, the values in the 'field' column are valid values for the supplied enum class.
src/power_grid_model/validation/_rules.py:529
↓ 4 callers
Function
append_element_vector
append to element vector
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/y_bus.hpp:44
↓ 4 callers
Function
append_range
power_grid_model_c/power_grid_model_c/src/model.cpp:225
↓ 4 callers
Method
apply
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:517
↓ 4 callers
Function
assert_almost_equal
Recursively walk through the values and references, assert almost equal. Correctly handle: * Both the sparse and dense data representations
tests/unit/test_serialization.py:491
↓ 4 callers
Method
batch_size
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:51
↓ 4 callers
Function
build_dense_mapping
power_grid_model_c/power_grid_model/include/power_grid_model/index_mapping.hpp:149
↓ 4 callers
Method
build_topology
build topology
power_grid_model_c/power_grid_model/include/power_grid_model/topology.hpp:137
↓ 4 callers
Method
calculate_state_estimation
( self, *, symmetric: bool = ..., error_tolerance: float = ..., max_it
src/power_grid_model/_core/power_grid_model.py:671
↓ 4 callers
Function
check_compensated_exact_per_strategy
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:1078
↓ 4 callers
Function
check_equal
tests/cpp_unit_tests/auxiliary/test_dataset.cpp:194
↓ 4 callers
Method
check_message
tests/cpp_validation_tests/test_validation.cpp:79
↓ 4 callers
Function
check_nan_preserving_equality
tests/cpp_unit_tests/component/test_shunt.cpp:23
↓ 4 callers
Function
check_nan_preserving_equality
tests/cpp_unit_tests/component/test_transformer_tap_regulator.cpp:22
↓ 4 callers
Function
clear
power_grid_model_c/power_grid_model/include/power_grid_model/main_core/math_state.hpp:25
↓ 4 callers
Method
clock
power_grid_model_c/power_grid_model/include/power_grid_model/component/transformer.hpp:105
↓ 4 callers
Method
component_total_elements
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:63
↓ 4 callers
Function
convert_python_to_numpy
Convert native python data to internal numpy Args: data: data in dict or list data_type: type of data: input, update, sym_ou
tests/unit/utils.py:321
↓ 4 callers
Method
current_idx
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:169
↓ 4 callers
Method
error_code
(self)
src/power_grid_model/_core/power_grid_core.py:221
↓ 4 callers
Function
get_buffer_view
Get a C API compatible view on a buffer. Args: data: the data. schema: the schema that the data should obey. is_batc
src/power_grid_model/_core/buffer_handling.py:402
↓ 4 callers
Method
get_calculate_counter
tests/cpp_unit_tests/test_job_dispatch.cpp:81
↓ 4 callers
Function
get_dataset_batch_size
Get the number of scenarios in the batch dataset. Args: dataset: the batch dataset Raises: ValueError: if the batch dat
src/power_grid_model/utils.py:104
↓ 4 callers
Method
get_individual_scenario
get individual dataset from batch
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:499
↓ 4 callers
Function
get_irrelevant_components
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:272
↓ 4 callers
Function
get_sym_matrix
symmetric component matrix
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:450
↓ 4 callers
Function
get_sym_matrix_inv
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:455
↓ 4 callers
Method
has_angle_measurement
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/measured_values.hpp:81
↓ 4 callers
Method
inverse
power_grid_model_c/power_grid_model/include/power_grid_model/component/node.hpp:33
↓ 4 callers
Method
is_batch
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:266
↓ 4 callers
Method
is_columnar
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:288
↓ 4 callers
Method
iterate_ranks
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:743
↓ 4 callers
Method
log
power_grid_model_c/power_grid_model/include/power_grid_model/common/logging.hpp:58
↓ 4 callers
Function
necessary_condition
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/observability.hpp:189
↓ 4 callers
Function
no_strict_subset_missing
Helper function that generates multi field validation errors if a subset of the supplied fields is missing. If for an instance of component t
src/power_grid_model/validation/_rules.py:786
↓ 4 callers
Function
phase_shift
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:220
↓ 4 callers
Method
reset
tests/cpp_unit_tests/common/test_iterator_facade.cpp:87
↓ 4 callers
Method
run_state_estimation
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/math_solver.hpp:66
↓ 4 callers
Function
safe_bool
power_grid_model_c/power_grid_model_c/src/input_sanitization.hpp:64
↓ 4 callers
Method
set_power
power_grid_model_c/power_grid_model/include/power_grid_model/component/load_gen.hpp:86
↓ 4 callers
Function
set_solution_system
Constructs the dfs_matrix and the extended_rhs for the set of solutions. The dfs_matrix is constructed from the matrix rows associated with the free c
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:255
↓ 4 callers
Method
set_topology_status
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_preparation.hpp:60
↓ 4 callers
Method
set_u_ref
setter for u_ref
power_grid_model_c/power_grid_model/include/power_grid_model/component/source.hpp:51
↓ 4 callers
Method
status_1
power_grid_model_c/power_grid_model/include/power_grid_model/component/branch3.hpp:64
↓ 4 callers
Method
status_2
power_grid_model_c/power_grid_model/include/power_grid_model/component/branch3.hpp:65
↓ 4 callers
Method
status_3
power_grid_model_c/power_grid_model/include/power_grid_model/component/branch3.hpp:66
↓ 4 callers
Method
tap_nom
tests/cpp_unit_tests/optimizer/test_optimizer.hpp:45
↓ 4 callers
Method
theta
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_pf_solver.hpp:179
↓ 4 callers
Method
update
update node, nothing happens here
power_grid_model_c/power_grid_model/include/power_grid_model/component/node.hpp:30
↓ 4 callers
Function
validate_generic_load_gen
(data: SingleDataset, component: CT)
src/power_grid_model/validation/_validation.py:1083
↓ 4 callers
Function
validate_generic_power_sensor
(data: SingleDataset, component: CT)
src/power_grid_model/validation/_validation.py:1211
↓ 3 callers
Function
PGM_buffer_set_nan
power_grid_model_c/power_grid_model_c/src/buffer.cpp:58
↓ 3 callers
Function
PGM_clear_error
power_grid_model_c/power_grid_model_c/src/handle.cpp:56
↓ 3 callers
Function
PGM_create_handle
create and destroy handle
power_grid_model_c/power_grid_model_c/src/handle.cpp:26
↓ 3 callers
Function
PGM_meta_attribute_offset
power_grid_model_c/power_grid_model_c/src/meta_data.cpp:158
↓ 3 callers
Method
_calculate_impl
Core calculation routine Args: calculation_type: symmetric: update_data: output_comp
src/power_grid_model/_core/power_grid_model.py:298
↓ 3 callers
Function
_compatibility_deprecated_import_json_data
(json_file: Path, data_type: DatasetType)
src/power_grid_model/utils.py:337
↓ 3 callers
Function
_extract_indptr
returns indptr and checks if its valid Args: data (ComponentData): The component data Raises: TypeError: if indptr is invali
src/power_grid_model/_core/utils.py:622
↓ 3 callers
Method
_options
(**kwargs)
src/power_grid_model/_core/power_grid_model.py:274
↓ 3 callers
Function
_validate_required_in_data
Checks if all required data is available. Args: data: A power-grid-model input dataset required: a list of required fields (
src/power_grid_model/validation/_validation.py:467
↓ 3 callers
Method
_warn_if_deprecated
(cls, member)
src/power_grid_model/_core/enum.py:27
↓ 3 callers
Function
add_sources
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/common_solver_functions.hpp:34
↓ 3 callers
Function
all_finite
Check that for all records in all component, the values in all columns are finite value, i.e. float values other than inf, or -inf. Nan value
src/power_grid_model/validation/_rules.py:749
↓ 3 callers
Function
all_greater_or_equal
Check that for all records of a particular type of component, the values in the 'field' column are greater than, or equal to the reference va
src/power_grid_model/validation/_rules.py:155
← previous
next →
301–400 of 2,475, ranked by callers