-
Notifications
You must be signed in to change notification settings - Fork 63
Hotfix/v2.9 #2729
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
base: develop
Are you sure you want to change the base?
Hotfix/v2.9 #2729
Conversation
…grouping by more than 1 port
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
17 files reviewed, 2 comments
test_results[SAVE_FD_LOC, :] = fd_grad | ||
test_results[SAVE_ADJ_LOC, :] = pattern_dot_adj_gradient | ||
|
||
test_number += 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Variable test_number
is incremented but the incremented value is never used since it's at the end of the function.
Context Used: Rule - Use an underscore (_) for loop variables that are intentionally unused. (link)
…ocessing to avoid validation error between sources and structure used as background medium
Greptile Summary
This hotfix PR (v2.9) addresses several critical bug fixes and documentation improvements across the Tidy3D codebase. The primary changes include:
Bug Fixes:
CoaxialLumpedPort
where the source size parameter was hardcoded instead of using the computed size that accounts for injection axis orientationDiffractionData
to properly handle negative monitor normal directions by introducing a normal factor that adjusts both amplitude and angleModeSolver
to prevent 32-bit integer overflow issues when the product of grid points and modes becomes too largeDocumentation Enhancements:
RunTimeSpec
,FreqRange
,FrequencyUtils
, and the pre-configuredfrequencies
/wavelengths
instancesRunTimeSpec
from simulation to utilities sectionFrequencyUtils
class in the public API for direct user accessTesting Improvements:
ModeSolver
limits to ensure proper error handlingThese changes integrate well with the existing codebase architecture, following established patterns for validation, error handling, and documentation. The fixes address real production issues that could impact simulation accuracy and user workflows.
Important Files Changed
Click to expand file changes
Confidence score: 4/5