MCPcopy Create free account

hub / github.com/PowerGridModel/power-grid-model / functions

Functions2,475 in github.com/PowerGridModel/power-grid-model

↓ 5 callersFunctionget_line_input
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:167
↓ 5 callersMethodget_next_cartesian_product_dimension
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:576
↓ 5 callersFunctionimport_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 callersMethodis_topology_valid
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_preparation.hpp:59
↓ 5 callersFunctionjson_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 callersMethodload
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 callersMethodn_node_total
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_parameters.hpp:430
↓ 5 callersMethodn_shunt
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_parameters.hpp:182
↓ 5 callersMethodnnz
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/y_bus.hpp:320
↓ 5 callersMethodpf_input
tests/cpp_unit_tests/math_solver/test_math_solver_pf.hpp:53
↓ 5 callersMethodphi_p
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_se_solver.hpp:48
↓ 5 callersMethodphi_q
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_se_solver.hpp:49
↓ 5 callersFunctionprocess_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 callersMethodrank_index
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:738
↓ 5 callersFunctionrun_parallel_jobs
tests/cpp_unit_tests/logging/test_calculation_info.cpp:61
↓ 5 callersFunctionrun_power_flow
tests/cpp_unit_tests/math_solver/test_math_solver_pf.hpp:26
↓ 5 callersFunctionset_nan
set nan
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/meta_data.hpp:72
↓ 5 callersMethodset_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 callersMethodset_tap
setter
power_grid_model_c/power_grid_model/include/power_grid_model/component/transformer.hpp:108
↓ 5 callersMethodset_value
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:42
↓ 5 callersFunctionsufficient_condition_radial_with_voltage_phasor
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/observability.hpp:217
↓ 5 callersMethodsync
power_grid_model_c/power_grid_model/include/power_grid_model/common/multi_threaded_logging.hpp:84
↓ 5 callersMethodtap_side
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:507
↓ 5 callersFunctionto_node
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:85
↓ 5 callersMethodtype
getter for load type
power_grid_model_c/power_grid_model/include/power_grid_model/component/load_gen.hpp:36
↓ 5 callersFunctionvalidate_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 callersFunctionvalidate_branch
(data: SingleDataset, component: CT)
src/power_grid_model/validation/_validation.py:625
↓ 5 callersFunctionvalidate_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 callersFunctionvalidate_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 callersFunctionPGM_buffer_get_value
power_grid_model_c/power_grid_model_c/src/buffer.cpp:101
↓ 4 callersFunctionPGM_calculate
run calculation
power_grid_model_c/power_grid_model_c/src/model.cpp:348
↓ 4 callersMethod_calculate_state_estimation
( # noqa: PLR0913 self, *, symmetric: bool = True, error_tolerance: float = 1
src/power_grid_model/_core/power_grid_model.py:404
↓ 4 callersFunction_extract_data_from_component_data
(data: ComponentData, is_batch: bool | None = None)
src/power_grid_model/_core/utils.py:711
↓ 4 callersFunction_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 callersMethodadd_attribute_buffer
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:203
↓ 4 callersFunctionall_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 callersFunctionall_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 callersFunctionappend_element_vector
append to element vector
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/y_bus.hpp:44
↓ 4 callersFunctionappend_range
power_grid_model_c/power_grid_model_c/src/model.cpp:225
↓ 4 callersMethodapply
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:517
↓ 4 callersFunctionassert_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 callersMethodbatch_size
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:51
↓ 4 callersFunctionbuild_dense_mapping
power_grid_model_c/power_grid_model/include/power_grid_model/index_mapping.hpp:149
↓ 4 callersMethodbuild_topology
build topology
power_grid_model_c/power_grid_model/include/power_grid_model/topology.hpp:137
↓ 4 callersMethodcalculate_state_estimation
( self, *, symmetric: bool = ..., error_tolerance: float = ..., max_it
src/power_grid_model/_core/power_grid_model.py:671
↓ 4 callersFunctioncheck_compensated_exact_per_strategy
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:1078
↓ 4 callersFunctioncheck_equal
tests/cpp_unit_tests/auxiliary/test_dataset.cpp:194
↓ 4 callersMethodcheck_message
tests/cpp_validation_tests/test_validation.cpp:79
↓ 4 callersFunctioncheck_nan_preserving_equality
tests/cpp_unit_tests/component/test_shunt.cpp:23
↓ 4 callersFunctioncheck_nan_preserving_equality
tests/cpp_unit_tests/component/test_transformer_tap_regulator.cpp:22
↓ 4 callersFunctionclear
power_grid_model_c/power_grid_model/include/power_grid_model/main_core/math_state.hpp:25
↓ 4 callersMethodclock
power_grid_model_c/power_grid_model/include/power_grid_model/component/transformer.hpp:105
↓ 4 callersMethodcomponent_total_elements
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:63
↓ 4 callersFunctionconvert_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 callersMethodcurrent_idx
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:169
↓ 4 callersMethoderror_code
(self)
src/power_grid_model/_core/power_grid_core.py:221
↓ 4 callersFunctionget_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 callersMethodget_calculate_counter
tests/cpp_unit_tests/test_job_dispatch.cpp:81
↓ 4 callersFunctionget_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 callersMethodget_individual_scenario
get individual dataset from batch
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:499
↓ 4 callersFunctionget_irrelevant_components
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:272
↓ 4 callersFunctionget_sym_matrix
symmetric component matrix
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:450
↓ 4 callersFunctionget_sym_matrix_inv
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:455
↓ 4 callersMethodhas_angle_measurement
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/measured_values.hpp:81
↓ 4 callersMethodinverse
power_grid_model_c/power_grid_model/include/power_grid_model/component/node.hpp:33
↓ 4 callersMethodis_batch
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:266
↓ 4 callersMethodis_columnar
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp:288
↓ 4 callersMethoditerate_ranks
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:743
↓ 4 callersMethodlog
power_grid_model_c/power_grid_model/include/power_grid_model/common/logging.hpp:58
↓ 4 callersFunctionnecessary_condition
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/observability.hpp:189
↓ 4 callersFunctionno_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 callersFunctionphase_shift
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:220
↓ 4 callersMethodreset
tests/cpp_unit_tests/common/test_iterator_facade.cpp:87
↓ 4 callersMethodrun_state_estimation
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/math_solver.hpp:66
↓ 4 callersFunctionsafe_bool
power_grid_model_c/power_grid_model_c/src/input_sanitization.hpp:64
↓ 4 callersMethodset_power
power_grid_model_c/power_grid_model/include/power_grid_model/component/load_gen.hpp:86
↓ 4 callersFunctionset_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 callersMethodset_topology_status
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_preparation.hpp:60
↓ 4 callersMethodset_u_ref
setter for u_ref
power_grid_model_c/power_grid_model/include/power_grid_model/component/source.hpp:51
↓ 4 callersMethodstatus_1
power_grid_model_c/power_grid_model/include/power_grid_model/component/branch3.hpp:64
↓ 4 callersMethodstatus_2
power_grid_model_c/power_grid_model/include/power_grid_model/component/branch3.hpp:65
↓ 4 callersMethodstatus_3
power_grid_model_c/power_grid_model/include/power_grid_model/component/branch3.hpp:66
↓ 4 callersMethodtap_nom
tests/cpp_unit_tests/optimizer/test_optimizer.hpp:45
↓ 4 callersMethodtheta
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_pf_solver.hpp:179
↓ 4 callersMethodupdate
update node, nothing happens here
power_grid_model_c/power_grid_model/include/power_grid_model/component/node.hpp:30
↓ 4 callersFunctionvalidate_generic_load_gen
(data: SingleDataset, component: CT)
src/power_grid_model/validation/_validation.py:1083
↓ 4 callersFunctionvalidate_generic_power_sensor
(data: SingleDataset, component: CT)
src/power_grid_model/validation/_validation.py:1211
↓ 3 callersFunctionPGM_buffer_set_nan
power_grid_model_c/power_grid_model_c/src/buffer.cpp:58
↓ 3 callersFunctionPGM_clear_error
power_grid_model_c/power_grid_model_c/src/handle.cpp:56
↓ 3 callersFunctionPGM_create_handle
create and destroy handle
power_grid_model_c/power_grid_model_c/src/handle.cpp:26
↓ 3 callersFunctionPGM_meta_attribute_offset
power_grid_model_c/power_grid_model_c/src/meta_data.cpp:158
↓ 3 callersMethod_calculate_impl
Core calculation routine Args: calculation_type: symmetric: update_data: output_comp
src/power_grid_model/_core/power_grid_model.py:298
↓ 3 callersFunction_compatibility_deprecated_import_json_data
(json_file: Path, data_type: DatasetType)
src/power_grid_model/utils.py:337
↓ 3 callersFunction_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 callersMethod_options
(**kwargs)
src/power_grid_model/_core/power_grid_model.py:274
↓ 3 callersFunction_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 callersMethod_warn_if_deprecated
(cls, member)
src/power_grid_model/_core/enum.py:27
↓ 3 callersFunctionadd_sources
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/common_solver_functions.hpp:34
↓ 3 callersFunctionall_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 callersFunctionall_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
← previousnext →301–400 of 2,475, ranked by callers