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

Option to allow DC component in GaussianPulse spectrum #1054

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

caseyflex
Copy link
Contributor

Per this issue:
#690

@caseyflex caseyflex linked an issue Aug 4, 2023 that may be closed by this pull request
@caseyflex
Copy link
Contributor Author

caseyflex commented Aug 4, 2023 via email

Copy link
Collaborator

@tylerflex tylerflex left a comment

Choose a reason for hiding this comment

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

some pretty minor suggested changes but overall looks good!

tidy3d/components/source.py Outdated Show resolved Hide resolved
tidy3d/components/source.py Outdated Show resolved Hide resolved
@caseyflex caseyflex force-pushed the casey/dccomponent branch 2 times, most recently from deaae1b to 4c6b82f Compare August 4, 2023 14:22
Copy link
Collaborator

@tylerflex tylerflex left a comment

Choose a reason for hiding this comment

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

Thanks @caseyflex looks good to me, just make sure to edit the changelog too with the "remove" convention.

@caseyflex
Copy link
Contributor Author

Thanks @caseyflex looks good to me, just make sure to edit the changelog too with the "remove" convention.

I'd almost rather leave the changelog as it is, since the actual functionality which was added was the ability to leave in the DC component

@tylerflex
Copy link
Collaborator

Yea good point, might just suggest putting how to do that in the changelog, eg

... by setting `remove_dc_component=False` in `GaussianPulse`.

or something.

Copy link
Contributor

@tomflexcompute tomflexcompute left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for the implementation!

@caseyflex
Copy link
Contributor Author

I introduced an extra factor of 1j in the case where we do not remove the DC component. This extra factor makes it agree with the case where we do remove the DC component in the limit of large omega0.

@tylerflex tylerflex merged commit 65c4a25 into pre/2.4 Aug 7, 2023
13 checks passed
@tylerflex tylerflex deleted the casey/dccomponent branch August 7, 2023 16:33
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.

DC Component in Source Spectrum
4 participants