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-13669 log meas and ref outliers and notebook to plot them #77

Merged
merged 3 commits into from Apr 4, 2018

Conversation

parejkoj
Copy link
Collaborator

@parejkoj parejkoj commented Apr 2, 2018

No description provided.

Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

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

Looks good. Couple of minor comments.

@@ -171,7 +172,8 @@ MinimizeResult FitterBase::minimize(std::string const &whatToFit, double nSigmaC
MeasuredStarList msOutliers;
FittedStarList fsOutliers;
int nOutliers = findOutliers(nSigmaCut, msOutliers, fsOutliers);
totalOutliers += nOutliers;
totalMeasOutliers += msOutliers.size();
totalRefOutliers += fsOutliers.size();
Copy link
Member

Choose a reason for hiding this comment

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

Is it still useful to have nOutliers in addition to msOutliers and fsOutliers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, because it's the number of outliers in that step only (saves doing msOutliers.size() + fsOutliers.size() twice). I'll make a comment to that effect.

Copy link
Member

@kfindeisen kfindeisen Apr 3, 2018

Choose a reason for hiding this comment

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

Not sure a comment is necessary, it just occurred to me as a possible side effect of the change.

if (nSigmaCut != 0) {
LOGLS_INFO(_log, "Total number of outliers (Measured + Reference = Total): "
<< totalMeasOutliers << " + " << totalRefOutliers << " = "
<< totalMeasOutliers + totalRefOutliers);
Copy link
Member

Choose a reason for hiding this comment

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

The wording "Total of X + Y = Total" seems a bit weird. Is the initial "Total" still meaningful?

@parejkoj parejkoj force-pushed the tickets/DM-13669 branch 2 times, most recently from 5c5942e to 858c1f3 Compare April 4, 2018 20:43
@parejkoj parejkoj merged commit de643ac into master Apr 4, 2018
@ktlim ktlim deleted the tickets/DM-13669 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