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

refc: replace assert statements #1835

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

yaugenst-flex
Copy link
Contributor

@yaugenst-flex yaugenst-flex commented Jul 15, 2024

Closes #1833

Replaces all assert statements in tidy3d/ by checking for and raising exceptions. I made an attempt to infer some error messages and error types.
Also updates our linting rules to forbid asserts.

Should be merged after #1834

@yaugenst-flex yaugenst-flex self-assigned this Jul 16, 2024
@yaugenst-flex
Copy link
Contributor Author

@momchil-flex this is ready to go, might want to wait until after #1846 though

@momchil-flex momchil-flex merged commit 9e2eaa6 into develop Jul 23, 2024
16 checks passed
@momchil-flex momchil-flex deleted the yaugenst-flex/remove-asserts branch July 23, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove asserts from non-test code
5 participants