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 6627 #16

Merged
merged 1 commit into from Aug 3, 2016
Merged

Tickets/dm 6627 #16

merged 1 commit into from Aug 3, 2016

Conversation

parejkoj
Copy link
Collaborator

@parejkoj parejkoj commented Aug 1, 2016

Use slot_* for various fields and cleanup JointcalControl.

@@ -40,23 +40,45 @@ class JointcalRunner(pipeBase.TaskRunner):

@staticmethod
def getTargetList(parsedCmd, **kwargs):
"""
Return a list tuples per tract: (dataRefs, kwargs).
Copy link
Contributor

@r-owen r-owen Aug 2, 2016

Choose a reason for hiding this comment

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

This could be clearer. How about "Return a list of tuples, one per tract:" and then explaining what is in kwargs?

@parejkoj parejkoj force-pushed the tickets/DM-6627 branch 2 times, most recently from f0c19ca to 4880d0e Compare August 2, 2016 22:16
@@ -20,9 +20,9 @@ namespace jointcal {
struct JointcalControl {
LSST_CONTROL_FIELD(sourceFluxField, std::string, "name of flux field in source catalog");

JointcalControl(std::string const sourceFluxType) :
JointcalControl(std::string const _sourceFluxField="slot_CalibFlux") :
Copy link
Contributor

@r-owen r-owen Aug 2, 2016

Choose a reason for hiding this comment

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

I suggest passing by reference (const & instead of const). I also suggest using the same variable name as the attribute (no leading underscore); I admit that can look a bit confusing, but it works and is fairly normal C++. In any case a leading underscore should be reserved to indicate "private" (or protected)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed both. Thanks.

Initialize sourceFluxType with a value in the JointcalControl constructor.

Default to Calib fluxes in AstrometrySourceSelector: using a different flux type
can affect the fitting accuracy.
@parejkoj parejkoj merged commit 6c69b1e into master Aug 3, 2016
@ktlim ktlim deleted the tickets/DM-6627 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
2 participants