-
Notifications
You must be signed in to change notification settings - Fork 731
Resolve m-number adjoint bugs introduced by 1855 #2194
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4278,6 +4278,25 @@ def change_k_point(self, k): | |
| self.fields.use_bloch( | ||
| py_v3_to_vec(self.dimensions, self.k_point, self.is_cylindrical) | ||
| ) | ||
|
|
||
| def change_m_number(self, m): | ||
|
||
| """ | ||
| Change the `m` number (the angular ϕ dependence). | ||
| """ | ||
| self.m = m | ||
|
|
||
| if self.fields: | ||
| needs_complex_fields = not ( | ||
| not self.m or self.m == 0 | ||
| ) | ||
|
|
||
| if needs_complex_fields and self.fields.is_real: | ||
| self.fields = None | ||
| self._is_initialized = False | ||
| self.init_sim() | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be better to just add a boolean argument to |
||
| else: | ||
| if self.m is not None: | ||
| self.fields.m = self.m | ||
|
|
||
| def change_sources(self, new_sources): | ||
| """ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.