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

Size luminosity test #56

Merged
merged 24 commits into from
Feb 24, 2018
Merged

Size luminosity test #56

merged 24 commits into from
Feb 24, 2018

Conversation

vvinuv
Copy link
Contributor

@vvinuv vvinuv commented Jan 6, 2018

Is it okay now? I am not quite sure why I could not update the branch 'vinu'?

@yymao
Copy link
Member

yymao commented Jan 6, 2018

@vvinuv thanks. This is good.

You can also update the branch vinu, but it is recommended to use a branch for a new task that you are working on (and use corresponding name for the branch).

@yymao yymao self-requested a review January 6, 2018 19:45
@yymao yymao mentioned this pull request Jan 6, 2018
Closed
@yymao
Copy link
Member

yymao commented Jan 6, 2018

@vvinuv can you also paste a link to a DESCQA run of this PR? Thanks.

@vvinuv
Copy link
Contributor Author

vvinuv commented Jan 6, 2018 via email

@rmandelb
Copy link

rmandelb commented Jan 7, 2018

@vvinuv - I took a look at the plots and have some questions:

  • Can you clarify whether the errorbars on the points and the width of the shaded region is meant to capture the scatter in the distribution? Or error on the mean? I assume it's the former but I wonder if there is some way to indicate this.

  • Something funny is going on with the tickmarks on the vertical and horizontal axes. It's like there are two sets of tickmarks overlaid, indicating different things - do you see what I mean? (e.g. on the vertical axis, between 1 and 10 kpc there are way more than just the 8 tickmarks you might expect for (2,3,4,5,6,7,8,9) kpc, and they are oddly spaced)

@vvinuv
Copy link
Contributor Author

vvinuv commented Jan 8, 2018

@rmandelb Sorry for the late reply.

  1. As you have guessed the shaded regions and errors on the points indicate the scatters in the sizes NOT the errors on the mean. Is it okay to label those as the scatters or do you have some other ideas?

  2. Sorry about the tickmarks. I think there is an issue in the script on the subplots. Will change that soon.

@vvinuv
Copy link
Contributor Author

vvinuv commented Jan 8, 2018

@rmandelb There was a bug and the labels are fixed https://portal.nersc.gov/project/lsst/descqa/v2/?run=2018-01-08_6&test=size_vanderWel2014_SM_Lum

@yymao I think if @rmandelb has any suggestions to label the errors in the figure I will update the script again for PR.

@rmandelb
Copy link

rmandelb commented Jan 9, 2018

Thanks for the bug fix.

Regarding the labels, perhaps you could just update the plot title to say something like "buzzard_test vs. van der Wel+2014: comparing mean and scatter"?

@vvinuv
Copy link
Contributor Author

vvinuv commented Jan 9, 2018

@rmandelb
Copy link

rmandelb commented Jan 9, 2018

Looks good to me, thank you.

Copy link
Member

@yymao yymao left a comment

Choose a reason for hiding this comment

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

@vvinuv thanks for updating the PR. Can you post a link to these tests in the web interface?

I think the major change required here is to merge SizeStellarMassLuminosity.py and SizeStellarMassLuminosityBulgeDisk.py. The two modules are very similar and I think they can be merged and we can use the config file to control the behavior.

Also, the tests should refrain from checking which catalog is being run on. The conditional statement in SizeStellarMassLuminosityBulgeDisk.py that checks for buzzard is now not necessary since we also have a test to test total size.

In short, I think we need only one module, and two config files. One config file is for the total size test, and the other is for the disk/bulge size test. And when the disk/bulge option is on, the test would check whether or not per-component sizes exist in the catalog, and skip the catalog if not.

Does that make sense?

@vvinuv
Copy link
Contributor Author

vvinuv commented Feb 21, 2018 via email

@yymao yymao removed the developing label Feb 22, 2018
@yymao
Copy link
Member

yymao commented Feb 23, 2018

@vvinuv thanks for the update. Let me know if this is ready to be reviewed.

BTW, is the file SizeAppmagBulgeDiskCOSMOS.py used by any test? Right now I found no config file using it.

@vvinuv
Copy link
Contributor Author

vvinuv commented Feb 23, 2018 via email

@yymao
Copy link
Member

yymao commented Feb 23, 2018

@vvinuv Can you take a look at https://travis-ci.org/LSSTDESC/descqa/jobs/345344135#L600. Lines that are started with W: need to be addressed. Mostly just to remove unused variable.

For the "super-init-not-called" warning, add #pylint: disable=W0231 or super(SizeStellarMassLuminosity, self).__init__(**kwargs), to the __int__ function.

@vvinuv
Copy link
Contributor Author

vvinuv commented Feb 23, 2018 via email

@yymao
Copy link
Member

yymao commented Feb 23, 2018

yes.

@yymao yymao merged commit 3041734 into LSSTDESC:master Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants