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

Adding validation test for stellar mass distribution of galaxies and their number densities #146

Merged
merged 12 commits into from
Feb 10, 2021

Conversation

Andromedanita
Copy link
Contributor

@Andromedanita Andromedanita commented Aug 22, 2018

Validation test for issue #109

[edited by @yymao: fix #109]

@yymao
Copy link
Member

yymao commented Aug 22, 2018

@Andromedanita thanks very much for the PR! I guess you are still working on this? (which is totally OK -- we encourage early PR, just let me know when it is ready to be reviewed.)

I did spot a few things already: to import from descqa submodule, you'll need to add a . to your import statement:

from .base import BaseValidationTest, TestResult
from .plotting import plt

Also, remove these:

import matplotlib.pylab as plt
%matplotlib inline

And, you'll need to add a yaml config file too. Let me know if you have any questions!

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.

I have edited the code so that it runs and passes basic QA. However, this PR is still missing a test config file, and also an actual DESCQA run.

@yymao yymao changed the title issue109 - Adding validation test for stellar mass distribution of galaxies and their number densities Adding validation test for stellar mass distribution of galaxies and their number densities Dec 2, 2020
@Andromedanita
Copy link
Contributor Author

@yymao I have edited the code by a tiny bit (changed the title of the plot and also includes cmass plot).
Should I commit that still?

Also, what is the step that I need to do to add a test config file and actual DESCQA run that you mentioned?

@yymao
Copy link
Member

yymao commented Dec 2, 2020

@Andromedanita yes, please commit. Just watch out for potential merge conflicts.

To add a test config, just add a yaml file (example below) inside descqa/configs and give it a short name.

subclass_name: StellarMassDistribution.StellarMassTest
description: <add a description here>

@Andromedanita Andromedanita force-pushed the issue_109 branch 12 times, most recently from 7fbdae9 to b9068f2 Compare February 10, 2021 00:15
@yymao yymao self-requested a review February 10, 2021 05:01
@yymao
Copy link
Member

yymao commented Feb 10, 2021

@Andromedanita (cc @evevkovacs), I have updated this branch to make the test work within the DESCQA framework, and also utilize GCRQuery to be more efficient. I've also removed the redshift calculation because (1) it is not used at all in the test and (2) redshift is available in the cosmoDC2 catalog, and I don't see why one would need to recalculate it.

@Andromedanita Can you review my updates and see if I implemented your test correctly. If you want to make future changes, make sure you pull from this branch first before you add new changes.

@evevkovacs Can you test if this updated test now works?

@Andromedanita
Copy link
Contributor Author

@yymao I reviewed the code and it seems perfect! Thanks for reviewing it and making the necessary changes!

@yymao
Copy link
Member

yymao commented Feb 10, 2021

I've just run this test on cosmoDC2_v1.1.4_small. Here's the test result: https://portal.nersc.gov/cfs/lsst/descqa/v2/?run=2021-02-10&test=StellarMassDistruibution&catalog=cosmoDC2_v1.1.4_small

image

@evevkovacs evevkovacs merged commit 44399a6 into LSSTDESC:master Feb 10, 2021
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.

Stellar mass distribution
3 participants