-
Notifications
You must be signed in to change notification settings - Fork 15
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
Refactor stamp.py #468
Refactor stamp.py #468
Conversation
flake8 was calling out a lot of style issues, turn those off
Pull out some useful functionality. Useful stuff for calculating stamp sizes was put into stamp_utils.py get_stamp_size (was in LSST_SiliconBuilder.__init__) get_star_stamp_size get_gal_stamp_size get_good_phot_stamp_size (was LSST_SiliconBuilder._getGoodPhotImageSize) get_good_phot_stamp_size1 (was LSST_SiliconBuilder._getGoodPhotImageSize1) Useful stuff for psfs was put into psf_utils.py make_double_gaussian (was LSST_SiliconBuilder.DoubleGaussian) make_kolmogorov_and_gaussian_psf was (LSST_SiliconBuilder.Kolmogorov_and_Gaussian_PSF) make_fft_psf (was LSST_SiliconBuilder.make_fft_psf)
Make optional
Who wants to take this one? |
The data download failed in the CI. I don't have permission to rerun the workflow, can someone please kick that off? |
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.
LGTM. Just one doc typo.
imsim/stamp_utils.py
Outdated
|
||
def get_gal_stamp_size(obj_achrom, nominal_flux, noise_var, Nmax, pixel_scale): | ||
""" | ||
Get a stamp size for a star (DeltaFunction) object |
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.
This doc is wrong.
Is this OK to merge now? |
It's fine by me, but I usually let Jim or Chris make the call. |
It's ok with me. |
OK. |
Pull out some useful functionality.
Add a .flake8 to avoid some style complaints