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-28947: Add option to optionally set spectra init #37

Merged
merged 1 commit into from Feb 25, 2021

Conversation

fred3m
Copy link
Contributor

@fred3m fred3m commented Feb 24, 2021

No description provided.

Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

A couple of minor comments that I think will make it a bit easier to read/use.

else:
spectrumInit = len(centers) * bbox.getArea() < config.maxSpectrumCutoff
else:
spectrumInit = config.setSpectra
Copy link
Contributor

Choose a reason for hiding this comment

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

I think in this case this is always False, right? I think it should just be set to False.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Originally I tried to use True to always use setSpectra, False to never use it, and None to check maxSpectrumCutoff, but the stack won't let me use None as the default for a bool (which makes sense, but :( ).

python/lsst/meas/extensions/scarlet/scarletDeblendTask.py Outdated Show resolved Hide resolved
@erykoff
Copy link
Contributor

erykoff commented Feb 24, 2021

One more thing: the title of the PR has a typo.

@fred3m fred3m changed the title DM-28947: Add option to optionally set specra init DM-28947: Add option to optionally set spectra init Feb 25, 2021
@fred3m fred3m merged commit 267a102 into master Feb 25, 2021
@fred3m fred3m deleted the tickets/DM-28947 branch February 25, 2021 00:18
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

2 participants