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-22222: Set default configs for ProcessCcd pipeline #327

Merged
merged 1 commit into from Nov 27, 2019

Conversation

arunkannawadi
Copy link
Member

No description provided.

class: lsst.pipe.tasks.calibrate.CalibrateTask
config:
detection.doTempLocalBackground: False
deblend.maxFootprintSize: 2000
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert this whole file back to how it was.

for task in configs.keys():
if isinstance(configs[task], dict) and 'config' in configs[task].keys():
for attr, val in configs[task]['config'].items():
self.task.attr = val
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove all these changes from this file, reverting it back to what is on master.

@@ -63,11 +64,13 @@ class ProcessCcdConfig(pexConfig.Config):
)

def setDefaults(self):
self.isr.doWrite = False
self.charImage.doWriteExposure = False
self.charImage.detection.doTempLocalBackground = False
Copy link
Contributor

Choose a reason for hiding this comment

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

go to characterizeImage.CharacterizeImageConfig and change doWriteExposure to default to False, and add detection.doTempLocalBackground = False inside the setDefaults method.

self.charImage.doWriteExposure = False
self.charImage.detection.doTempLocalBackground = False
self.calibrate.detection.doTempLocalBackground = False
self.calibrate.deblend.maxFootprintSize = 2000
Copy link
Contributor

Choose a reason for hiding this comment

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

go to calibrate.CalibrateConfig and add detection.doTempLocalBackground = False and deblend.maxFootprintSize = 2000 into the setDefaults method.

@@ -63,11 +64,13 @@ class ProcessCcdConfig(pexConfig.Config):
)

def setDefaults(self):
self.isr.doWrite = False
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not need to be moved anywhere just set this back to the way it was on master

@arunkannawadi
Copy link
Member Author

@natelust In short, your review appears to be that I should find where the class exists and go set the configs in the corresponding class, instead of setting everything in one setDefaults method. Does it mean that I should read the yaml file in all those places?

@natelust
Copy link
Contributor

No, you should not be reading the yaml file at all. Reset it back to what it was wit git. Once you see the setDefault method in the classes I pointed you to you will see similar lines of code to what you were looking at. Just copy those lines into the setDefaults method of the corresponding class.

@arunkannawadi arunkannawadi force-pushed the tickets/DM-22222 branch 2 times, most recently from 3e6a396 to a32d06a Compare November 26, 2019 19:09
@arunkannawadi
Copy link
Member Author

Barring comments for the lines I moved, this should be good to go now.

so that commandline task and pipeline behave the same
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