Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/user_manual/calculations.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ In observable systems this helps better outputting correct results. On the other
```

```{warning}
At the time of writing, the component [current sensor](./components.md#generic-current-sensor) is not supported in the calculation of [Newton-Raphson state estimation](#newton-raphson-state-estimation). The support in the calculation of [Iterative Linear state estimation](#iterative-linear-state-estimation) is experimental.
At the time of writing, the component [current sensor](./components.md#generic-current-sensor) is not supported in the calculation of [Newton-Raphson state estimation](#newton-raphson-state-estimation).
```

##### Necessary observability condition
Expand Down
8 changes: 0 additions & 8 deletions docs/user_manual/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -863,10 +863,6 @@ $$

### Generic Current Sensor

```{warning}
At the time of writing, this feature is still experimental and is not yet publicly available.
```

```{warning}
At the time of writing, state estimation with current sensors is not supported by the Newton-Raphson calculation method.
```
Expand Down Expand Up @@ -898,10 +894,6 @@ However, such mixing of sensor types is allowed as long as they are on different

#### Current Sensor Concrete Types

```{warning}
At the time of writing, this feature is still experimental and is not yet publicly available.
```

```{warning}
At the time of writing, state estimation with current sensors is not supported by the Newton-Raphson calculation method.
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -803,11 +803,9 @@ class MainModelImpl<ExtraRetrievableTypes<ExtraRetrievableType...>, ComponentLis

void check_no_experimental_features_used(Options const& options) const {
if (options.calculation_type == CalculationType::state_estimation &&
state_.components.template size<GenericCurrentSensor>() > 0) {
if (options.calculation_method == CalculationMethod::newton_raphson) {
throw ExperimentalFeature{"Newton-Raphson state estimation is not implemented for current sensors"};
}
throw ExperimentalFeature{"State estimation with current sensors is experimental"};
state_.components.template size<GenericCurrentSensor>() > 0 &&
options.calculation_method == CalculationMethod::newton_raphson) {
throw ExperimentalFeature{"Newton-Raphson state estimation is not implemented for current sensors"};
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
".+_residual": 5e-4
},
"extra_params": {
"iterative_linear": {
"experimental_features": "enabled"
},
"newton_raphson": {
"experimental_features": "enabled",
"fail": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
".+_residual": 5e-4
},
"extra_params": {
"iterative_linear": {
"experimental_features": "enabled"
},
"newton_raphson": {
"experimental_features": "enabled",
"fail": {
Expand Down
5 changes: 2 additions & 3 deletions tests/native_api_tests/test_api_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ TEST_CASE("API Model") {
}
}

SUBCASE("Current sensor is experimental") {
SUBCASE("Current sensor for NRSE is experimental: not implemented") {
auto const input_data_se_json = R"json({
"version": "1.0",
"type": "input",
Expand Down Expand Up @@ -1103,8 +1103,7 @@ TEST_CASE("API Model") {
"Newton-Raphson state estimation is not implemented for current sensors",
PowerGridRegularError);
} else {
CHECK_THROWS_WITH_AS(run_se_with_current_sensor(method, PGM_experimental_features_disabled),
"State estimation with current sensors is experimental", PowerGridRegularError);
CHECK_NOTHROW(run_se_with_current_sensor(method, PGM_experimental_features_disabled));
}
CHECK_NOTHROW(run_se_with_current_sensor(method, PGM_experimental_features_enabled));
}
Expand Down
5 changes: 2 additions & 3 deletions tests/unit/test_error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
LoadGenType,
MeasuredTerminalType,
TapChangingStrategy,
_ExperimentalFeatures,
)
from power_grid_model.errors import (
AutomaticTapInputError,
Expand Down Expand Up @@ -422,7 +421,7 @@ def test_conflicting_angle_measurement_type() -> None:
)

with pytest.raises(ConflictingAngleMeasurementType):
model._calculate_state_estimation(decode_error=True, experimental_features=_ExperimentalFeatures.enabled)
model._calculate_state_estimation(decode_error=True)


def test_global_current_measurement_without_voltage_angle() -> None:
Expand Down Expand Up @@ -470,7 +469,7 @@ def test_global_current_measurement_without_voltage_angle() -> None:
)

with pytest.raises(NotObservableError):
model._calculate_state_estimation(decode_error=True, experimental_features=_ExperimentalFeatures.enabled)
model._calculate_state_estimation(decode_error=True)


@pytest.mark.skip(reason="TODO")
Expand Down
Loading