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

Add galsim.EmissionLine #1249

Merged
merged 3 commits into from
Oct 6, 2023
Merged

Add galsim.EmissionLine #1249

merged 3 commits into from
Oct 6, 2023

Conversation

jmeyers314
Copy link
Member

No description provided.

Copy link
Member

@rmjarvis rmjarvis left a comment

Choose a reason for hiding this comment

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

A few suggestions. Also, I think we had a few places in the code where we hand-make an SED that is basically an EmissionLine. It would be nice to replace these with the new class.

galsim/sed.py Outdated

Parameters:
wavelength: The wavelength of the line.
fwhm: The full-width-half-max of the line.
Copy link
Member

Choose a reason for hiding this comment

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

This should probably have default too, I think. 1 nm or something.

fwhm: The full-width-half-max of the line.
flux: The integrated flux of the line. [default: 1.0]
wave_type: The units of wavelength used for this SED. See SED
constructor for options. [default: 'nm']
Copy link
Member

Choose a reason for hiding this comment

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

I guess this is just for fwhm. Maybe mention that here.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's for both the wavelength and fwhm arguments. I'll clarify.

Copy link
Member

Choose a reason for hiding this comment

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

Of course. Yes, wavelength too. :)

@rmjarvis rmjarvis merged commit 93df530 into main Oct 6, 2023
9 checks passed
@rmjarvis rmjarvis deleted the emission_line branch October 6, 2023 16:52
@rmjarvis rmjarvis mentioned this pull request Oct 12, 2023
@rmjarvis rmjarvis added feature request Request for a new feature in GalSim chromatic Related to the Chromatic classes, SEDs, bandpasses, etc. labels Oct 12, 2023
@rmjarvis rmjarvis added this to the v2.5 milestone Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chromatic Related to the Chromatic classes, SEDs, bandpasses, etc. feature request Request for a new feature in GalSim
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants