Skip to content

Commit bfc50d9

Browse files
RFingAdamclaude
andcommitted
fix: correct parse_file -> parse method calls for IPC-2581 and Altium parsers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 98bc9a7 commit bfc50d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mcp_pcb_emcopilot/parsers/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def _parse_altium(file_path: str) -> PCBDesignData:
423423
raise ImportError("Altium parser requires 'olefile' package: pip install olefile")
424424

425425
parser = AltiumPcbParser() # type: ignore[attr-defined]
426-
board = parser.parse_file(file_path) # type: ignore[attr-defined]
426+
board = parser.parse(file_path) # type: ignore[attr-defined]
427427

428428
data = PCBDesignData(
429429
source_file=file_path,
@@ -572,7 +572,7 @@ def _parse_ipc2581(file_path: str) -> PCBDesignData:
572572
from .ipc2581_parser import IPC2581Parser
573573

574574
parser = IPC2581Parser() # type: ignore[attr-defined]
575-
ipc = parser.parse_file(file_path) # type: ignore[attr-defined]
575+
ipc = parser.parse(file_path) # type: ignore[attr-defined]
576576

577577
data = PCBDesignData(
578578
source_file=file_path,

0 commit comments

Comments
 (0)