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

tickets/DM-13834: Add minimum and maximum wavelength to FilterProperty. #342

Merged
merged 3 commits into from Apr 6, 2018

Conversation

isullivan
Copy link
Contributor

This adds additional FilterProperties lambdaMin and lambdaMax, and should work in a backwards-compatible way. But, I am not confident working with C++, so I would appreciate an extra-careful look at my changes to make sure I haven't messed something up.

@@ -246,7 +246,7 @@ def setUp(self):
lambdaEff in wavelengths.items() if name == "g"][0] # for tests

def defineFilterProperty(self, name, lambdaEff, force=False):
return afwImage.FilterProperty(name, lambdaEff, force)
return afwImage.FilterProperty(name, lambdaEff, force=force)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to test the new functionality as well as the old.

@@ -90,6 +92,14 @@ class FilterProperty {
* Return the filter's effective wavelength (nm)
*/
double getLambdaEff() const { return _lambdaEff; }
/**
* Return the filter's minimum wavelength (nm)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to be more precise here?

For example, are these the values beyond which < X% of the total throughput exists? or where the fractional throughput first drops below X% of the peak? After all, if we're being really pedantic, I think we expect some light leaks (at the ~10^-5 of peak throughput level) across pretty much the entire visible range from 350nm to 1100nm (but obviously it isn't useful to set lambdaMin=350 and lambdaMax=1100 for every filter). If you do have a concrete procedure for calculating these, or even if the answer is "I eyeballed it" it would be good to document that.

@isullivan isullivan merged commit e506bfb into master Apr 6, 2018
@ktlim ktlim deleted the tickets/DM-13834 branch August 25, 2018 06:44
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