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

DM-26615: Remove afw.filter dependency from DcrModel #167

Merged
merged 2 commits into from Nov 4, 2020

Conversation

isullivan
Copy link
Contributor

The new Filter will not contain wavelength information, so that must be removed. The long-term solution is to use the actual transmission curves, but for now we will have to simply pass that in as a config option.

Copy link
Contributor

@taranu taranu left a comment

Choose a reason for hiding this comment

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

Looks fine; comments are for clarification.


@classmethod
def fromDataRef(cls, dataRef, datasetType="dcrCoadd", numSubfilters=None, **kwargs):
def fromDataRef(cls, dataRef, effectiveWavelength, bandwidth, datasetType="dcrCoadd", numSubfilters=None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do effectiveWavelength and bandwidth have defaults above (in init) but not here?

Dictionary of spatially relevant retrieved coadd patches,
indexed by their sequential patch number.
effectiveWavelength : `float`
The effective wavelengths of the current filter.
Copy link
Contributor

Choose a reason for hiding this comment

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

I presume "wavelengths" vs wavelength is a typo (also above on L131).

The units should be mentioned either explicitly or with reference to the definition on L283 (the latter is probably preferable in case it changes).

Returns
-------
bandwidth : `float`
The bandwidth of the current filter.
Copy link
Contributor

Choose a reason for hiding this comment

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

"In the same units as effectiveWavelength"?

dtype=int,
default=3,
)
effectiveWavelength = pexConfig.Field(
doc="Effective wavelength of the filter. Used only if ``coaddName``='dcr'",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the unit=nanometer be mentioned here?

refShift = [(-0.5575567724366292, -0.2704095599533037),
(0.001961910992342903, 0.000951507567181944),
(0.40402552599550073, 0.19594841296051665)]
refShift = [(-0.587550080368824, -0.28495575189083666),
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you understand why these numbers changed, and/or does it matter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The minimum and maximum wavelengths were slightly asymmetric before, which was slightly more accurate but not supportable by the new method. As a result of the small shift in wavelengths, the results of this test changed.

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.

None yet

3 participants