MCPcopy Create free account

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

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

↓ 2 callersFunction_get_sparse_buffer_properties
Extract the properties of the sparse batch dataset component. Args: data (ComponentData): the sparse dataset component. sche
src/power_grid_model/_core/buffer_handling.py:231
↓ 2 callersFunction_get_sparse_scenario
(arr: np.ndarray, indptr: IndexPointer)
src/power_grid_model/utils.py:82
↓ 2 callersFunction_get_valid_ids
This function returns the valid IDs specified by all ref_components. Args: data: The input/update data set for all components
src/power_grid_model/validation/utils.py:264
↓ 2 callersFunction_interpret_error
(message: str, decode_error: bool = True)
src/power_grid_model/_core/error_handling.py:129
↓ 2 callersFunction_set_default_value
This function sets the default value in the data that is to be validated, so the default values are included in the validation. Args:
src/power_grid_model/validation/utils.py:236
↓ 2 callersFunction_split_buffer
(buffer: np.ndarray, scenario: int)
src/power_grid_model/_core/utils.py:285
↓ 2 callersFunction_split_numpy_array_in_batches
Split a single dense numpy array into one or more batches Args: data: A 1D or 2D Numpy structured array. A 1D array is a single tabl
src/power_grid_model/_core/utils.py:217
↓ 2 callersFunction_validate_required_power_sigma_or_p_q_sigma
Check that either `p_sigma` and `q_sigma` are all provided, or that `power_sigma` is provided. Args: data: SingleDataset, pgm data
src/power_grid_model/validation/_validation.py:496
↓ 2 callersMethodadd_to_value
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:53
↓ 2 callersFunctionall_boolean
Check that for all records of a particular type of component, the values in the 'field' column are valid boolean values, i.e. 0 or 1. Returns
src/power_grid_model/validation/_rules.py:634
↓ 2 callersFunctionall_cross_unique
Check that for all records of a particular type of component, the values in the 'field' column are unique within the 'field' column of that c
src/power_grid_model/validation/_rules.py:466
↓ 2 callersFunctionall_enabled_identical
Check that for all records of a particular type of component, the values in the 'field' column are identical. Only entries are checked where
src/power_grid_model/validation/_rules.py:414
↓ 2 callersFunctionall_greater_than_or_equal_to_zero
Check that for all records of a particular type of component, the values in the 'field' column are greater than, or equal to zero. Returns an
src/power_grid_model/validation/_rules.py:103
↓ 2 callersFunctionall_greater_than_zero
Check that for all records of a particular type of component, the values in the 'field' column are greater than zero. Returns an empty list o
src/power_grid_model/validation/_rules.py:84
↓ 2 callersFunctionall_less_or_equal
Check that for all records of a particular type of component, the values in the 'field' column are less than, or equal to the reference value
src/power_grid_model/validation/_rules.py:218
↓ 2 callersFunctionall_less_than
Check that for all records of a particular type of component, the values in the 'field' column are less than the reference value. Returns an
src/power_grid_model/validation/_rules.py:192
↓ 2 callersFunctionall_not_two_values_equal
Check that for all records of a particular type of component, the values in the 'field_1' and 'field_2' column are not both the same value. E
src/power_grid_model/validation/_rules.py:681
↓ 2 callersFunctionall_not_two_values_zero
Check that for all records of a particular type of component, the values in the 'field_1' and 'field_2' column are not both zero. Returns an
src/power_grid_model/validation/_rules.py:655
↓ 2 callersFunctionall_zero
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:404
↓ 2 callersFunctionany_zero
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:400
↓ 2 callersFunctionas_diag
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:312
↓ 2 callersFunctionassert_deserialization_filtering_correct
(deserialized_dataset: Dataset, data_filter)
tests/unit/test_serialization.py:678
↓ 2 callersFunctionassert_not_a_value
Assert value contains only NaN-like values. Depending on type, maps to np.nan, -127, na_IntID, etc.
tests/unit/test_serialization.py:476
↓ 2 callersFunctionassert_result
tests/cpp_validation_tests/test_validation.cpp:290
↓ 2 callersFunctionassert_serialization_correct
Assert the dataset correctly reprensents the input data.
tests/unit/test_serialization.py:642
↓ 2 callersFunctionassert_single_dataset_entries
Check a SingleDataset's individual components for correctness
tests/unit/test_serialization.py:516
↓ 2 callersFunctionattribute_dtype
Gives out dtype of the attribute to be used in a columnar data format Args: data_type (DatasetTypeLike): The type of dataset (input, upda
src/power_grid_model/_core/power_grid_meta.py:231
↓ 2 callersFunctionattribute_empty_value
Returns the empty value for a specific attribute in the Power Grid Model. Args: data_type (DatasetTypeLike): The type of dataset (in
src/power_grid_model/_core/power_grid_meta.py:250
↓ 2 callersMethodattribute_indications
The attribute indications in the dataset. Returns: A map of component to its attribute indications. None mea
src/power_grid_model/_core/power_grid_dataset.py:147
↓ 2 callersFunctionaverage_of_diagonal_of_matrix
power_grid_model_c/power_grid_model/include/power_grid_model/common/matrix_utils.hpp:12
↓ 2 callersFunctionaverage_of_off_diagonal_of_matrix
power_grid_model_c/power_grid_model/include/power_grid_model/common/matrix_utils.hpp:16
↓ 2 callersFunctionbackward_substitution_free_right_cols
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:193
↓ 2 callersFunctionbackward_substitution_pivots
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:185
↓ 2 callersFunctionbackward_substitution_rows
power_grid_model_c/power_grid_model/include/power_grid_model/link_solver.hpp:189
↓ 2 callersMethodbatch_size
The size of the dataset. Returns: The size of the dataset
src/power_grid_model/_core/power_grid_dataset.py:90
↓ 2 callersMethodcache_calculate_impl
power_grid_model_c/power_grid_model/include/power_grid_model/job_adapter.hpp:95
↓ 2 callersMethodcalculate
Batch calculation, propagating the results to result_data Run the calculation function in batch on the provided update data. The calculation
power_grid_model_c/power_grid_model/include/power_grid_model/main_model.hpp:104
↓ 2 callersMethodcalculate_impl
power_grid_model_c/power_grid_model/include/power_grid_model/job_adapter.hpp:90
↓ 2 callersMethodcalculate_injection
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/y_bus.hpp:482
↓ 2 callersFunctioncalculate_pf_result
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/common_solver_functions.hpp:269
↓ 2 callersMethodcalculate_short_circuit
( self, *, calculation_method: CalculationMethod | str = ..., update_data: Non
src/power_grid_model/_core/power_grid_model.py:857
↓ 2 callersFunctioncheck_exact_generic
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:1037
↓ 2 callersFunctioncheck_id_na
power_grid_model_c/power_grid_model/include/power_grid_model/main_core/update.hpp:45
↓ 2 callersFunctioncheck_nan_preserving_equality
tests/cpp_unit_tests/component/test_fault.cpp:25
↓ 2 callersFunctioncheck_nan_preserving_equality
tests/cpp_unit_tests/component/test_load_gen.cpp:30
↓ 2 callersFunctioncheck_whether_observable
tests/cpp_unit_tests/math_solver/test_observability.cpp:29
↓ 2 callersMethodclear_changed_components_indices
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_preparation.hpp:55
↓ 2 callersMethodclone
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/math_solver.hpp:39
↓ 2 callersFunctioncomponent_data_checks
Checks if component_data is of ComponentData and raises ValueError if its not
src/power_grid_model/_core/utils.py:612
↓ 2 callersMethodcomponent_idx
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:67
↓ 2 callersMethodcomponent_name
power_grid_model_c/power_grid_model_cpp/include/power_grid_model_cpp/dataset.hpp:55
↓ 2 callersFunctionconvert_dataset_to_python_dataset
Convert internal numpy arrays to native python data If an attribute is not available (NaN value), it will not be exported. Args:
src/power_grid_model/_core/utils.py:316
↓ 2 callersFunctionconvert_single_dataset_to_python_single_dataset
Convert internal numpy arrays to native python data If an attribute is not available (NaN value), it will not be exported. Args:
src/power_grid_model/_core/utils.py:353
↓ 2 callersFunctioncreate_output_data
( output_component_types: None | set[ComponentTypeVar] | list[ComponentTypeVar], output_type: DatasetT
src/power_grid_model/_core/data_handling.py:99
↓ 2 callersFunctioncreate_validation_case
tests/cpp_validation_tests/test_validation.cpp:535
↓ 2 callersMethoddecrement
power_grid_model_c/power_grid_model/include/power_grid_model/common/grouped_index_vector.hpp:244
↓ 2 callersMethoddestroy_model
(self, model: ModelPtr)
src/power_grid_model/_core/power_grid_core.py:380
↓ 2 callersFunctiondiag_mult
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:319
↓ 2 callersFunctiondot_prepare
power_grid_model_c/power_grid_model/include/power_grid_model/common/three_phase_tensor.hpp:256
↓ 2 callersMethoderror_message
(self)
src/power_grid_model/_core/power_grid_core.py:225
↓ 2 callersFunctionexecute_test
tests/cpp_validation_tests/test_validation.cpp:595
↓ 2 callersFunctionexport_json_data
[deprecated] Export json data in a deprecated serialization format. **WARNING:** This function is deprecated. Please use json_serialize_to_f
src/power_grid_model/utils.py:248
↓ 2 callersFunctionfilter_tuple_types
power_grid_model_c/power_grid_model/include/power_grid_model/main_core/main_model_type.hpp:36
↓ 2 callersFunctionfind_error
Check if there is an error and return it Args: batch_size: (int, optional): Size of batch. Defaults to 1. decode_error (bool
src/power_grid_model/_core/error_handling.py:138
↓ 2 callersFunctionfind_spanning_tree_from_node_impl
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/observability.hpp:519
↓ 2 callersFunctionfrom_msgpack
(data)
tests/unit/test_serialization.py:63
↓ 2 callersMethodg_P_theta
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_se_solver.hpp:75
↓ 2 callersMethodg_Q_v
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_se_solver.hpp:78
↓ 2 callersMethodget_any
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:1111
↓ 2 callersFunctionget_comp_size
Get the number of elements in the comp_data of a single dataset. Args: comp_data: Columnar or row based data of a single batch
src/power_grid_model/_core/utils.py:788
↓ 2 callersFunctionget_component_batch_size
Determine the number of batch scenarios and verify the data structure Args: data_array: batch data for power-grid-model Returns
src/power_grid_model/utils.py:120
↓ 2 callersFunctionget_component_idx_by_id
power_grid_model_c/power_grid_model/include/power_grid_model/main_core/container_queries.hpp:35
↓ 2 callersMethodget_end_of_bs
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:805
↓ 2 callersMethodget_err_msg
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/deserializer.hpp:222
↓ 2 callersMethodget_group
power_grid_model_c/power_grid_model/include/power_grid_model/common/grouped_index_vector.hpp:270
↓ 2 callersFunctionget_index_bool_array
power_grid_model_c/power_grid_model/include/power_grid_model/container.hpp:33
↓ 2 callersFunctionget_kwargs
(sym: bool, calculation_type: str, calculation_method: str, params: dict, **extra_kwargs)
tests/unit/test_0Z_model_validation.py:75
↓ 2 callersMethodget_max
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:1142
↓ 2 callersMethodget_min
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:1127
↓ 2 callersMethodget_n_elements
power_grid_model_c/power_grid_model/include/power_grid_model/main_core/update.hpp:79
↓ 2 callersFunctionget_options
tests/cpp_validation_tests/test_validation.cpp:415
↓ 2 callersFunctionget_output_file
tests/cpp_validation_tests/test_validation.cpp:429
↓ 2 callersFunctionget_output_type
Get the output type based on the provided arguments. Args: calculation_type: request the output type for a specific calc
src/power_grid_model/_core/data_handling.py:31
↓ 2 callersMethodhas_visited_nil
tests/cpp_unit_tests/auxiliary/test_deserializer.cpp:290
↓ 2 callersFunctionimport_case_data
(data_path: Path, calculation_type: str, sym: bool)
tests/unit/utils.py:235
↓ 2 callersFunctionin_graph
power_grid_model_c/power_grid_model/include/power_grid_model/sparse_ordering.hpp:123
↓ 2 callersMethodincrement
power_grid_model_c/power_grid_model/include/power_grid_model/common/grouped_index_vector.hpp:239
↓ 2 callersFunctionis_attribute_filtered_out
Checks if attribute is being filtered out / excluded
tests/unit/test_serialization.py:98
↓ 2 callersMethodis_columnar
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/deserializer.hpp:1111
↓ 2 callersMethodis_independent
power_grid_model_c/power_grid_model/include/power_grid_model/main_core/update.hpp:78
↓ 2 callersFunctionis_non_compact_list
(data_entry)
tests/unit/test_serialization.py:67
↓ 2 callersMethodis_row_based
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/deserializer.hpp:1106
↓ 2 callersMethodis_row_based
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/serializer.hpp:640
↓ 2 callersFunctionis_unreachable
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp:336
↓ 2 callersFunctionkron_reduction
power_grid_model_c/power_grid_model/include/power_grid_model/component/line_utils.hpp:12
↓ 2 callersMethodloading
power_grid_model_c/power_grid_model/include/power_grid_model/component/link.hpp:28
↓ 2 callersMethodmath_model_type
NOLINTNEXTLINE(readability-convert-member-functions-to-static) // mocks non-static functions
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp:900
↓ 2 callersFunctionmaybe_raises
(params: dict)
tests/unit/test_0Z_model_validation.py:97
↓ 2 callersMethodmean_angle_shift
getter mean angle shift
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/measured_values.hpp:120
↓ 2 callersMethodmeta_component_name
(self, component: ComponentPtr)
src/power_grid_model/_core/power_grid_core.py:269
← previousnext →501–600 of 2,475, ranked by callers