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

automatic mode rotation for bent waveguide #2028

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

QimingFlex
Copy link
Contributor

@QimingFlex QimingFlex commented Oct 22, 2024

@momchil-flex This is a very initial draft and not ready for review yet, but could you take a quick look at the code structure to see if there are any major mistakes so I can address them early on? I added a field bend_correction in mode_spec, and the process for mode rotation is mostly in data_raw in ModeSolver.

Copy link
Collaborator

@momchil-flex momchil-flex left a comment

Choose a reason for hiding this comment

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

Adding some initial comments, overall the structure makes sense. So is this working currently? We'll obviously need to add a bunch of tests too.

@QimingFlex QimingFlex changed the title Qiming/mode rotation automatic mode rotation for bent waveguide Oct 22, 2024
@QimingFlex
Copy link
Contributor Author

Adding some initial comments, overall the structure makes sense. So is this working currently? We'll obviously need to add a bunch of tests too.

Thanks! I’ve validated the process locally with several cases involving differently oriented bends, and I’ll add those to the tests. This PR isn’t fully working yet, but it’s close. I’ll wrap up the code based on your feedback.

@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch 5 times, most recently from 1353ea5 to c1fd5c1 Compare October 28, 2024 17:48
@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch from e9eb835 to 00976a1 Compare October 31, 2024 18:25
@QimingFlex QimingFlex marked this pull request as ready for review November 1, 2024 21:15
@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch 2 times, most recently from 6e51b86 to 4e6dbc7 Compare November 1, 2024 22:41
@momchil-flex momchil-flex added the 2.8 will go into version 2.8.* label Nov 5, 2024
@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch 6 times, most recently from c5f79fc to 2517468 Compare November 13, 2024 20:38
@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch 3 times, most recently from b3921cd to c8c4aac Compare November 15, 2024 20:42
@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch 7 times, most recently from 6294a4f to df06ea9 Compare November 20, 2024 00:36
Copy link
Collaborator

@momchil-flex momchil-flex left a comment

Choose a reason for hiding this comment

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

Almost there. One other thing is that this will go in 2.8, not in develop. One way to switch is something like:

git checkout -b backup/mode_rotation
git checkout qiming/mode_rotation
git fetch
git reset --hard origin/pre/2.8
git cherry-pick 8a718b6^..df06ea9 # I selected the sha-s of the three commits in this branch as of their current state but these could change if you e.g. rebase
git push -f origin qiming/mode_rotation # and then update the PR base here to be pre/2.8

@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch 3 times, most recently from 10008a2 to af4b955 Compare November 25, 2024 23:31
@QimingFlex QimingFlex changed the base branch from develop to pre/2.8 November 25, 2024 23:31
@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch 2 times, most recently from 20bd1b2 to 6e28a28 Compare November 25, 2024 23:42
@QimingFlex
Copy link
Contributor Author

Almost there. One other thing is that this will go in 2.8, not in develop. One way to switch is something like:

git checkout -b backup/mode_rotation
git checkout qiming/mode_rotation
git fetch
git reset --hard origin/pre/2.8
git cherry-pick 8a718b6^..df06ea9 # I selected the sha-s of the three commits in this branch as of their current state but these could change if you e.g. rebase
git push -f origin qiming/mode_rotation # and then update the PR base here to be pre/2.8

This is very helpful, much appreciated.

Copy link
Collaborator

@momchil-flex momchil-flex left a comment

Choose a reason for hiding this comment

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

This looks ready, thanks for the great effort!

Just one small comment here and on the backend before merging.

@QimingFlex QimingFlex force-pushed the qiming/mode_rotation branch from 7999058 to 6e02992 Compare December 3, 2024 15:37
@momchil-flex momchil-flex merged commit 39a0c42 into pre/2.8 Dec 4, 2024
15 checks passed
@momchil-flex momchil-flex deleted the qiming/mode_rotation branch December 4, 2024 10:28
@momchil-flex momchil-flex restored the qiming/mode_rotation branch December 4, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8 will go into version 2.8.*
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants