gridstate 2.13.0__tar.gz → 2.13.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gridstate-2.13.0 → gridstate-2.13.1}/PKG-INFO +1 -1
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/_version.py +3 -3
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/apply_resolved.py +17 -7
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate.egg-info/PKG-INFO +1 -1
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate.egg-info/scm_version.json +2 -2
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_telemetry_apply_kernel.py +52 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/.github/workflows/ci.yml +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/.github/workflows/release.yml +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/.gitignore +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/.pre-commit-config.yaml +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/CHANGELOG.md +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/LICENSE +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/Makefile +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/README.md +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/build_cython.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/__pyinstaller/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/__pyinstaller/hook-gridstate.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/_arrays.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/adapters/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/adapters/from_pandapower.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algebra/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algebra/_selinv_kernels.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algebra/base.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algebra/estimators.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algebra/jacobian_pattern.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algebra/normalized_residuals.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algorithms/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algorithms/_gram_numba.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algorithms/ipm.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algorithms/ipm_pd.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algorithms/kkt_solver.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algorithms/status.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algorithms/wls.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/algorithms/wls_box.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/api.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/bad_data_repass.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/bounds.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/constants.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/_legacy.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/containers.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/derived.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/derived_tables.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/serialize.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/tables.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/validate.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/contract/version.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/ipm_hints.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/load_characteristics.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/losses.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/measurement_ids.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/config.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/context.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/manifest.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/orchestration.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/passes.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/preparation.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/runner.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/pipeline/steps.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/post_processing.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/preprocessing/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/preprocessing/_scan.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/preprocessing/ipm_setup.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/preprocessing/meas_rows.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/preprocessing/mirror_voltage.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/preprocessing/node_props.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/preprocessing/pseudo_measurements.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/py.typed +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/quality_summary.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/resolve_pass.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/result.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/runtime.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/shunt_sanity.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/solution_hints.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/state.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/supernodes.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/_filters.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/generators.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/kinds.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/load_only_injection.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/loss_filter.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/measurements.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/noise.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/on_line.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/quality.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/rpn.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/shunts.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/sigma_floor.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/units.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/voltage_filter.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/telemetry/voltage_nominal.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/topology.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/units.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/utils.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/v_mirror.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/v_refine.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/validation/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/validation/_diagnostics.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/validation/bad_data.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/validation/chi2_test.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/validation/observability.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/working.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/ybus.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate/z_vector.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate.egg-info/SOURCES.txt +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate.egg-info/dependency_links.txt +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate.egg-info/entry_points.txt +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate.egg-info/requires.txt +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate.egg-info/scm_file_list.json +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/gridstate.egg-info/top_level.txt +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/pyproject.toml +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/setup.cfg +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/__init__.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/_golden.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/conftest.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_adapters_lazy_import.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_aggregate_generators.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_algebra_base.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_anti_overshoot.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_arrays_helpers.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_bad_data.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_bad_data_repass.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_bounds.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_boxed_balance.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_breaker_reactance.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_chain_mirror.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_contract.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_contract_edge_cases.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_contract_runtime.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case118.json +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case118.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case118_degraded.json +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case118_degraded.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case14.json +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case14.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case14_degraded.json +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case14_degraded.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case30.json +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case30.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case30_degraded.json +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/case30_degraded.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/golden/manifest.json +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/ieee/case118.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/ieee/case118_truth.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/ieee/case14.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/ieee/case14_truth.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/ieee/case30.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_data/ieee/case30_truth.npz +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_derived_tables.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_enum_codes.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_external_sigma2.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_flow_sigma_floor.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_from_pandapower.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_generator_shunt_kernels.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_golden.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_gram_numba.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_ieee_cases.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_injection_split.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_ipm.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_ipm_balance_modes.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_ipm_hints.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_ipm_injection_roles.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_ipm_integration.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_ipm_pd.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_jacobian_pattern.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_kkt_solver.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_load_characteristic_segments.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_load_only_injection.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_losses_breakdown.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_losses_q_convention.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_losses_trafo_classification.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_materialize_kernel.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_measurement_filter_kernels.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_measurement_ids.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_mirror_voltage_kernel.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_near_critical_ranking.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_neutral_wording.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_noise_model.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_normalized_residuals.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_numpy_only_runtime.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_observability.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_on_line_kernel.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_perf_synthetic_network.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pipeline.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pipeline_config_validation.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pipeline_idempotent.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pipeline_invariant_errors.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pipeline_step_order.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pipeline_warm_start.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pipeline_working_layer.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_post_processing.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_preparation_steps.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_prepare_network.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pseudo_transit_tight.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pseudo_unknown_load.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pseudo_v_scope.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_pseudo_v_unobservable.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_quality_summary_paths.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_reconcile_balance.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_refine_merge.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_resolve_pass.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_result_quality_summary.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_rn_selected_inversion.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_serialize_npz.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_shunt_sanity.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_solution_hints.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_solve_status.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_state.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_state_range.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_supernodes.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_telemetry_bounds.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_telemetry_physics_kernels.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_tm_code_quality.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_topology_kernels.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_topology_port.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_transformer_from_shunt.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_units.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_units_array_kernels.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_v_mirror.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_v_refine.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_variance_charging.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_version.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_voltage_calibration_gen_nodes.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_voltage_range_filter_fallback.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_wls.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_wls_node_box.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_wls_robustness.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_working_container.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_ybus.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tests/test_z_vector.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tools/gen_ieee_fixtures.py +0 -0
- {gridstate-2.13.0 → gridstate-2.13.1}/tools/golden.py +0 -0
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '2.13.
|
|
22
|
-
__version_tuple__ = version_tuple = (2, 13,
|
|
21
|
+
__version__ = version = '2.13.1'
|
|
22
|
+
__version_tuple__ = version_tuple = (2, 13, 1)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g0cabea99d'
|
|
@@ -207,6 +207,15 @@ def apply_telemetry_resolved(
|
|
|
207
207
|
return stats
|
|
208
208
|
|
|
209
209
|
|
|
210
|
+
def _usable_value(entry: tuple[float | None, int, str, int]) -> float | None:
|
|
211
|
+
"""Value of a resolved entry for the consistency pre-passes; ``None`` when BAD.
|
|
212
|
+
|
|
213
|
+
A BAD measurement is not applied, so its value must not condemn the other
|
|
214
|
+
measurements of the branch either.
|
|
215
|
+
"""
|
|
216
|
+
return None if entry[3] == _Q_BAD else entry[0]
|
|
217
|
+
|
|
218
|
+
|
|
210
219
|
def _detect_sign_inconsistent_branches(
|
|
211
220
|
arg_keys: list[tuple[int, str]],
|
|
212
221
|
resolved: dict[tuple[int, str], tuple[float | None, int, str, int]],
|
|
@@ -216,7 +225,7 @@ def _detect_sign_inconsistent_branches(
|
|
|
216
225
|
(p_from and p_to both flowing into the line, i.e. of the same sign after
|
|
217
226
|
accounting for invert) -- this indicates a measurement bound to the wrong
|
|
218
227
|
branch or stale telemetry. The branch measurements of such branches are
|
|
219
|
-
not activated.
|
|
228
|
+
not activated. BAD measurements take no part in the check.
|
|
220
229
|
"""
|
|
221
230
|
inconsistent_branches: set[int] = set()
|
|
222
231
|
if threshold_mw is None:
|
|
@@ -226,8 +235,8 @@ def _detect_sign_inconsistent_branches(
|
|
|
226
235
|
continue
|
|
227
236
|
if (obj_id, KIND_P_TO) not in resolved:
|
|
228
237
|
continue
|
|
229
|
-
v_beg = resolved[(obj_id, KIND_P_FROM)]
|
|
230
|
-
v_end = resolved[(obj_id, KIND_P_TO)]
|
|
238
|
+
v_beg = _usable_value(resolved[(obj_id, KIND_P_FROM)])
|
|
239
|
+
v_end = _usable_value(resolved[(obj_id, KIND_P_TO)])
|
|
231
240
|
if v_beg is None or v_end is None:
|
|
232
241
|
continue
|
|
233
242
|
# p_from/p_to values arrive with the sign already applied (the inversion
|
|
@@ -255,7 +264,8 @@ def _detect_q_inconsistent_branches(
|
|
|
255
264
|
``branch.{susceptance, reactance}``; an outlier is a deviation above
|
|
256
265
|
``max(floor, rel_pct/100 * expected)``. See
|
|
257
266
|
:func:`gridstate.telemetry.loss_filter.is_branch_q_consistent_with_physics`.
|
|
258
|
-
Branches without a nominal voltage are not checked
|
|
267
|
+
Branches without a nominal voltage are not checked; BAD measurements take no
|
|
268
|
+
part in the check.
|
|
259
269
|
|
|
260
270
|
Returns ``(q_inconsistent_branches, q_inconsistent_hv_branches)``: branches
|
|
261
271
|
to drop and branches to downweight (by ``q_loss_filter_action``).
|
|
@@ -271,8 +281,8 @@ def _detect_q_inconsistent_branches(
|
|
|
271
281
|
continue
|
|
272
282
|
if (obj_id, KIND_Q_TO) not in resolved:
|
|
273
283
|
continue
|
|
274
|
-
v_beg = resolved[(obj_id, KIND_Q_FROM)]
|
|
275
|
-
v_end = resolved[(obj_id, KIND_Q_TO)]
|
|
284
|
+
v_beg = _usable_value(resolved[(obj_id, KIND_Q_FROM)])
|
|
285
|
+
v_end = _usable_value(resolved[(obj_id, KIND_Q_TO)])
|
|
276
286
|
if v_beg is None or v_end is None:
|
|
277
287
|
continue
|
|
278
288
|
vn = branch_vn.get(int(obj_id), 0.0)
|
|
@@ -283,7 +293,7 @@ def _detect_q_inconsistent_branches(
|
|
|
283
293
|
for p_kind in (KIND_P_FROM, KIND_P_TO):
|
|
284
294
|
if (obj_id, p_kind) not in resolved:
|
|
285
295
|
continue
|
|
286
|
-
pv = resolved[(obj_id, p_kind)]
|
|
296
|
+
pv = _usable_value(resolved[(obj_id, p_kind)])
|
|
287
297
|
if pv is not None:
|
|
288
298
|
p_typical = max(p_typical, abs(pv))
|
|
289
299
|
is_ok, _, _, _ = is_branch_q_consistent_with_physics(
|
|
@@ -267,6 +267,58 @@ def test_sign_consistency_keeps_meas():
|
|
|
267
267
|
assert stats["applied"] == 2
|
|
268
268
|
|
|
269
269
|
|
|
270
|
+
def _branch_four_meas() -> np.ndarray:
|
|
271
|
+
return _meas(
|
|
272
|
+
[
|
|
273
|
+
{
|
|
274
|
+
"id": 10 + i,
|
|
275
|
+
"object_type": OT_BRANCH,
|
|
276
|
+
"object_id": 7,
|
|
277
|
+
"measurement_type": mt,
|
|
278
|
+
"branch_side": side,
|
|
279
|
+
}
|
|
280
|
+
for i, (mt, side) in enumerate(((MT_P, 0), (MT_P, 1), (MT_Q, 0), (MT_Q, 1)))
|
|
281
|
+
]
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
def test_sign_check_ignores_bad_values():
|
|
286
|
+
# BAD p_from/p_to with |sum|=382 are not applied and must not drop the GOOD q_to.
|
|
287
|
+
nodes = _nodes([{"id": 1, "voltage_nominal": 500.0}])
|
|
288
|
+
branches = _branches([{"id": 7, "from_node": 1, "status": True}])
|
|
289
|
+
meas = _branch_four_meas()
|
|
290
|
+
resolved = {
|
|
291
|
+
(7, "p_from"): (672.0, 1, "g", MeasurementQuality.BAD),
|
|
292
|
+
(7, "p_to"): (-290.0, 1, "g", MeasurementQuality.BAD),
|
|
293
|
+
(7, "q_from"): (-310.0, 1, "g", MeasurementQuality.BAD),
|
|
294
|
+
(7, "q_to"): (236.0, 1, "g", MeasurementQuality.GOOD),
|
|
295
|
+
}
|
|
296
|
+
stats, _ = _run(meas, nodes, branches, resolved, sign_inconsistency_threshold_mw=100.0)
|
|
297
|
+
assert stats["sign_inconsistent_branches"] == 0
|
|
298
|
+
assert stats["applied"] == 1 and bool(meas[3]["status"])
|
|
299
|
+
assert not any(bool(meas[i]["status"]) for i in range(3))
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
def test_q_loss_check_ignores_bad_values():
|
|
303
|
+
# A BAD q_from makes the Q pair unchecked: the GOOD q_to keeps its variance.
|
|
304
|
+
nodes = _nodes([{"id": 1, "voltage_nominal": 500.0}])
|
|
305
|
+
branches = _branches([{"id": 7, "from_node": 1, "status": True}])
|
|
306
|
+
resolved_bad = {
|
|
307
|
+
(7, "q_from"): (-310.0, 1, "g", MeasurementQuality.BAD),
|
|
308
|
+
(7, "q_to"): (236.0, 1, "g", MeasurementQuality.GOOD),
|
|
309
|
+
}
|
|
310
|
+
resolved_none = {
|
|
311
|
+
(7, "q_from"): (None, 0, "g", 0),
|
|
312
|
+
(7, "q_to"): (236.0, 1, "g", MeasurementQuality.GOOD),
|
|
313
|
+
}
|
|
314
|
+
out = []
|
|
315
|
+
for resolved in (resolved_bad, resolved_none):
|
|
316
|
+
meas = _branch_four_meas()
|
|
317
|
+
_run(meas, nodes, branches, resolved, q_loss_filter_enabled=True)
|
|
318
|
+
out.append((bool(meas[3]["status"]), float(meas[3]["variance"])))
|
|
319
|
+
assert out[0] == out[1] and out[0][0]
|
|
320
|
+
|
|
321
|
+
|
|
270
322
|
# ---------------------------------------------------------------- (5) node-inj accumulation
|
|
271
323
|
|
|
272
324
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|