Skip to content

Te/synergi reader#68

Open
tarekelgindy wants to merge 19 commits into
mainfrom
te/synergi_reader
Open

Te/synergi reader#68
tarekelgindy wants to merge 19 commits into
mainfrom
te/synergi_reader

Conversation

@tarekelgindy
Copy link
Copy Markdown
Contributor

Improved synergi reader validated on larger datasets.

tarekelgindy and others added 19 commits April 8, 2026 14:27
…na MDB

- Remove pdb.set_trace() calls in geometry_branch and geometry_branch_equipment
- Add fallback values (0.001) for zero conductor diameter, GMR, resistance
  with TODO comments flagging these need proper data fixes in future
- Use fallback ampacity of 600A when ContinuousCurrentRating/InterruptCurrentRating is zero
- Guard against empty conductor lists in GeometryBranchEquipment
- Wrap component parse loops in try/except to skip bad rows with warnings
- Fix insulation_thickness check: use <= 0 instead of == 0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tarekelgindy tarekelgindy requested a review from zzink-nrel May 9, 2026 01:00
components = []
for idx, row in table_data.iterrows():
try:
if component_type == "GeometryBranchEquipment":
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly some complexity to be saved here.


def map_pct_full_load_loss(self, row):
return 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is full load loss not reported?

def map_windings(self, row):
winding1 = WindingEquipmentMapper(self.system).parse(row, 1)
winding2 = WindingEquipmentMapper(self.system).parse(row, 2)
return [winding1, winding2]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess no 3 winding xfmrs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants