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

fix smatrix component task_ids to/from file #1699

Merged
merged 1 commit into from
May 13, 2024

Conversation

tylerflex
Copy link
Collaborator

No changelog needed I think because the PR that broke this hasn't been released.

I refactored Batch and Job recently #1630 . Before, the Job had task_id as a field that was created in a validator by uploading the task. Similarly, Batch.jobs was a field that was created in a validator by uploading all of the tasks. This meant that these fields were saved to file automatically. In the new refactor, these fields are just properties that are created when the Job/Batch is .upload() ed for the first time. So they aren’t saved to file natively, I needed to patch that into the .json() methods. Turned out I had done it so that a Batch worked properly when saved to file, but I needed to handle a component modeler too.

@tylerflex tylerflex added rc2 2nd pre-release 2.7 will go into version 2.7.* labels May 12, 2024
@tylerflex tylerflex changed the base branch from develop to pre/2.7 May 12, 2024 13:24
@tylerflex
Copy link
Collaborator Author

Tested with Design.ipynb, Smatrix.ipynb and WebAPI.ipynb and all run fine.

Copy link
Contributor

@dmarek-flex dmarek-flex left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

tidy3d/plugins/smatrix/component_modelers/base.py Outdated Show resolved Hide resolved
@tylerflex tylerflex force-pushed the tyler/fix/smatrix_to_from_file branch 3 times, most recently from d6423eb to 74349ba Compare May 13, 2024 15:05
@tylerflex tylerflex force-pushed the tyler/fix/smatrix_to_from_file branch from 74349ba to 0d6d991 Compare May 13, 2024 15:07
@tylerflex tylerflex merged commit 4ebc781 into pre/2.7 May 13, 2024
16 checks passed
@tylerflex tylerflex deleted the tyler/fix/smatrix_to_from_file branch May 13, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 will go into version 2.7.* rc2 2nd pre-release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants