Add missing known-issues.md file referenced in README
#3
by
GeetzJ
- opened
- known-issues.md +124 -0
known-issues.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Known Issues
|
| 2 |
+
|
| 3 |
+
## Missing Output Files
|
| 4 |
+
|
| 5 |
+
It has been observed that some generated files are missing.
|
| 6 |
+
|
| 7 |
+
### Current Issue
|
| 8 |
+
|
| 9 |
+
For unknown reasons, certain files are absent from the generated output. [This file](missing-files.txt) lists missing files.
|
| 10 |
+
|
| 11 |
+
We are currently investigating the cause of this issue and exploring potential solutions.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## Changes in Element IDs or Names
|
| 16 |
+
|
| 17 |
+
### Current Issue
|
| 18 |
+
|
| 19 |
+
At times, certain elements within the electrical network experience changes in their names or may be replaced.
|
| 20 |
+
|
| 21 |
+
Our policy regarding these changes is as follows:
|
| 22 |
+
* If an element's name or ID changes, we aim to replace the new identifier with the old one to avoid impacting neural network training.
|
| 23 |
+
* However, if an element is replaced due to damage or malfunction and the new element does not have identical characteristics (e.g., maximum intensity or voltage acceptance), it is treated as a distinct element.
|
| 24 |
+
|
| 25 |
+
In practice, when element IDs change, the detection of the new name is not always performed correctly. This often leads to inconsistencies.
|
| 26 |
+
|
| 27 |
+
### Solution Approach
|
| 28 |
+
|
| 29 |
+
The detection mechanism is being improved to consider additional fields for better tracking of changes.
|
| 30 |
+
|
| 31 |
+
1. For each element, all relevant identifying fields are concatenated using a "`__`" (double underscore) separator to form a unique `persistent_id`. This `persistent_id` remains consistent for a given element across different files.
|
| 32 |
+
2. When comparing two files, we:
|
| 33 |
+
- Identify `persistent_id` values that were present in the first file but missing in the second.
|
| 34 |
+
- Identify `persistent_id` values that appear in the second file but were absent in the first.
|
| 35 |
+
3. To match elements from the old file to the new file, we assume that changes in ID, name, and `persistent_id` should be relatively minor. We use Levenshtein distance calculations to find the best possible match.
|
| 36 |
+
4. Steps 2 and 3 are repeated for all files in the dataset.
|
| 37 |
+
5. Once the matrix mapping changing elements is established, all new IDs are replaced with their corresponding old IDs.
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
### Example Scenario
|
| 42 |
+
|
| 43 |
+
We illustrate this approach with a simple example.
|
| 44 |
+
|
| 45 |
+
#### First File:
|
| 46 |
+
```xml
|
| 47 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 48 |
+
<iidm:network xmlns:iidm="http://www.powsybl.org/schema/iidm/1_12" id="snapshot_2021-01-02-1000" caseDate="2021-01-02T10:00:00.000+01:00">
|
| 49 |
+
...
|
| 50 |
+
<iidm:voltageLevel id="ARGIAP6" nominalV="225.0">
|
| 51 |
+
<iidm:switch id="ARGIAP6_ARGIA 6TR631 SA.1" name="ARGIA 6TR631 SA.1" />
|
| 52 |
+
<iidm:switch id="ARGIAP6_ARGIA 6AT761 SA.1" name="ARGIA 6AT761 SA.1" />
|
| 53 |
+
</iidm:voltageLevel>
|
| 54 |
+
...
|
| 55 |
+
</iidm:network>
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
#### Second File:
|
| 59 |
+
```xml
|
| 60 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 61 |
+
<iidm:network xmlns:iidm="http://www.powsybl.org/schema/iidm/1_12" id="snapshot_2021-01-02-1100" caseDate="2021-01-02T11:00:00.000+01:00">
|
| 62 |
+
...
|
| 63 |
+
<iidm:voltageLevel id="ARGIAP6" nominalV="225.0">
|
| 64 |
+
<iidm:switch id="ARGIAP6_ARGIA 6AT762 SA.1" name="ARGIA 6AT761 SA.1" />
|
| 65 |
+
<iidm:switch id="ARGIAP6_ARGIA 6TR631 SA.1" name="ARGIA 6TR632 SA.1" />
|
| 66 |
+
</iidm:voltageLevel>
|
| 67 |
+
...
|
| 68 |
+
</iidm:network>
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
#### Observations:
|
| 72 |
+
* The second file is more recent (see the `caseDate` attribute).
|
| 73 |
+
* The first switch has a different ID in the second file.
|
| 74 |
+
* The second switch has a different name in the second file.
|
| 75 |
+
* The order of the two switches has changed, which can occur in real-world datasets.
|
| 76 |
+
|
| 77 |
+
#### Persistent ID Computation
|
| 78 |
+
|
| 79 |
+
For switches, the `persistent_id` is generated using:
|
| 80 |
+
- Voltage level `id`
|
| 81 |
+
- Switch `id`
|
| 82 |
+
- Switch `name`
|
| 83 |
+
- Switch nodes (`node1` and `node2`)
|
| 84 |
+
|
| 85 |
+
##### Generated `persistent_id` values:
|
| 86 |
+
**First File:**
|
| 87 |
+
- `ARGIAP6__ARGIAP6_ARGIA 6TR631 SA.1__ARGIA 6TR631 SA.1__0__18` → `switch_1_a`
|
| 88 |
+
- `ARGIAP6__ARGIAP6_ARGIA 6AT761 SA.1__ARGIA 6AT761 SA.1__0__6` → `switch_2_a`
|
| 89 |
+
|
| 90 |
+
**Second File:**
|
| 91 |
+
- `ARGIAP6__ARGIAP6_ARGIA 6AT762 SA.1__ARGIA 6AT761 SA.1__0__6` → `switch_1_b`
|
| 92 |
+
- `ARGIAP6__ARGIAP6_ARGIA 6TR631 SA.1__ARGIA 6TR632 SA.1__0__18` → `switch_2_b`
|
| 93 |
+
|
| 94 |
+
#### Levenshtein Distance Calculation:
|
| 95 |
+
|
| 96 |
+
| | Distance to switch_1_a | Distance to switch_1_b |
|
| 97 |
+
|------------|----------------------|----------------------|
|
| 98 |
+
| switch_2_a | 8 | 2 |
|
| 99 |
+
| switch_2_b | 1 | 11 |
|
| 100 |
+
|
| 101 |
+
Based on these distances, the algorithm correctly identifies:
|
| 102 |
+
- `switch_1_a` corresponds to `switch_2_b`
|
| 103 |
+
- `switch_1_b` corresponds to `switch_2_a`
|
| 104 |
+
|
| 105 |
+
This aligns with the observed inversion of switch order in the second file.
|
| 106 |
+
|
| 107 |
+
#### Final Adjustments
|
| 108 |
+
|
| 109 |
+
After resolving ID mismatches, the second file is updated:
|
| 110 |
+
```xml
|
| 111 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 112 |
+
<iidm:network xmlns:iidm="http://www.powsybl.org/schema/iidm/1_12" id="snapshot_2021-01-02-1100" caseDate="2021-01-02T11:00:00.000+01:00">
|
| 113 |
+
...
|
| 114 |
+
<iidm:voltageLevel id="ARGIAP6" nominalV="225.0">
|
| 115 |
+
<iidm:switch id="ARGIAP6_ARGIA 6AT761 SA.1" name="ARGIA 6AT761 SA.1" />
|
| 116 |
+
<iidm:switch id="ARGIAP6_ARGIA 6TR631 SA.1" name="ARGIA 6TR631 SA.1" />
|
| 117 |
+
</iidm:voltageLevel>
|
| 118 |
+
...
|
| 119 |
+
</iidm:network>
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
#### Conclusion
|
| 123 |
+
While the switch order remains different, the correct identifiers have been restored, ensuring consistency across files.
|
| 124 |
+
|