Eliminate the two-station restriction on double-ended fault analysis#666
Merged
Conversation
4dbcd56 to
3eee0a5
Compare
3eee0a5 to
0ba085e
Compare
clackner-gpa
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lineLookuponly contains lines that were monitored by the meter that produced theMeterDataSetthat openXDA is processing when performing double-ended analysis.line.AssetLocations.Count == 2restriction.MeterDataSet.segmentLookupprovides the mapping between event IDs and segment IDs. If you provide an event ID, it will return a list of line segments that are directly connected to the location of the meter that produced the event (viaAssetLocation). Furthermore, the list of segments only consist of segments on the asset associated with the event, so a properly configured system should produce exactly one segment from the lookup table for a given event.DeviceDefinitions.xmlcases, there is only one line segment with noAssetLocationrecords to tie it to any station. To make that case work, we still fall back on the longestTransmissionPath, which should be just the one line segment anyway.Asset.QueryAs<T>()a little bit so that the resultingLinerecord shares aLazyContextwith theAssetrecord it was queried from. This allows me to queryline.Segmentsandline.Pathwithout having to assign a connection factory and generate a separateLazyContext. This extension provides caching forLine,LineSegment, andCapBankRelaybecause those are currently the only asset-based models that get cached in the lazy context at all.