Repository navigation
Conversation
gdsfactory<7 pinned AutoGator to pydantic 1. It was only used to read a GDS file's top cell and its polygons, which gdstk (what gdsfactory 6 used underneath) does directly, with identical results. - pydantic 2 and pydantic-settings 2 replace pydantic 1's BaseSettings. - The keyboard bindings read environment variables with the prefixes AUTOGATOR_KEYBOARD_ and AUTOGATOR_GUI_. Without a prefix, the HOME binding picked up the HOME environment variable. - Stage axes are explicitly Optional (pydantic 2 no longer infers it). - loadGDS raises a clear error if the file has more than one top cell. - Python 3.11+, as PyroLab requires. pyrolab is temporarily sourced from git (development installs only) until a release with pydantic 2 support exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
gdsfactory<7held AutoGator on pydantic 1, and PyroLab is moving to pydantic 2. Newer gdsfactory doesn't help: 7.x requires pydantic 2 but pins an old gdstk, and 8+ is built on KLayout. AutoGator only used gdsfactory to read a GDS file's top cell and its polygons. gdstk, which gdsfactory 6 used underneath, does that directly.Changes
circuits.py): usesgdstk.read_gds(...).top_level()instead ofgf.import_gds. If a file has more than one top-level cell, it now raises an error that names them. gdsfactory is no longer a dependency, so 17 fewer packages get installed.model_dump_json/model_validate_jsonreplacejson/parse_file, so existing profile JSON files load unchanged.ConfigDict(extra="forbid").Optional[...] = None.controllers.py) usepydantic-settingsand read environment variables with the prefixesAUTOGATOR_KEYBOARD_andAUTOGATOR_GUI_.HOMEbinding picked up the shell'sHOMEvariable (e.g./home/user).Verification
AutoGator has no test CI and only stub tests, so I checked these by hand:
HOMEno longer leaks into the bindings.loadGDSon master (gdsfactory 6, pydantic 1) with this branch on the same synthetic chips. The polygon counts and polygon hashes matched, and so did the outcome.🤖 Generated with Claude Code