Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add edb configuration support for SIwave #710

Closed
hui-zhou-a opened this issue Aug 5, 2024 · 0 comments · Fixed by #709
Closed

Add edb configuration support for SIwave #710

hui-zhou-a opened this issue Aug 5, 2024 · 0 comments · Fixed by #709
Labels
enhancement New features or code improvements

Comments

@hui-zhou-a
Copy link
Collaborator

Description of the feature

load and export configuration file into/from .siw

Steps for implementing the feature

edbapp = edb_examples.get_si_verse(edbapp=False)
data = {
    "ports": [
        {
            "name": "CIRCUIT_X1_B8_GND",
            "reference_designator": "X1",
            "type": "circuit",
            "positive_terminal": {"pin": "B8"},
            "negative_terminal": {"net": "GND"},
        },
    ]
}
cfg_json = os.path.join(edb_examples.test_folder, "cfg.json")
with open(cfg_json, "w") as f:
    json.dump(data, f)

siw = Siwave(desktop_version)
siw.import_edb(edbapp)
siw.load_configuration(cfg_json)
cfg_json_2 = os.path.join(edb_examples.test_folder, "cfg2.json")
siw.export_configuration(cfg_json_2)
siw.quit_application()

Useful links and references

No response

@hui-zhou-a hui-zhou-a added the enhancement New features or code improvements label Aug 5, 2024
@hui-zhou-a hui-zhou-a linked a pull request Aug 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant