Skip to content

Refactor circuitJsonToSpice into modular helpers#12

Draft
seveibar wants to merge 1 commit intomainfrom
codex/refactor-circuitjsontospice.ts-file
Draft

Refactor circuitJsonToSpice into modular helpers#12
seveibar wants to merge 1 commit intomainfrom
codex/refactor-circuitjsontospice.ts-file

Conversation

@seveibar
Copy link
Copy Markdown
Contributor

@seveibar seveibar commented Oct 5, 2025

Summary

  • split the circuitJsonToSpice implementation into focused helpers for node mapping, component creation, and simulation voltage sources
  • extract value formatting, identifier sanitization, and simulation switch control logic into reusable utilities
  • add a shared type for simulation switches used during SPICE generation

Testing

  • bunx tsc --noEmit
  • bun test tests

https://chatgpt.com/codex/tasks/task_b_68e213af6cb4832ebf79196a0f9183a8

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant